@@ -8,7 +8,6 @@ import { usePathname } from "next/navigation";
88const navItems = [
99 { label : "HOME" , href : "/" } ,
1010 { label : "ABOUT" , href : "/#about" } ,
11- { label : "TRACKS" , href : "/#problems" } ,
1211 { label : "JUDGE" , href : "/#judge" } ,
1312 { label : "FAQ" , href : "/#faq" } ,
1413] ;
@@ -137,6 +136,7 @@ export default function Navbar() {
137136 </ nav >
138137
139138 { /* Original desktop navigation — intentionally unchanged */ }
139+ { /* Original desktop navigation — updated for centered links */ }
140140 < nav
141141 className = "
142142 fixed
@@ -160,8 +160,12 @@ export default function Navbar() {
160160 hidden lg:block
161161 "
162162 >
163- < div className = "flex h-full items-center justify-between px-3 sm:px-6 md:px-[26px] gap-3" >
164- < Link href = "/" className = "flex items-center shrink-0" >
163+ < div className = "grid h-full grid-cols-[1fr_auto_1fr] items-center px-3 sm:px-6 md:px-[26px] gap-3" >
164+ { /* Left Column: Logos */ }
165+ < Link
166+ href = "/"
167+ className = "flex items-center shrink-0 justify-self-start"
168+ >
165169 < Image
166170 src = "/Navbar/ieee-cs_logo.svg"
167171 alt = "IEEE Computer Society Logo"
@@ -194,7 +198,8 @@ export default function Navbar() {
194198 />
195199 </ Link >
196200
197- < div className = "flex items-center gap-3 md:gap-4 lg:gap-6 xl:gap-8 2xl:gap-10 overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden" >
201+ { /* Center Column: Navigation Links */ }
202+ < div className = "flex items-center justify-center gap-3 md:gap-4 lg:gap-6 xl:gap-8 2xl:gap-10 overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden" >
198203 { navItems . map ( ( item ) => (
199204 < Link
200205 key = { item . href }
@@ -206,10 +211,11 @@ export default function Navbar() {
206211 ) ) }
207212 </ div >
208213
214+ { /* Right Column: Profile/Login Icon */ }
209215 < Link
210216 href = "/login"
211217 aria-label = "Login"
212- className = "relative block h-[38px] w-[90px] lg:w-[100px] xl:w-[110px] 2xl:w-[118px] flex-shrink-0"
218+ className = "relative block h-[38px] w-[90px] lg:w-[100px] xl:w-[110px] 2xl:w-[118px] flex-shrink-0 justify-self-end "
213219 >
214220 < Image
215221 src = "/Navbar/profile_icon.svg"
0 commit comments