// Pages parked while it is still undecided whether they go live. A hidden route // drops out of the menu and its #/hash falls back to home, so it cannot be // reached by typing the URL either. The page's own file stays untouched — // delete the entry here to put it back. const HIDDEN_ROUTES = ["#/about"]; window.HIDDEN_ROUTES = HIDDEN_ROUTES; const NAV_LINKS = [ { href: "#/projects", label: "Projects" }, { href: "#/gallery", label: "Gallery" }, { href: "#/about", label: "About" }, { href: "#/contact", label: "Contact" }, ].filter((l) => !HIDDEN_ROUTES.includes(l.href)); function SiteHeader({ overlay }) { const [open, setOpen] = React.useState(false); const [hover, setHover] = React.useState(false); React.useEffect(() => { if (!open) return; const onKey = (e) => { if (e.key === "Escape") setOpen(false); }; window.addEventListener("keydown", onKey); return () => window.removeEventListener("keydown", onKey); }, [open]); return (
setOpen(false)}>Bert Verheye
{/* Hidden from the tab order while closed. The panel is only scaled to nothing, so its links stayed focusable and a keyboard user tabbing through the page fell into an invisible menu. */}
); } window.SiteHeader = SiteHeader;