@@ -9,6 +9,7 @@ import { Badge } from "../../_components/badge"
99
1010import MenuIcon from "../pixelarticons/menu.svg?svgr"
1111import CloseIcon from "../pixelarticons/close.svg?svgr"
12+ import { GraphQLConfLogoLink } from "./graphql-conf-logo-link"
1213
1314export interface NavbarProps {
1415 links : { href : string ; children : React . ReactNode ; "aria-disabled" ?: true } [ ]
@@ -49,18 +50,7 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
4950 >
5051 < BackdropBlur />
5152 < div className = "flex h-[var(--navbar-h)] items-center justify-between gap-5 px-4 lg:px-10" >
52- < div className = "flex items-center gap-2 text-xl/none uppercase" >
53- < NextLink href = "/" className = "-m-1 p-1 hover:bg-neu-900/10" >
54- < GraphQLLogo className = "h-6" />
55- </ NextLink >
56- < span > /</ span >
57- < NextLink
58- href = { `/conf/${ year } ` }
59- className = "-m-2 p-2 underline-offset-4 hover:underline"
60- >
61- GraphQLConf { year }
62- </ NextLink >
63- </ div >
53+ < GraphQLConfLogoLink year = { year } />
6454
6555 < div className = "mr-auto flex h-full flex-col justify-center whitespace-pre border-x border-black/60 px-4 typography-menu dark:border-white/80 max-xl:hidden" >
6656 < p className = "flex items-center gap-2 text-sm" >
@@ -127,24 +117,6 @@ export function Navbar({ links, year }: NavbarProps): ReactElement {
127117 )
128118}
129119
130- function GraphQLLogo ( props : React . SVGProps < SVGSVGElement > ) {
131- return (
132- < svg viewBox = "0 0 100 100" fill = "currentColor" { ...props } >
133- < path
134- fillRule = "evenodd"
135- clipRule = "evenodd"
136- d = "M50 6.90308L87.323 28.4515V71.5484L50 93.0968L12.677 71.5484V28.4515L50 6.90308ZM16.8647 30.8693V62.5251L44.2795 15.0414L16.8647 30.8693ZM50 13.5086L18.3975 68.2457H81.6025L50 13.5086ZM77.4148 72.4334H22.5852L50 88.2613L77.4148 72.4334ZM83.1353 62.5251L55.7205 15.0414L83.1353 30.8693V62.5251Z"
137- />
138- < circle cx = "50" cy = "9.3209" r = "8.82" />
139- < circle cx = "85.2292" cy = "29.6605" r = "8.82" />
140- < circle cx = "85.2292" cy = "70.3396" r = "8.82" />
141- < circle cx = "50" cy = "90.6791" r = "8.82" />
142- < circle cx = "14.7659" cy = "70.3396" r = "8.82" />
143- < circle cx = "14.7659" cy = "29.6605" r = "8.82" />
144- </ svg >
145- )
146- }
147-
148120function BackdropBlur ( ) {
149121 const mask = "linear-gradient(to bottom,#000 0% 50%, transparent 50% 100%)"
150122 return (
0 commit comments