Skip to content

Commit f0bb270

Browse files
✨ Enhance footer component with improved hover effects and transitions for better user interaction
1 parent 2ef6320 commit f0bb270

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

resources/views/components/footer.blade.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,30 @@ class="group relative z-0 flex items-center gap-6 overflow-hidden rounded-2xl bg
101101
class="absolute left-3 top-1/2 -z-10 size-16 -translate-y-1/2 rounded-full bg-cyan-400/60 blur-2xl dark:block"
102102
aria-hidden="true"
103103
></div>
104+
104105
{{-- Content --}}
105106
<div class="flex items-center gap-5 text-sm">
106-
<div class="flex flex-col items-center gap-2.5">
107+
<div class="flex flex-col items-center gap-2">
107108
{{-- Icon --}}
108109
<x-icons.email-document class="size-7 shrink-0" />
110+
109111
{{-- Title --}}
110-
<h2 class="font-medium">Newsletter</h2>
112+
<h2
113+
class="transition duration-300 will-change-transform group-hover:scale-105"
114+
>
115+
Newsletter
116+
</h2>
111117
</div>
118+
112119
{{-- Message --}}
113-
<p class="leading-relaxed opacity-50">
120+
<p
121+
class="leading-relaxed opacity-50 transition duration-300 will-change-transform group-hover:translate-x-0.5"
122+
>
114123
Get the latest NativePHP updates and news delivered to
115124
your inbox.
116125
</p>
117126
</div>
127+
118128
{{-- Right arrow --}}
119129
<x-icons.right-arrow
120130
x-init="

resources/views/components/icons/email-document.blade.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns="http://www.w3.org/2000/svg"
44
fill="none"
55
viewBox="0 0 24 24"
6+
overflow="visible"
67
>
78
<path
89
fill="#66e1ff"
@@ -20,11 +21,13 @@
2021
stroke-width="1"
2122
></path>
2223
<path
24+
class="transition duration-300 will-change-transform group-hover:-translate-y-px"
2325
fill="#e3e3e3"
2426
d="M19.5 1.5v12.67l-3.77 2.51 -0.23 -0.18h-7l-0.23 0.18 -3.77 -2.51V1.5c0 -0.26522 0.10536 -0.51957 0.29289 -0.707107C4.98043 0.605357 5.23478 0.5 5.5 0.5h13c0.2652 0 0.5196 0.105357 0.7071 0.292893 0.1875 0.187537 0.2929 0.441887 0.2929 0.707107Z"
2527
stroke-width="1"
2628
></path>
2729
<path
30+
class="transition duration-300 will-change-transform group-hover:-translate-y-px"
2831
fill="#ffffff"
2932
d="M18.5 0.5h-13c-0.26522 0 -0.51957 0.105357 -0.70711 0.292893C4.60536 0.98043 4.5 1.23478 4.5 1.5v12.67l0.484 0.322L18.893 0.582C18.769 0.52814 18.6352 0.500234 18.5 0.5Z"
3033
stroke-width="1"
@@ -58,34 +61,39 @@
5861
stroke-width="1"
5962
></path>
6063
<path
64+
class="transition duration-300 will-change-transform group-hover:-translate-y-px"
6165
stroke="#191919"
6266
stroke-linecap="round"
6367
stroke-linejoin="round"
6468
d="M19.5 14V1.5c0 -0.26522 -0.1054 -0.51957 -0.2929 -0.707107C19.0196 0.605357 18.7652 0.5 18.5 0.5h-13c-0.26522 0 -0.51957 0.105357 -0.70711 0.292893C4.60536 0.98043 4.5 1.23478 4.5 1.5V14"
6569
stroke-width="1"
6670
></path>
6771
<path
72+
class="transition duration-300 will-change-transform group-hover:-translate-y-px"
6873
stroke="#191919"
6974
stroke-linecap="round"
7075
stroke-linejoin="round"
7176
d="M7.5 3.5h2"
7277
stroke-width="1"
7378
></path>
7479
<path
80+
class="transition duration-300 will-change-transform group-hover:-translate-y-px"
7581
stroke="#191919"
7682
stroke-linecap="round"
7783
stroke-linejoin="round"
7884
d="M9.5 6.5h7"
7985
stroke-width="1"
8086
></path>
8187
<path
88+
class="transition duration-300 will-change-transform group-hover:-translate-y-px"
8289
stroke="#191919"
8390
stroke-linecap="round"
8491
stroke-linejoin="round"
8592
d="M7.5 9.5h9"
8693
stroke-width="1"
8794
></path>
8895
<path
96+
class="transition duration-300 will-change-transform group-hover:-translate-y-px"
8997
stroke="#191919"
9098
stroke-linecap="round"
9199
stroke-linejoin="round"

0 commit comments

Comments
 (0)