@@ -19,6 +19,9 @@ 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+
2225export default function Navbar ( ) {
2326 const [ open , setOpen ] = useState ( false ) ;
2427 const shellRef = useRef < HTMLDivElement > ( null ) ;
@@ -135,10 +138,10 @@ export default function Navbar() {
135138
136139 return (
137140 < header className = "fixed inset-x-0 top-0 z-50 px-4 pt-4 sm:px-6" >
138- < div className = "mx-auto max-w-6xl" >
141+ < div className = "mx-auto flex w-full max-w-6xl items-center justify-between gap-3 " >
139142 < div
140143 ref = { shellRef }
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)]"
144+ className = { ` ${ shellCardClasses } w-auto` }
142145 style = { shellVars }
143146 onMouseEnter = { updateRect }
144147 onMouseMove = { ( event ) => {
@@ -183,7 +186,7 @@ export default function Navbar() {
183186 maskComposite : 'exclude' ,
184187 } }
185188 />
186- < nav className = "relative flex items-center justify-between px-4 py-3 sm:px-6" >
189+ < nav className = "relative flex flex-wrap items-center justify-between gap-3 px-4 py-3 sm:px-6" >
187190 < Link
188191 href = "/"
189192 aria-label = "Go to home"
@@ -198,21 +201,6 @@ export default function Navbar() {
198201 </ span >
199202 </ Link >
200203
201- < div className = "hidden items-center gap-3 md:flex" >
202- { NAV_LINKS . map ( ( link ) => (
203- < a
204- key = { link . href }
205- href = { link . href }
206- target = "_blank"
207- rel = "noopener noreferrer"
208- 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"
209- >
210- < GithubMark />
211- { link . label }
212- </ a >
213- ) ) }
214- </ div >
215-
216204 < button
217205 type = "button"
218206 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"
@@ -245,6 +233,25 @@ export default function Navbar() {
245233 </ div >
246234 ) : null }
247235 </ 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 >
248255 </ div >
249256 </ header >
250257 ) ;
0 commit comments