// Nav.jsx — sticky, translucent on scroll, color-aware const { useEffect: useEffectN, useState: useStateN } = React; function Nav() { const scrolled = useScrolled(30); const onDark = useActiveSection(); const go = (e, id) => { e.preventDefault(); const el = document.getElementById(id); if (el) { window.scrollTo({ top: el.offsetTop - 60, behavior: 'smooth' }); } }; return (
go(e, 'top')}> Ozworks go(e, 'contact')}>Book a chat
); } window.Nav = Nav;