@@ -79,8 +79,8 @@ export function Navbar({ links, CTAId, sections }: NavbarProps) {
7979 const isActive = ( href : string ) => active === href
8080 return (
8181 < div className = "z-100 sticky top-0 w-full p-9 px-[24px] lg:px-[60px] 2xl:px-[160px]" >
82- < GlassCard className = "flex items-center justify-between rounded-full pl-3 pr-5 backdrop-blur-md lg:pr-3" >
83- < div className = "flex w-[142px] items-center justify-center pt-1 lg:w-[120px] 2xl:w-[180px]" >
82+ < GlassCard className = "flex items-center rounded-full pl-3 pr-5 backdrop-blur-md lg:pr-3" >
83+ < div className = "flex w-[142px] items-center justify-center lg:w-[120px] 2xl:w-[180px]" >
8484 < NavLink href = { "/" } >
8585 < Image
8686 style = { { width : "100%" , height : "auto" , objectFit : "cover" } }
@@ -91,21 +91,23 @@ export function Navbar({ links, CTAId, sections }: NavbarProps) {
9191 />
9292 </ NavLink >
9393 </ div >
94- < div className = "hidden items-center lg:flex lg:gap-2 2xl:justify-between 2xl:gap-2.5" >
95- { links . map ( ( item , i ) => {
96- if ( item . type === "normal" && ! item . mobileOnly ) {
97- return (
98- < NavLink
99- key = { item . label }
100- className = { `rounded-full px-3 py-3 text-white lg:px-3 2xl:px-6 ${ isActive ( item . href . replace ( "#" , "" ) ) ? "text-nav-1-selected liquid" : "text-nav-2" } ` }
101- href = { item . href } >
102- { item . label }
103- </ NavLink >
104- )
105- } else return < Fragment key = { `${ item . label } -${ i } ` } > </ Fragment >
106- } ) }
94+ < div className = "flex flex-1 items-center justify-center" >
95+ < div className = "hidden items-center lg:flex lg:gap-2 2xl:gap-2.5" >
96+ { links . map ( ( item , i ) => {
97+ if ( item . type === "normal" && ! item . mobileOnly ) {
98+ return (
99+ < NavLink
100+ key = { item . label }
101+ className = { `rounded-full px-4 py-3 text-white 2xl:px-6 2xl:py-4 ${ isActive ( item . href . replace ( "#" , "" ) ) ? "text-nav-1-selected liquid" : "text-nav-2" } ` }
102+ href = { item . href } >
103+ { item . label }
104+ </ NavLink >
105+ )
106+ } else return < Fragment key = { `${ item . label } -${ i } ` } > </ Fragment >
107+ } ) }
108+ </ div >
107109 </ div >
108- < div className = "flex h-[70px] items-center" >
110+ < div className = "flex h-[70px] w-[142px] items-center justify-end lg:w-[120px] 2xl:w-[180px] " >
109111 { CTA [ CTAId ] }
110112 < Drawer >
111113 < DrawerTrigger asChild >
0 commit comments