Skip to content

Commit 452d456

Browse files
✨ Improve accessibility and SEO by updating ARIA attributes, alt text, and link titles for sponsor components
1 parent ee271dd commit 452d456

File tree

4 files changed

+54
-32
lines changed

4 files changed

+54
-32
lines changed
Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
<a
22
href="https://www.redgalaxy.co.uk/"
33
class="inline-grid h-16 w-40 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
4-
title="RedGalaxy"
5-
aria-label="Visit RedGalaxy website, sponsor"
4+
title="Learn more about RedGalaxy"
5+
aria-label="Visit RedGalaxy website"
6+
rel="noopener"
67
>
7-
<x-sponsors.logos.redgalaxy class="h-auto max-h-8 max-w-full" />
8+
<x-sponsors.logos.redgalaxy
9+
class="h-auto max-h-8 max-w-full"
10+
alt="RedGalaxy logo"
11+
/>
812
<span class="sr-only">RedGalaxy</span>
913
</a>
1014

1115
<a
1216
href="https://sevalla.com/?utm_source=nativephp&utm_medium=Referral&utm_campaign=homepage"
1317
class="inline-grid h-16 w-40 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
14-
title="Sevalla"
15-
aria-label="Visit Sevalla website, sponsor"
18+
title="Learn more about Sevalla"
19+
aria-label="Visit Sevalla website"
20+
rel="noopener"
1621
>
1722
<x-sponsors.logos.sevalla
1823
class="h-auto max-h-8 max-w-full text-black dark:text-white"
24+
alt="Sevalla logo"
1925
/>
2026
<span class="sr-only">Sevalla</span>
2127
</a>
@@ -30,30 +36,34 @@ class="inline-grid h-16 w-40 shrink-0 place-items-center rounded-2xl bg-gray-100
3036
<x-sponsors.logos.serverauth
3137
class="block h-auto max-h-8 max-w-full fill-[#042340] dark:fill-white"
3238
/>
33-
<span class="sr-only">ServerAuth</span>
39+
<span class="sr-only">Visit ServerAuth</span>
3440
</a>
3541
--}}
3642

3743
<a
3844
href="https://www.kaashosting.nl/?lang=en"
3945
class="inline-grid h-16 w-40 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
40-
title="KaasHosting"
41-
aria-label="Visit KaasHosting website, sponsor"
46+
title="Learn more about KaasHosting"
47+
aria-label="Visit KaasHosting website"
48+
rel="noopener"
4249
>
4350
<x-sponsors.logos.kaashosting
4451
class="block h-auto max-h-8 max-w-full fill-[#042340] dark:fill-white"
52+
alt="KaasHosting logo"
4553
/>
4654
<span class="sr-only">KaasHosting</span>
4755
</a>
4856

4957
<a
5058
href="https://borah.digital/"
5159
class="inline-grid h-16 w-40 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
52-
title="Borah Digital Labs"
53-
aria-label="Visit Borah Digital Labs website, sponsor"
60+
title="Learn more about Borah Digital Labs"
61+
aria-label="Visit Borah Digital Labs website"
62+
rel="noopener"
5463
>
5564
<x-sponsors.logos.borah
5665
class="block h-auto max-h-8 max-w-full fill-[#042340] dark:fill-white"
66+
alt="Borah Digital Labs logo"
5767
/>
5868
<span class="sr-only">Borah Digital Labs</span>
5969
</a>

resources/views/components/sponsors/lists/docs/featured-sponsors.blade.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<a
22
href="https://beyondco.de/?utm_source=nativephp&utm_medium=logo&utm_campaign=nativephp"
3-
title="BeyondCode sponsor"
4-
aria-label="Visit BeyondCode, our featured sponsor"
3+
title="Learn more about BeyondCode"
4+
aria-label="Visit BeyondCode website"
55
class="inline-grid h-16 w-40 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
6+
rel="noopener sponsored"
67
>
78
<img
89
src="/img/sponsors/beyondcode.png"
9-
alt="BeyondCode logo"
10+
alt="BeyondCode company logo - featured sponsor"
1011
class="block h-auto max-h-8 max-w-full dark:hidden"
1112
loading="lazy"
1213
/>
1314
<img
1415
src="/img/sponsors/beyondcode-dark.png"
15-
alt="BeyondCode logo"
16+
alt="BeyondCode company logo - featured sponsor"
1617
class="hidden h-auto max-h-8 max-w-full dark:block"
1718
loading="lazy"
1819
/>
@@ -21,9 +22,10 @@ class="hidden h-auto max-h-8 max-w-full dark:block"
2122

2223
<a
2324
href="https://laradevs.com/?ref=nativephp"
24-
title="Laradevs sponsor"
25-
aria-label="Visit Laradevs, our featured sponsor"
25+
title="Learn more about Laradevs"
26+
aria-label="Visit Laradevs website"
2627
class="inline-grid h-16 w-40 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
28+
rel="noopener sponsored"
2729
>
2830
<x-sponsors.logos.laradevs
2931
class="block h-auto max-h-8 max-w-full text-black dark:text-white"

