Skip to content

Commit

Permalink
Add link to home page for logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed May 7, 2024
1 parent 37f1eac commit b645c73
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/views/_tailwind/application/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
<div class="sm:bg-yellow sm:bg-header-pattern xl:bg-center">
<%= render Tailwind::ContainerComponent.new do %>
<div class="pt-2 sm:py-8">
<%# Switches between these two blocks at "sm" breakpoint %>
<%= image_tag "tailwind/logo.svg", class: "hidden sm:block", size: "408x96", alt: "Planning Alerts. Email alerts of planning applications near you" %>
<%= image_tag "tailwind/logo-navy.svg", class: "sm:hidden", size: "350x46", alt: "Planning Alerts" %>
<%# TODO: Add focus state like other links? %>
<%= link_to root_path do %>
<%# Switches between these two blocks at "sm" breakpoint %>
<%= image_tag "tailwind/logo.svg", class: "hidden sm:block", size: "408x96", alt: "Planning Alerts. Email alerts of planning applications near you" %>
<%= image_tag "tailwind/logo-navy.svg", class: "sm:hidden", size: "350x46", alt: "Planning Alerts" %>
<% end %>
</div>
<% end %>
</div>
Expand Down

0 comments on commit b645c73

Please sign in to comment.