Skip to content

Commit 5fd9525

Browse files
committed
improve accessibility
Signed-off-by: rishichawda <[email protected]>
1 parent edd5da3 commit 5fd9525

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

src/components/footer.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const currentYear = new Date().getFullYear();
1010
target="_blank"
1111
rel="noopener noreferrer"
1212
class="text-gray-500 hover:text-gray-700 transition-colors"
13+
aria-label="Visit Rishi's GitHub profile"
1314
>
1415
<span class="sr-only">GitHub</span>
1516
<svg viewBox="0 0 24 24" class="w-5 h-5 sm:w-6 sm:h-6 fill-current"
@@ -23,6 +24,7 @@ const currentYear = new Date().getFullYear();
2324
target="_blank"
2425
rel="noopener noreferrer"
2526
class="text-gray-500 hover:text-gray-700 transition-colors"
27+
aria-label="Connect with Rishi on LinkedIn"
2628
>
2729
<span class="sr-only">LinkedIn</span>
2830
<svg viewBox="0 0 24 24" class="w-5 h-5 sm:w-6 sm:h-6 fill-current"
@@ -36,6 +38,7 @@ const currentYear = new Date().getFullYear();
3638
target="_blank"
3739
rel="noopener noreferrer"
3840
class="text-gray-500 hover:text-gray-700 transition-colors"
41+
aria-label="Follow Rishi on Instagram"
3942
>
4043
<span class="sr-only">Instagram</span>
4144
<svg

src/components/landing/articles_preview.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,8 @@ const articles = allArticles
208208
if (dotsContainer) {
209209
dotsContainer.innerHTML = "";
210210
for (let i = 0; i < totalSlides; i++) {
211-
const dot = document.createElement("button");
211+
const dot = document.createElement("span");
212212
dot.className = `w-2 h-2 rounded-full ${i === currentIndex ? "bg-[#B7BEE7]" : "bg-[#B7BEE7]/40"}`;
213-
dot.setAttribute("aria-label", `Go to slide ${i + 1}`);
214213
dot.setAttribute("data-index", i.toString());
215214
dotsContainer.appendChild(dot);
216215
}
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
<section class="bg-brand-900/[0.05] py-16 md:py-20 px-4">
22
<div class="max-w-4xl mx-auto text-center">
3-
<h2 class="text-3xl md:text-4xl font-['Red_Hat_Display_Variable'] font-medium text-brand-900 mb-4">
3+
<h2
4+
class="text-3xl md:text-4xl font-['Red_Hat_Display_Variable'] font-medium text-brand-900 mb-4"
5+
>
46
Let's Work Together
57
</h2>
6-
<p class="text-lg md:text-xl font-light text-brand-700 mb-8 font-['Montserrat_Variable']">
7-
Have a project in mind or want to discuss potential opportunities? I'd love to hear from you.
8+
<p
9+
class="text-lg md:text-xl font-light text-brand-700 mb-8 font-['Montserrat_Variable']"
10+
>
11+
Have a project in mind or want to discuss potential opportunities? I'd
12+
love to hear from you.
813
</p>
914
<a
15+
transition:name="cta-cta-button"
1016
href="/contact/"
1117
class="bg-brand-700 text-white px-6 py-3 rounded font-['Red_Hat_Display_Variable'] text-sm font-medium uppercase tracking-wide hover:bg-brand-900 transition-colors text-center"
1218
>
1319
Get in touch
1420
</a>
1521
</div>
16-
</section>
22+
</section>

src/components/landing/hero.astro

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ import logo from "../../../content/assets/logo/Group 489.svg";
6464
the digital realm!
6565
</p>
6666

67-
<p class="text-white sm:text-md font-light font-['Montserrat_Variable'] leading-7">
67+
<p
68+
class="text-white sm:text-md font-light font-['Montserrat_Variable'] leading-7"
69+
>
6870
Open to new freelance and open source adventures - feel free to reach
6971
out for any exciting projects that need some code magic.
7072
</p>
@@ -106,6 +108,7 @@ import logo from "../../../content/assets/logo/Group 489.svg";
106108
target="_blank"
107109
rel="noopener noreferrer"
108110
class="hover:opacity-80 transition-opacity hover:cursor-pointer"
111+
aria-label="Visit Rishi's GitHub profile"
109112
>
110113
<svg
111114
width="32"
@@ -124,6 +127,7 @@ import logo from "../../../content/assets/logo/Group 489.svg";
124127
target="_blank"
125128
rel="noopener noreferrer"
126129
class="hover:opacity-80 transition-opacity hover:cursor-pointer"
130+
aria-label="Connect with Rishi on LinkedIn"
127131
>
128132
<svg
129133
width="26"
@@ -142,11 +146,12 @@ import logo from "../../../content/assets/logo/Group 489.svg";
142146
target="_blank"
143147
rel="noopener noreferrer"
144148
class="hover:opacity-80 transition-opacity hover:cursor-pointer"
149+
aria-label="Follow Rishi on Instagram"
145150
>
146151
<svg
147-
width="26"
148-
height="26"
149-
fill="none"
152+
width="26"
153+
height="26"
154+
fill="none"
150155
id="Layer_1"
151156
data-name="Layer 1"
152157
xmlns="http://www.w3.org/2000/svg"
@@ -163,8 +168,9 @@ import logo from "../../../content/assets/logo/Group 489.svg";
163168
<!-- Get in Touch Button -->
164169
<div class="relative z-20 mt-8 w-fit mx-auto mb-4">
165170
<a
171+
transition:name="hero-cta-button"
166172
href="/contact/"
167-
class="bg-brand-500 text-white px-6 py-3 rounded font-['Red_Hat_Display_Variable'] text-sm font-medium uppercase tracking-wide hover:bg-brand-600 transition-colors block text-center"
173+
class="bg-brand-500 text-white px-6 py-3 rounded font-['Red_Hat_Display_Variable'] text-sm font-medium uppercase tracking-wide hover:bg-brand-500 transition-colors block text-center"
168174
>
169175
Get in Touch
170176
</a>

0 commit comments

Comments
 (0)