// Nav.jsx — sticky pill nav, used across all pages const NavBar = ({ active, basePath = '' }) => { const [open, setOpen] = React.useState(false); const bp = basePath; const links = [ { id: 'work', label: 'Work', href: bp + 'portfolio.html' }, { id: 'about', label: 'About', href: bp + 'about.html' }, { id: 'voice', label: 'Voice', href: bp + 'voice-over.html' }, { id: 'photo', label: 'Photo', href: bp + 'photography.html' }, { id: 'cases', label: 'Case studies', href: bp + 'case-studies.html' }, ]; return ( justinpossible {links.map(l => ( {l.label} ))} setOpen(!open)} aria-label={open ? 'Close menu' : 'Open menu'} aria-expanded={open} > Email me {open && ( {links.map(l => ( setOpen(false)} > {l.label} ))} Email me )} ); }; const SiteFooter = ({ basePath = '' }) => ( ); window.NavBar = NavBar; window.SiteFooter = SiteFooter;