Skip to content

Commit 088b5ef

Browse files
committed
style(landing): fixed nav bar when scrolling down
1 parent 7cbf537 commit 088b5ef

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

landing/index.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@
101101
</style>
102102
</head>
103103
<body class="min-h-screen bg-background text-foreground antialiased">
104-
<div class="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8">
105-
<!-- Header -->
106-
<header class="flex items-center justify-between py-6 animate-fade-up">
104+
<!-- Fixed Header -->
105+
<header class="fixed top-0 left-0 w-full z-50 bg-background/80 backdrop-blur-md border-b border-border/50 animate-fade-up">
106+
<div class="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8 flex items-center justify-between py-4">
107107
<a
108108
href="/"
109109
class="flex items-center gap-2 text-xl font-bold tracking-tight whitespace-nowrap"
@@ -180,13 +180,13 @@
180180
</svg>
181181
</button>
182182
</div>
183-
</header>
183+
</div>
184184
<!-- Mobile menu -->
185185
<nav
186186
id="mobile-menu"
187-
class="hidden md:hidden animate-fade-up border-b border-border pb-4 mb-4"
187+
class="hidden md:hidden border-t border-border/50 bg-background/80 backdrop-blur-md"
188188
>
189-
<div class="flex flex-col gap-3">
189+
<div class="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8 flex flex-col gap-3 pb-4 pt-3">
190190
<a
191191
href="#why"
192192
class="text-sm text-muted-foreground hover:text-foreground transition-colors px-1 py-1.5"
@@ -204,6 +204,12 @@
204204
>
205205
</div>
206206
</nav>
207+
</header>
208+
209+
<!-- Spacer for fixed header -->
210+
<div class="h-[65px]"></div>
211+
212+
<div class="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8">
207213

208214
<!-- Hero -->
209215
<section class="py-24 text-center animate-fade-up delay-100">

0 commit comments

Comments
 (0)