// Nav.jsx — sticky, transparent → solid on scroll, mobile hamburger const { useState, useEffect } = React; function Nav() { const [scrolled, setScrolled] = useState(false); const [open, setOpen] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 60); window.addEventListener('scroll', onScroll, { passive: true }); onScroll(); return () => window.removeEventListener('scroll', onScroll); }, []); const links = [ { label: 'Work', href: '#work' }, { label: 'Styles', href: '#styles' }, { label: 'Process', href: '#process' }, ]; return (
LA Media Wall
{open && (
LA Media Wall
{links.map(l => setOpen(false)}>{l.label})} setOpen(false)} className="btn btn-primary" style={{marginTop: 32}}>Request an Estimate
)}
); } window.Nav = Nav;