// Inera People — marketing site: top navigation (() => { const { Logo, Button } = window.IneraPeopleDesignSystem_7b6830; function scrollToId(id) { const el = document.getElementById(id); const sc = document.querySelector("[data-scroll]"); if (el && sc) sc.scrollTo({ top: el.offsetTop - 12, behavior: "smooth" }); } function SiteNav({ onContact }) { const [open, setOpen] = React.useState(false); const [scrolled, setScrolled] = React.useState(false); // Whole site is a single dark family — the nav stays on the dark theme throughout. // We only track whether the page has scrolled, to fade in a subtle sticky backdrop. React.useEffect(() => { const sc = document.querySelector("[data-scroll]"); if (!sc) return; const onScroll = () => setScrolled(sc.scrollTop > 40); onScroll(); sc.addEventListener("scroll", onScroll, { passive: true }); return () => sc.removeEventListener("scroll", onScroll); }, []); const links = [ ["Métiers", "métiers"], ["Missions", "missions"], ["Approche", "approche"], ["Fondatrice", "fondatrice"], ]; const go = (id) => { scrollToId(id); setOpen(false); }; const linkBase = "var(--ink-300)"; const linkHover = "var(--ink-50)"; const burgerColor = "var(--ink-50)"; const burgerBorder = "var(--border-on-ink-strong)"; const logoSrc = "assets/logo-silver.png"; const showBackdrop = open || scrolled; return (
Inera People {/* desktop links */} {/* mobile hamburger */}
{/* mobile dropdown */}
{links.map(([label, id]) => ( { e.preventDefault(); go(id); }} style={{ fontFamily: "var(--font-sans)", fontSize: "var(--text-md)", fontWeight: 600, color: "var(--ink-200)", textDecoration: "none", padding: "12px 0", borderBottom: "1px solid var(--border-on-ink)", }}>{label} ))}
); } window.SiteNav = SiteNav; })();