Skip to content

Commit 01c2c28

Browse files
💄 Refactor footer links for improved organization and clarity; update navigation structure and aria labels
1 parent 2a98fa0 commit 01c2c28

1 file changed

Lines changed: 29 additions & 38 deletions

File tree

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

Lines changed: 29 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class="sr-only"
99
Footer
1010
</h2>
1111
<div
12-
class="flex flex-col flex-wrap items-end gap-x-6 gap-y-4 md:flex-row md:justify-between"
12+
class="flex flex-col flex-wrap gap-x-6 gap-y-4 md:flex-row md:items-end md:justify-between"
1313
>
1414
{{-- Left side --}}
1515
<div class="flex flex-col items-center gap-6 md:items-start">
@@ -95,7 +95,7 @@ class="flex flex-wrap items-center justify-center gap-2.5 *:opacity-0"
9595
>
9696
<a
9797
href="/newsletter"
98-
class="group dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud relative z-0 flex items-center gap-6 overflow-hidden rounded-2xl bg-cyan-50/50 py-5 pr-7 pl-6 ring-1 ring-black/5 transition duration-300 ease-in-out hover:bg-cyan-50 hover:ring-black/10 md:max-w-lg"
98+
class="group dark:bg-mirage dark:hover:bg-haiti dark:hover:ring-cloud relative z-0 flex max-w-105 items-center gap-6 overflow-hidden rounded-2xl bg-cyan-50/50 py-5 pr-7 pl-6 ring-1 ring-black/5 transition duration-300 ease-in-out hover:bg-cyan-50 hover:ring-black/10"
9999
>
100100
{{-- Decorative circle --}}
101101
<div
@@ -119,7 +119,7 @@ class="transition duration-300 will-change-transform group-hover:scale-105"
119119

120120
{{-- Message --}}
121121
<p
122-
class="leading-relaxed opacity-50 transition duration-300 will-change-transform group-hover:translate-x-0.5"
122+
class="leading-relaxed opacity-70 transition duration-300 will-change-transform group-hover:translate-x-0.5"
123123
>
124124
Get the latest NativePHP updates and news delivered
125125
to your inbox.
@@ -153,7 +153,7 @@ class="size-4 shrink-0"
153153

154154
{{-- Right side --}}
155155
<nav
156-
class="flex flex-1 flex-wrap justify-center gap-x-10 gap-y-3 lg:justify-around"
156+
class="flex w-full flex-wrap justify-center gap-x-5 gap-y-3 sm:w-auto lg:justify-around"
157157
aria-label="Footer navigation"
158158
>
159159
{{-- Column --}}
@@ -189,67 +189,58 @@ class="inline-block px-px py-1.5 transition duration-300 will-change-transform h
189189
Shop
190190
</a>
191191
</li>
192-
</ul>
193-
</div>
194-
195-
{{-- Column --}}
196-
<div class="flex grow flex-col items-start gap-1 sm:grow-0">
197-
<h2 class="text-lg font-medium">Mobile</h2>
198-
<ul
199-
class="flex flex-col items-start text-sm text-gray-500 dark:text-gray-400"
200-
>
201192
<li>
202193
<a
203-
href="/docs/mobile/1/getting-started/introduction"
204-
aria-label="Mobile Documentation"
194+
href="https://bifrost.nativephp.com/"
195+
aria-label="Bifrost"
205196
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
206197
>
207-
Documentation
198+
Bifrost
208199
</a>
209200
</li>
210201
<li>
211202
<a
212-
href="{{ route('pricing') }}"
213-
aria-label="Pricing"
203+
href="{{ route('privacy-policy') }}"
204+
aria-label="Privacy Policy"
214205
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
215206
>
216-
Pricing
207+
Privacy Policy
217208
</a>
218209
</li>
219210
<li>
220211
<a
221-
href="https://github.com/nativephp"
222-
aria-label="GitHub"
212+
href="{{ route('terms-of-service') }}"
213+
aria-label="Terms of Service"
223214
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
224215
>
225-
GitHub
216+
Terms of Service
226217
</a>
227218
</li>
228219
</ul>
229220
</div>
230221

231222
{{-- Column --}}
232223
<div class="flex grow flex-col items-start gap-1 sm:grow-0">
233-
<h2 class="text-lg font-medium">Desktop</h2>
224+
<h2 class="text-lg font-medium">Mobile</h2>
234225
<ul
235226
class="flex flex-col items-start text-sm text-gray-500 dark:text-gray-400"
236227
>
237228
<li>
238229
<a
239-
href="/docs/desktop/1/getting-started/introduction"
240-
aria-label="Desktop Documentation"
230+
href="/docs/mobile/1/getting-started/introduction"
231+
aria-label="Mobile Documentation"
241232
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
242233
>
243234
Documentation
244235
</a>
245236
</li>
246237
<li>
247238
<a
248-
href="{{ route('sponsoring') }}"
249-
aria-label="Sponsoring"
239+
href="{{ route('pricing') }}"
240+
aria-label="Pricing"
250241
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
251242
>
252-
Sponsoring
243+
Pricing
253244
</a>
254245
</li>
255246
<li>
@@ -266,35 +257,35 @@ class="inline-block px-px py-1.5 transition duration-300 will-change-transform h
266257

267258
{{-- Column --}}
268259
<div class="flex grow flex-col items-start gap-1 sm:grow-0">
269-
<h2 class="text-lg font-medium">Company</h2>
260+
<h2 class="text-lg font-medium">Desktop</h2>
270261
<ul
271262
class="flex flex-col items-start text-sm text-gray-500 dark:text-gray-400"
272263
>
273264
<li>
274265
<a
275-
href="https://bifrost.nativephp.com/"
276-
aria-label="Bifrost"
266+
href="/docs/desktop/1/getting-started/introduction"
267+
aria-label="Desktop Documentation"
277268
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
278269
>
279-
Bifrost
270+
Documentation
280271
</a>
281272
</li>
282273
<li>
283274
<a
284-
href="{{ route('privacy-policy') }}"
285-
aria-label="Privacy Policy"
275+
href="{{ route('sponsoring') }}"
276+
aria-label="Sponsoring"
286277
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
287278
>
288-
Privacy Policy
279+
Sponsoring
289280
</a>
290281
</li>
291282
<li>
292283
<a
293-
href="{{ route('terms-of-service') }}"
294-
aria-label="Terms of Service"
284+
href="https://github.com/nativephp"
285+
aria-label="GitHub"
295286
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-300"
296287
>
297-
Terms of Service
288+
GitHub
298289
</a>
299290
</li>
300291
</ul>

0 commit comments

Comments
 (0)