function Nav() { const [scrolled, setScrolled] = React.useState(false); const [mobile, setMobile] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 8); window.addEventListener("scroll", onScroll); return () => window.removeEventListener("scroll", onScroll); }, []); const links = [ { href: "#mission", label: "Αποστολή" }, { href: "#curriculum", label: "Μαθήματα" }, { href: "#pillars", label: "Πυλώνες" }, { href: "#gallery", label: "Πλατφόρμα" }, { href: "#faq", label: "Ερωτήσεις" }, ]; return (
StudyForYou.gr
Σύνδεση Εγγραφή
{mobile && (
{links.map(l => ( setMobile(false)} className="sfy-nav-mlink" style={{ display: "block", padding: "14px 32px", fontSize: 15, fontWeight: 500, color: "var(--ink)", borderBottom: "1px solid var(--paper-deep)", }}>{l.label} ))} {/* Show login/register inside the mobile menu since the desktop CTA cluster is hidden */}
Σύνδεση Εγγραφή →
)}
); } window.Nav = Nav;