Skip to content

Commit 5d2bc52

Browse files
committed
Add skip links
1 parent 8372205 commit 5d2bc52

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/components/Welcome.astro

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ const resources = [
5050
];
5151
---
5252

53+
<!-- Skip link for accessibility -->
54+
<a href="#main-content" class="sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 bg-purple-700 text-white px-4 py-2 rounded-lg z-50 focus:outline-none focus:ring-2 focus:ring-white">
55+
Skip to main content
56+
</a>
57+
5358
<header class="sticky top-0 bg-white dark:bg-gray-900 shadow-sm z-30">
5459
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
5560
<div class="flex justify-between h-16">
@@ -145,6 +150,9 @@ const resources = [
145150
<span class="text-lg">⚠️</span>
146151
</div>
147152
</div>
153+
154+
<!-- Main Content -->
155+
<main id="main-content">
148156
<!-- Hero Section -->
149157
<section class="min-h-[80vh] flex flex-col justify-center items-center text-center px-4 relative overflow-hidden">
150158
<div class="absolute inset-0 bg-gradient-to-br from-purple-500/20 to-pink-500/20 z-0"></div>
@@ -319,4 +327,5 @@ const resources = [
319327
))}
320328
</div>
321329
</div>
322-
</section>
330+
</section>
331+
</main>

0 commit comments

Comments
 (0)