Skip to content

Commit 212751e

Browse files
💄 Enhance footer navigation layout and animations for improved user experience; adjust spacing and remove redundant classes
1 parent 01c2c28 commit 212751e

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

‎resources/views/components/footer.blade.php

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,30 @@ class="size-4 shrink-0"
153153

154154
{{-- Right side --}}
155155
<nav
156-
class="flex w-full flex-wrap justify-center gap-x-5 gap-y-3 sm:w-auto lg:justify-around"
156+
class="flex w-full flex-wrap justify-center gap-x-5 gap-y-3 sm:w-auto lg:justify-around xl:gap-x-10"
157157
aria-label="Footer navigation"
158+
x-init="
159+
() => {
160+
motion.inView($el, (element) => {
161+
motion.animate(
162+
Array.from($el.children),
163+
{
164+
x: [-10, 0],
165+
opacity: [0, 1],
166+
},
167+
{
168+
duration: 0.7,
169+
ease: motion.backOut,
170+
delay: motion.stagger(0.1),
171+
},
172+
)
173+
})
174+
}
175+
"
158176
>
159177
{{-- Column --}}
160178
<div class="flex grow flex-col items-start gap-1 sm:grow-0">
161-
<h2 class="text-lg font-medium">Explore</h2>
179+
<h2 class="font-medium">Explore</h2>
162180
<ul
163181
class="flex flex-col items-start text-sm text-gray-500 dark:text-gray-400"
164182
>
@@ -221,7 +239,7 @@ class="inline-block px-px py-1.5 transition duration-300 will-change-transform h
221239

222240
{{-- Column --}}
223241
<div class="flex grow flex-col items-start gap-1 sm:grow-0">
224-
<h2 class="text-lg font-medium">Mobile</h2>
242+
<h2 class="font-medium">Mobile</h2>
225243
<ul
226244
class="flex flex-col items-start text-sm text-gray-500 dark:text-gray-400"
227245
>
@@ -257,7 +275,7 @@ class="inline-block px-px py-1.5 transition duration-300 will-change-transform h
257275

258276
{{-- Column --}}
259277
<div class="flex grow flex-col items-start gap-1 sm:grow-0">
260-
<h2 class="text-lg font-medium">Desktop</h2>
278+
<h2 class="font-medium">Desktop</h2>
261279
<ul
262280
class="flex flex-col items-start text-sm text-gray-500 dark:text-gray-400"
263281
>
@@ -305,7 +323,7 @@ class="flex items-center pt-3 pb-3"
305323

306324
{{-- Copyright --}}
307325
<section
308-
class="flex flex-col flex-wrap items-center gap-x-5 gap-y-3 text-center text-sm text-gray-500 md:flex-row md:justify-between md:text-left dark:text-gray-400/80"
326+
class="flex flex-col flex-wrap items-center gap-x-5 gap-y-3 text-center text-sm text-gray-500 md:flex-row md:justify-between md:text-left xl:gap-x-10 dark:text-gray-400/80"
309327
aria-label="Credits and copyright information"
310328
>
311329
<div

0 commit comments

Comments
 (0)