@@ -19,9 +19,6 @@ const NAV_LINKS = [
1919 } ,
2020] ;
2121
22- const shellCardClasses =
23- 'relative overflow-hidden rounded-2xl border border-white/25 bg-black/45 backdrop-blur-xl shadow-[0_14px_40px_rgba(0,0,0,0.45)]' ;
24-
2522export default function Navbar ( ) {
2623 const [ open , setOpen ] = useState ( false ) ;
2724 const shellRef = useRef < HTMLDivElement > ( null ) ;
@@ -138,10 +135,10 @@ export default function Navbar() {
138135
139136 return (
140137 < header className = "fixed inset-x-0 top-0 z-50 px-4 pt-4 sm:px-6" >
141- < div className = "mx-auto flex w-full max-w-6xl items-center justify-between gap-3 " >
138+ < div className = "mx-auto max-w-6xl" >
142139 < div
143140 ref = { shellRef }
144- className = { ` ${ shellCardClasses } w-auto` }
141+ className = "relative overflow-hidden rounded-2xl border border-white/25 bg-black/45 backdrop-blur-xl shadow-[0_14px_40px_rgba(0,0,0,0.45)]"
145142 style = { shellVars }
146143 onMouseEnter = { updateRect }
147144 onMouseMove = { ( event ) => {
@@ -152,7 +149,6 @@ export default function Navbar() {
152149 const rect = rectRef . current ;
153150
154151 if ( ! rect ) return ;
155-
156152 const x = ( ( event . clientX - rect . left ) / rect . width ) * 100 ;
157153 const y = ( ( event . clientY - rect . top ) / rect . height ) * 100 ;
158154
@@ -186,7 +182,7 @@ export default function Navbar() {
186182 maskComposite : 'exclude' ,
187183 } }
188184 />
189- < nav className = "relative flex flex-wrap items-center justify-between gap-3 px-4 py-3 sm:px-6" >
185+ < nav className = "relative flex items-center justify-between px-4 py-3 sm:px-6" >
190186 < Link
191187 href = "/"
192188 aria-label = "Go to home"
@@ -201,6 +197,21 @@ export default function Navbar() {
201197 </ span >
202198 </ Link >
203199
200+ < div className = "hidden items-center gap-3 md:flex" >
201+ { NAV_LINKS . map ( ( link ) => (
202+ < a
203+ key = { link . href }
204+ href = { link . href }
205+ target = "_blank"
206+ rel = "noopener noreferrer"
207+ className = "inline-flex items-center gap-2 rounded-xl border border-white/15 bg-white/5 px-4 py-2 text-sm font-medium text-white/90 transition hover:border-white/45 hover:bg-white/10"
208+ >
209+ < GithubMark />
210+ { link . label }
211+ </ a >
212+ ) ) }
213+ </ div >
214+
204215 < button
205216 type = "button"
206217 className = "inline-flex items-center justify-center rounded-xl border border-white/15 bg-white/5 p-2 text-white/90 transition hover:bg-white/10 md:hidden"
@@ -233,25 +244,6 @@ export default function Navbar() {
233244 </ div >
234245 ) : null }
235246 </ div >
236-
237- < nav aria-label = "External repository" className = "hidden md:block" >
238- < div className = { `${ shellCardClasses } p-3 md:p-4` } >
239- < div className = "flex items-center gap-3" >
240- { NAV_LINKS . map ( ( link ) => (
241- < a
242- key = { link . href }
243- href = { link . href }
244- target = "_blank"
245- rel = "noopener noreferrer"
246- className = "inline-flex items-center gap-2 rounded-xl border border-white/15 bg-white/5 px-4 py-2 text-sm font-medium text-white/90 transition hover:border-white/45 hover:bg-white/10"
247- >
248- < GithubMark />
249- { link . label }
250- </ a >
251- ) ) }
252- </ div >
253- </ div >
254- </ nav >
255247 </ div >
256248 </ header >
257249 ) ;
0 commit comments