Skip to content

Commit

Permalink
Change nav "Search Applications" to "Search"
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Jun 3, 2024
1 parent d1737fd commit bdb55bf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/_tailwind/application/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<%# TODO: The white text hover is too strong IMHO %>
<%# Repeat the main nav in the footer %>
<li><%= link_to "Home", root_path, class: "text-white hover:text-white-hover focus:outline-none focus:text-navy focus:bg-sun-yellow" %></li>
<li><%= link_to "Search Applications", address_applications_path, class: "text-white hover:text-white-hover focus:outline-none focus:text-navy focus:bg-sun-yellow" %></li>
<li><%= link_to "Search", address_applications_path, class: "text-white hover:text-white-hover focus:outline-none focus:text-navy focus:bg-sun-yellow" %></li>
<li><%= link_to "Get the Data (API)", api_howto_path, class: "text-white hover:text-white-hover focus:outline-none focus:text-navy focus:bg-sun-yellow" %></li>
<li><%= link_to "Help", faq_path, class: "text-white hover:text-white-hover focus:outline-none focus:text-navy focus:bg-sun-yellow" %></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/views/_tailwind/application/_menu_desktop.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="flex justify-between h-16 text-lg font-medium text-navy">
<ul class="flex space-x-8">
<%= render Tailwind::NavItemComponent.new(href: root_path, selected: current_page?(root_path)).with_content("Home") %>
<%= render Tailwind::NavItemComponent.new(href: address_applications_path, selected: current_page?(address_applications_path)).with_content("Search Applications") %>
<%= render Tailwind::NavItemComponent.new(href: address_applications_path, selected: current_page?(address_applications_path)).with_content("Search") %>
<%= render Tailwind::NavItemComponent.new(href: api_howto_path, selected: current_page?(api_howto_path)).with_content("Get the Data") %>
<%= render Tailwind::NavItemComponent.new(href: faq_path, selected: current_page?(faq_path)).with_content("Help") %>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/views/_tailwind/application/_menu_mobile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="mt-8 font-medium">
<ul>
<li><%= link_to "Home", root_path, class: class_names("decoration-fuchsia", "decoration-4", "focus:outline-none", "focus:bg-sun-yellow", "underline" => current_page?(root_path)) %></li>
<li><%= link_to "Search Applications", address_applications_path, class: class_names("decoration-fuchsia", "decoration-4", "focus:outline-none", "focus:bg-sun-yellow", "underline" => current_page?(address_applications_path)) %></li>
<li><%= link_to "Search", address_applications_path, class: class_names("decoration-fuchsia", "decoration-4", "focus:outline-none", "focus:bg-sun-yellow", "underline" => current_page?(address_applications_path)) %></li>
<li><%= link_to "Get the Data", api_howto_path, class: class_names("decoration-fuchsia", "decoration-4", "focus:outline-none", "focus:bg-sun-yellow", "underline" => current_page?(api_howto_path)) %></li>
<li><%= link_to "Help", faq_path, class: class_names("decoration-fuchsia", "decoration-4", "focus:outline-none", "focus:bg-sun-yellow", "underline" => current_page?(faq_path)) %></li>
<li class="mt-4"><%= link_to "About", about_path, class: class_names("decoration-fuchsia", "decoration-4", "focus:outline-none", "focus:bg-sun-yellow", "underline" => current_page?(about_path)) %></li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/_tailwind/applications/_address_search.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% content_for :meta_description, Rails.configuration.planningalerts_meta_description %>

<%= render Tailwind::Heading.new(tag: :h1, extra_classes: "sr-only").with_content("Search Applications") %>
<%= render Tailwind::Heading.new(tag: :h1, extra_classes: "sr-only").with_content("Search") %>
<%= render "address_search_form", q:, error: %>

<% if error.nil? %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% content_for :meta_description, Rails.configuration.planningalerts_meta_description %>

<%= render Tailwind::Heading.new(tag: :h1, extra_classes: "sr-only").with_content("Search Applications") %>
<%= render Tailwind::Heading.new(tag: :h1, extra_classes: "sr-only").with_content("Search") %>
<%= render "address_search_form", q:, error: nil %>

<%# TODO: Need a proper design for this section %>
Expand Down

0 comments on commit bdb55bf

Please sign in to comment.