Skip to content

Commit f35f352

Browse files
committed
Update navbar icons to pixelarticons
1 parent a0ca86c commit f35f352

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/app/conf/2025/components/navbar.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import NextLink from "next/link"
55
import { clsx } from "clsx"
66
import { usePathname } from "next/navigation"
77

8-
import { HamburgerIcon, CrossIcon } from "@/icons"
9-
108
import { Badge } from "../../_components/badge"
119

10+
import MenuIcon from "../pixelarticons/menu.svg?svgr"
11+
import CloseIcon from "../pixelarticons/close.svg?svgr"
12+
1213
export interface NavbarProps {
1314
links: { href: string; children: React.ReactNode; "aria-disabled"?: true }[]
1415
year: number
@@ -40,8 +41,8 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
4041
/>
4142
<header
4243
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",
4546
)}
4647
>
4748
<BackdropBlur />
@@ -73,7 +74,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
7374
{mobileDrawerOpen && (
7475
<div
7576
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]"
7778
/>
7879
)}
7980

@@ -113,10 +114,10 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
113114
</nav>
114115

115116
<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"
117118
onClick={handleDrawerClick}
118119
>
119-
{mobileDrawerOpen ? <CrossIcon /> : <HamburgerIcon />}
120+
{mobileDrawerOpen ? <CloseIcon /> : <MenuIcon />}
120121
</button>
121122
</div>
122123
</header>
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)