resources/views/components/sponsors/lists/home/corporate-sponsors.blade.php

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ class="opacity-0"
55
<a
66
href="https://www.redgalaxy.co.uk/"
77
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
8-
title="RedGalaxy"
9-
aria-label="Visit RedGalaxy website, corporate sponsor"
8+
title="Learn more about RedGalaxy"
9+
aria-label="Visit RedGalaxy website"
10+
rel="noopener"
1011
>
1112
<x-sponsors.logos.redgalaxy
1213
class="h-auto max-h-10 max-w-full"
1314
alt="RedGalaxy logo"
15+
loading="lazy"
1416
/>
1517
<span class="sr-only">RedGalaxy</span>
1618
</a>
@@ -23,12 +25,14 @@ class="opacity-0"
2325
<a
2426
href="https://sevalla.com/?utm_source=nativephp&utm_medium=Referral&utm_campaign=homepage"
2527
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
26-
title="Sevalla"
27-
aria-label="Visit Sevalla website, corporate sponsor"
28+
title="Learn more about Sevalla"
29+
aria-label="Visit Sevalla website"
30+
rel="noopener"
2831
>
2932
<x-sponsors.logos.sevalla
3033
class="h-auto max-h-10 max-w-full text-black dark:text-white"
3134
alt="Sevalla logo"
35+
loading="lazy"
3236
/>
3337
<span class="sr-only">Sevalla</span>
3438
</a>
@@ -39,8 +43,8 @@ class="h-auto max-h-10 max-w-full text-black dark:text-white"
3943
<a
4044
href="https://serverauth.com/"
4145
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:ring-1 will-change-transform hover:scale-105 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15 hover:bg-gray-200/70"
42-
title="ServerAuth"
43-
aria-label="Visit ServerAuth website, corporate sponsor"
46+
title="Learn m"
47+
aria-label="Visit ServerAuth website"
4448
>
4549
<x-sponsors.logos.serverauth
4650
class="block h-auto max-h-10 max-w-full fill-[#042340] dark:fill-white"
@@ -58,12 +62,14 @@ class="opacity-0"
5862
<a
5963
href="https://www.kaashosting.nl/?lang=en"
6064
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
61-
title="KaasHosting"
62-
aria-label="Visit KaasHosting website, corporate sponsor"
65+
title="Learn more about KaasHosting"
66+
aria-label="Visit KaasHosting website"
67+
rel="noopener"
6368
>
6469
<x-sponsors.logos.kaashosting
6570
class="block h-auto max-h-10 max-w-full fill-[#042340] dark:fill-white"
6671
alt="KaasHosting logo"
72+
loading="lazy"
6773
/>
6874
<span class="sr-only">KaasHosting</span>
6975
</a>
@@ -76,12 +82,14 @@ class="opacity-0"
7682
<a
7783
href="https://borah.digital/"
7884
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 will-change-transform hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
79-
title="Borah Digital Labs"
80-
aria-label="Visit Borah Digital Labs website, corporate sponsor"
85+
title="Learn more about Borah Digital Labs"
86+
aria-label="Visit Borah Digital Labs website"
87+
rel="noopener"
8188
>
8289
<x-sponsors.logos.borah
8390
class="block h-auto max-h-10 max-w-full fill-[#042340] dark:fill-white"
8491
alt="Borah Digital Labs logo"
92+
loading="lazy"
8593
/>
8694
<span class="sr-only">Borah Digital Labs</span>
8795
</a>

resources/views/components/sponsors/lists/home/featured-sponsors.blade.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@ class="opacity-0"
44
>
55
<a
66
href="https://beyondco.de/?utm_source=nativephp&utm_medium=logo&utm_campaign=nativephp"
7-
title="BeyondCode sponsor"
8-
aria-label="Visit BeyondCode, our featured sponsor"
7+
title="Learn more about BeyondCode"
8+
aria-label="Visit BeyondCode website"
99
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
10+
rel="sponsored"
1011
>
1112
<img
1213
src="/img/sponsors/beyondcode.png"
1314
class="block h-auto max-h-10 max-w-full dark:hidden"
1415
loading="lazy"
15-
alt="BeyondCode logo"
16+
alt="BeyondCode logo - PHP development tools and packages"
1617
/>
1718
<img
1819
src="/img/sponsors/beyondcode-dark.png"
1920
class="hidden h-auto max-h-10 max-w-full dark:block"
2021
loading="lazy"
21-
alt="BeyondCode logo"
22+
alt="BeyondCode logo - PHP development tools and packages"
2223
/>
2324
<span class="sr-only">BeyondCode</span>
2425
</a>
@@ -30,9 +31,10 @@ class="opacity-0"
3031
>
3132
<a
3233
href="https://laradevs.com/?ref=nativephp"
33-
title="Laradevs sponsor"
34-
aria-label="Visit Laradevs, our featured sponsor"
34+
title="Learn more about Laradevs"
35+
aria-label="Visit Laradevs website"
3536
class="inline-grid h-32 w-60 shrink-0 place-items-center rounded-2xl bg-gray-100 p-5 transition duration-200 hover:scale-105 hover:bg-gray-200/70 hover:ring-1 hover:ring-black/60 dark:bg-gray-900/40 dark:hover:bg-gray-900/60 dark:hover:ring-white/15"
37+
rel="sponsored"
3638
>
3739
<x-sponsors.logos.laradevs
3840
class="block h-auto max-h-10 max-w-full text-black dark:text-white"

0 commit comments

Comments
 (0)