// Header / nav with language switcher const NAV = [ { id: "academy", label: { en: "Academy", fr: "Académie", it: "Accademia", es: "Academia" } }, { id: "project", label: { en: "The Project", fr: "Le Projet", it: "Il Progetto", es: "El Proyecto" } }, { id: "training", label: { en: "Training & Network", fr: "Formation & Réseau", it: "Formazione & Rete", es: "Formación & Red" } }, { id: "partnership", label: { en: "Partnership", fr: "Partenariat", it: "Partenariato", es: "Asociación" } }, { id: "contact", label: { en: "Contact", fr: "Contact", it: "Contatti", es: "Contacto" } }, ]; const LANGS = [ { code: "EN", name: "English" }, { code: "FR", name: "Français" }, { code: "IT", name: "Italiano" }, { code: "ES", name: "Español" }, ]; function Header({ scrolled, lang, setLang }) { const [langOpen, setLangOpen] = React.useState(false); const langRef = React.useRef(null); React.useEffect(() => { const onClick = (e) => { if (langRef.current && !langRef.current.contains(e.target)) setLangOpen(false); }; document.addEventListener("mousedown", onClick); return () => document.removeEventListener("mousedown", onClick); }, []); return (
{/* Logo */}
VINIRRIG
Learn irrigation practice
{/* Nav */} {/* Right: lang + CTA */}
{langOpen && (
{LANGS.map((l) => ( ))}
)}
Access course
); } function Logomark({ color = "var(--navy)" }) { // Stylized droplet+grape mark inspired by brand logo return ( {/* grape cluster (white dots) */} {/* cursor arrow */} ); } function GlobeIcon() { return ( ); } function Caret({ open }) { return ; } window.Header = Header; window.Logomark = Logomark;