Skip to content

Commit c4ae982

Browse files
committed
Add highlight animation for contact section
1 parent d358ce8 commit c4ae982

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

source/_index.erb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,14 @@
9191
<% end %>
9292
</div>
9393

94-
<h2 id="contact" class="mt-20 pt-8 mx-auto md:w-5/6 text-center text-xl md:text-3xl font-bold scroll-mt-24">
95-
<%= t("contact.title") %>
96-
</h2>
97-
<p class="mt-4 mx-auto md:w-7/12 text-pretty text-justify leading-normal text-lg">
98-
<%= I18n.t("contact.text", mail: link_to(data.site.contact.email, data.site.contact.email_link, class: 'whitespace-nowrap')) %>
99-
</p>
94+
<div id="contact" class="mt-20 pt-8 pb-10 highlight-on-target scroll-mt-24 rounded-md">
95+
<h2 class="mx-auto md:w-5/6 text-center text-xl md:text-3xl font-bold ">
96+
<%= t("contact.title") %>
97+
</h2>
98+
<p class="mt-4 mx-auto md:w-7/12 text-pretty text-justify leading-normal text-lg">
99+
<%= I18n.t("contact.text", mail: link_to(data.site.contact.email, data.site.contact.email_link, class: 'whitespace-nowrap')) %>
100+
</p>
101+
</div>
100102

101103
<span class="mt-16 mx-auto block w-52 h-1 rounded-full bg-gradient-to-r from-logo-green to-green-600"></span>
102104

0 commit comments

Comments
 (0)