From b645c73482889801bdf89d0a6c1233adce2ccec8 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Tue, 7 May 2024 03:07:01 +0000 Subject: [PATCH] Add link to home page for logo. https://www.bugherd.com/t/SS4ib2Ufuzq9K59Lqzs2Mw --- app/views/_tailwind/application/_header.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/_tailwind/application/_header.html.erb b/app/views/_tailwind/application/_header.html.erb index 54c3babc9..e48d6e57a 100644 --- a/app/views/_tailwind/application/_header.html.erb +++ b/app/views/_tailwind/application/_header.html.erb @@ -23,9 +23,12 @@
<%= render Tailwind::ContainerComponent.new 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" %> + <%# 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 %>
<% end %>