From 59504e5ab9a50fcd7609dcb24c9e16c9620b6930 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Thu, 8 Feb 2024 01:56:26 +0000 Subject: [PATCH] Use heading component --- .../_tailwind/applications/_address_search.html.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/_tailwind/applications/_address_search.html.erb b/app/views/_tailwind/applications/_address_search.html.erb index c5ba9ce06..9e9bc8844 100644 --- a/app/views/_tailwind/applications/_address_search.html.erb +++ b/app/views/_tailwind/applications/_address_search.html.erb @@ -4,7 +4,7 @@ <%= render "address_search_form", q: nil, error: %>
-

Most commented applications

+ <%= render Tailwind::Heading.new(tag: :h2).with_content("Most commented applications") %> <%# Wrapping in a div to make the bottom of the illustrations match up %>
<%= image_tag "tailwind/illustration/people-talking.svg", alt: "" %> @@ -22,7 +22,7 @@ <% end %>
<%= pa_link_to "View more trending applications", trending_applications_path, class: "text-2xl mt-6" %> -

Latest applications across Australia

+ <%= render Tailwind::Heading.new(tag: :h2).with_content("Latest applications across Australia") %>
<%= image_tag "tailwind/illustration/houses.svg", alt: "" %>
@@ -45,7 +45,7 @@
-

Coverage

+ <%= render Tailwind::Heading.new(tag: :h2, extra_classes: "pb-2").with_content("Coverage") %>
@@ -75,7 +75,8 @@
<%# TODO: Better heading? %> -

Planning Data

+ <%# TODO: Do we want to include something like pb-2 for all headings in the component? %> + <%= render Tailwind::Heading.new(tag: :h2, extra_classes: "pb-2").with_content("Planning Data") %>