Skip to content

Commit ec52d31

Browse files
committed
feat: make navbar sticky
1 parent 7332864 commit ec52d31

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/Navbar.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
import ArrowUpRight from "./ArrowUpRight.astro";
33
---
44

5-
<nav aria-label="Navigation bar" class="py-4">
5+
<nav
6+
aria-label="Navigation bar"
7+
class="sticky top-0 z-10 bg-gray-50 py-4 dark:bg-[#0a0a0a]"
8+
>
69
<ul class="flex gap-4 font-medium lowercase text-gray-900 dark:text-gray-100">
710
<li>
811
<a class="py-2 hover:underline" href="/"> Home </a>

0 commit comments

Comments
 (0)