// 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 (
{open && (
{links.map(l => ( setOpen(false)} > {l.label} ))} Email me
)}
); }; const SiteFooter = ({ basePath = '' }) => ( ); window.NavBar = NavBar; window.SiteFooter = SiteFooter;