Skip to content

Commit

Permalink
Style alert guidance
Browse files Browse the repository at this point in the history
Styled per the design
  • Loading branch information
jdudley1123 committed Nov 18, 2024
1 parent a05b3c2 commit 11959f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/forecasts/_alert_guidance.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% if @day_forecast.air_quality_alert %>
<div class="alert-guidance bg-<%= @day_forecast.air_quality_alert.daqi_label.parameterize %>-alert-guidance-panel m-5 p-10">
<div class="alert-guidance bg-<%= @day_forecast.air_quality_alert.daqi_label.parameterize %>-alert-guidance-panel p-4">
<p class="font-semibold mb-4">
<%= t("air_quality_alert.#{@day_forecast.air_quality_alert.daqi_level}.guidance.title") %>
</p>
Expand Down
1 change: 0 additions & 1 deletion app/views/forecasts/_forecast_tabs.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
<%= render(DayTabComponent.new(forecast: @forecasts.second, day: 'tomorrow', active: @day == 'tomorrow')) %>
<%= render(DayTabComponent.new(forecast: @forecasts.third, day: 'day_after_tomorrow', active: @day == 'day_after_tomorrow')) %>
</div>
<%= render "alert_guidance" %>
1 change: 1 addition & 0 deletions app/views/forecasts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<%= render "location_selector" %>
<%= render "forecast_tabs" %>
<div class="tab-contents">
<%= render "alert_guidance" %>
<%= render "map" %>
<%= render "predictions" %>
<%= render "sharing" %>
Expand Down

0 comments on commit 11959f2

Please sign in to comment.