/* global React */ const { useState, useEffect } = React; function Nav() { const [scrolled, setScrolled] = useState(false); const [open, setOpen] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 24); onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); const links = [ { href: "#metodo", label: "Método OPV" }, { href: "#jornada", label: "Jornada" }, { href: "#para-quem", label: "Para quem" }, { href: "#sede", label: "Sede" }, { href: "#faq", label: "FAQ" }, ]; return (
{/* Brand */} MaveUp {/* Desktop nav */} {/* CTA */} Diagnóstico {/* Mobile toggle */}
{/* Mobile drawer */} {open && (
{links.map((l) => ( setOpen(false)} style={{ color: "#fff", textDecoration: "none", padding: "12px 14px", borderRadius: 12, fontSize: 15, fontWeight: 500, }} > {l.label} ))}
)}
); } window.Nav = Nav;