@@ -11,8 +11,7 @@ const navLinks = [
1111 { name: " About" , href: " /about" , isActive: true },
1212 { name: " Blogs" , href: " /blogs" , isActive: true },
1313 { name: " Career" , href: " /career" , isActive: true },
14- { name: " Work" , href: " /work" , isActive: true },
15-
14+ { name: " Work" , href: " /work" , isActive: true }
1615];
1716
1817const isCurrentPage = (path : string ) => {
@@ -27,19 +26,18 @@ const isCurrentPage = (path: string) => {
2726 }
2827</style >
2928<header class =" sticky top-0 z-50 w-full border-b border-black/20 bg-white dark:border-white/20 dark:bg-[#050B1C]" >
30- <header class =" bg-background sticky top-0 z-50 w-full border-b border-black/20 dark:border-white/20" >
31- <!-- DESKTOP -->
29+ <div class =" bg-background" >
3230 <div class =" mx-auto hidden h-24 items-center justify-between px-4 sm:px-6 lg:flex lg:px-10" >
3331 <!-- Logo -->
3432 <a href =" /" class =" flex items-center gap-3" >
3533 <Picture
3634 src ={ logoImage }
3735 formats ={ [" png" , " webp" , " jpg" ]}
3836 alt =" Recursive Zero"
39- class =" h-12 w-12 rounded-full object-contain dark:brightness-200 dark:invert"
37+ class =" h-10 w-10 rounded-full object-contain dark:brightness-200 dark:invert"
4038 />
4139
42- <span class =" brand text-foreground text-3xl font-extrabold " > RECURSIVE ZERO </span >
40+ <span class =" brand text-foreground text-xl font-bold " > RECURSIVE ZERO </span >
4341 </a >
4442
4543 <!-- Desktop Nav -->
@@ -110,16 +108,16 @@ const isCurrentPage = (path: string) => {
110108 <!-- Fullscreen Mobile Menu -->
111109 <div id =" mobileMenu" class =" fixed inset-0 z-[9999] hidden bg-white dark:bg-[#050B1C]" >
112110 <!-- Header -->
113- <div class =" flex items-center justify-between border-b border-black/10 px-5 py -5 dark:border-white/10" >
111+ <div class =" flex h-20 items-center justify-between border-b border-black/10 px-5 dark:border-white/10" >
114112 <div class =" flex items-center gap-3" >
115113 <Picture
116114 src ={ logoImage }
117115 formats ={ [" png" , " webp" , " jpg" ]}
118116 alt =" Recursive Zero"
119- class =" h-12 w-12 rounded-full object-contain dark:brightness-200 dark:invert"
117+ class =" h-10 w-10 rounded-full object-contain dark:brightness-200 dark:invert"
120118 />
121119
122- <span class =" brand text-foreground text-2xl font-bold" > RECURSIVE ZERO </span >
120+ <span class =" brand text-foreground text-xl font-bold" > RECURSIVE ZERO </span >
123121 </div >
124122
125123 <div class =" flex items-center gap-3" >
@@ -158,37 +156,44 @@ const isCurrentPage = (path: string) => {
158156 }
159157
160158 <li class =" pt-8" >
161- class="bg-foreground text-background rounded-2xl border border-black px-6 py-3 text-lg font-semibold transition hover:border-transparent hover:bg-cyan-500 dark:border-white"
159+ <a
160+ href =" /career"
161+ class =" bg-foreground text-background inline-flex rounded-xl border border-black px-6 py-3 text-lg font-semibold transition hover:border-transparent hover:bg-cyan-500 dark:border-white"
162+ >
163+ Join Us
164+ </a >
162165 </li >
163166 </ul >
164167 </nav >
165168 </div >
166169 </div >
167- </header >
168-
169- <script is:inline >
170- function initMobileMenu() {
171- const openBtn = document.getElementById("mobileMenuBtn");
172-
173- const closeBtn = document.getElementById("closeMenuBtn");
174-
175- const menu = document.getElementById("mobileMenu");
176-
177- if (!openBtn || !closeBtn || !menu) return;
178-
179- openBtn.addEventListener("click", () => {
180- menu.classList.remove("hidden");
181- document.body.style.overflow = "hidden";
182- });
183-
184- closeBtn.addEventListener("click", () => {
185- menu.classList.add("hidden");
186- document.body.style.overflow = "auto";
187- });
188- }
189-
190- initMobileMenu();
170+ </div >
171+ <script is:inline >
172+ function initMobileMenu() {
173+ const openBtn = document.getElementById("mobileMenuBtn");
174+ const closeBtn = document.getElementById("closeMenuBtn");
175+ const menu = document.getElementById("mobileMenu");
176+
177+ if (!openBtn || !closeBtn || !menu) return;
178+
179+ openBtn.addEventListener("click", () => {
180+ menu.classList.remove("hidden");
181+
182+ document.body.style.overflow = "hidden";
183+ document.body.style.position = "fixed";
184+ document.body.style.width = "100%";
185+ });
186+
187+ closeBtn.addEventListener("click", () => {
188+ menu.classList.add("hidden");
189+
190+ document.body.style.overflow = "";
191+ document.body.style.position = "";
192+ document.body.style.width = "";
193+ });
194+ }
191195
192- document.addEventListener("astro:page-load", initMobileMenu);
193- </script >
196+ initMobileMenu();
197+ document.addEventListener("astro:page-load", initMobileMenu);
198+ </script >
194199</header >
0 commit comments