@@ -5,10 +5,11 @@ import NextLink from "next/link"
5
5
import { clsx } from "clsx"
6
6
import { usePathname } from "next/navigation"
7
7
8
- import { HamburgerIcon , CrossIcon } from "@/icons"
9
-
10
8
import { Badge } from "../../_components/badge"
11
9
10
+ import MenuIcon from "../pixelarticons/menu.svg?svgr"
11
+ import CloseIcon from "../pixelarticons/close.svg?svgr"
12
+
12
13
export interface NavbarProps {
13
14
links : { href : string ; children : React . ReactNode ; "aria-disabled" ?: true } [ ]
14
15
year : number
@@ -40,8 +41,8 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
40
41
/>
41
42
< header
42
43
className = { clsx (
43
- "top-0 z-10 w-full border-b border-black/60 font-mono text-neu-900 antialiased dark:border-white/80" ,
44
- mobileDrawerOpen ? "fixed" : "sticky" ,
44
+ "gql-all-anchors-focusable top-0 z-10 w-full border-b border-black/60 font-mono text-neu-900 antialiased dark:border-white/80" ,
45
+ mobileDrawerOpen ? "fixed border-white " : "sticky" ,
45
46
) }
46
47
>
47
48
< BackdropBlur />
@@ -73,7 +74,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
73
74
{ mobileDrawerOpen && (
74
75
< div
75
76
onClick = { handleDrawerClick }
76
- className = "fixed inset-0 top-[var(--navbar-h)] z-10 bg-neu-0/40 backdrop-blur-[6.4px]"
77
+ className = "fixed inset-0 top-[calc( var(--navbar-h)+1px )] z-10 bg-neu-0/40 backdrop-blur-[6.4px]"
77
78
/>
78
79
) }
79
80
@@ -113,10 +114,10 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
113
114
</ nav >
114
115
115
116
< button
116
- className = "z-40 ml-auto size-6 text-white lg:hidden"
117
+ className = "gql-focus-visible z-40 ml-auto size-7 hover:bg-neu-900/10 lg:hidden"
117
118
onClick = { handleDrawerClick }
118
119
>
119
- { mobileDrawerOpen ? < CrossIcon /> : < HamburgerIcon /> }
120
+ { mobileDrawerOpen ? < CloseIcon /> : < MenuIcon /> }
120
121
</ button >
121
122
</ div >
122
123
</ header >
0 commit comments