generated from dxw/rails-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
686b2bb
commit 3536bd2
Showing
7 changed files
with
67 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="learning bg-gray-100 p-8 mt-12"> | ||
<header class="text-xl font-bold text-center w-full mb-8"> | ||
<div class="learning"> | ||
<header> | ||
Do you know how you can protect yourself and others in your community? | ||
</header> | ||
<a href="health_advice" class="block w-full py-4 px-8 rounded-md text-lg font-bold bg-gray-200 border border-gray-700 text-center mb-4"> | ||
<a href="health_advice"> | ||
Learn more about health effects | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
<div class="relative inline-block w-full text-left p-4"> | ||
<%= form_tag(false, method: :get) do %> | ||
<%= select_tag :zone, | ||
options_for_select(Zone.all.order(:name).map(&:name), @zone.name), | ||
class: "inline-flex flex-row w-full justify-left gap-x-1.5 rounded-md bg-white px-3 py-2 text-base font-semibold text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50", | ||
data: { controller: "prediction", "prediction-target": "zoneSelector", action: "change->prediction#changeZone" } | ||
%> | ||
<%= hidden_field_tag :day, @day, data: { "tab-target": "daySelector" } %> | ||
<% end %> | ||
</div> | ||
<%= form_tag(false, method: :get) do %> | ||
<%= select_tag :zone, | ||
options_for_select(Zone.all.order(:name).map(&:name), @zone.name), | ||
data: { controller: "prediction", "prediction-target": "zoneSelector", action: "change->prediction#changeZone" } | ||
%> | ||
<%= hidden_field_tag :day, @day, data: { "tab-target": "daySelector" } %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<div class="relative inline-block w-full text-left p-4"> | ||
<%= form_tag do %> | ||
<%= select_tag :pollutant, | ||
options_for_select({ | ||
"All pollutants" => 'Total', | ||
"Nitrogen Dioxide" => 'NO2', | ||
"Particles < 2.5µm" => 'PM25', | ||
"Particles < 10µm" => 'PM10', | ||
"Ozone" => 'O3', | ||
}), | ||
data:{ action: "map#updateMap", "map-target": "pollutantSelector" }, | ||
class: "inline-flex flex-row w-full justify-left gap-x-1.5 rounded-md bg-white px-3 py-2 text-base font-semibold text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50" | ||
%> | ||
<% end %> | ||
</div> | ||
<%= form_tag do %> | ||
<%= select_tag :pollutant, | ||
options_for_select({ | ||
"All pollutants" => 'Total', | ||
"Nitrogen Dioxide" => 'NO2', | ||
"Particles < 2.5µm" => 'PM25', | ||
"Particles < 10µm" => 'PM10', | ||
"Ozone" => 'O3', | ||
}), | ||
class: "my-4", | ||
data: { action: "map#updateMap", "map-target": "pollutantSelector" } | ||
%> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="subscribe bg-gray-100 p-8 mt-1"> | ||
<header class="text-xl font-bold text-center w-full mb-8"> | ||
<div class="subscribe"> | ||
<header> | ||
Subscribe to receive air quality alerts for your area | ||
</header> | ||
<a href="#" class="block w-full py-4 px-8 rounded-md text-lg font-bold bg-gray-200 border border-gray-700 text-center mb-4"> | ||
<a href="#"> | ||
Sign up for alerts | ||
</a> | ||
</div> |