// Marketing site — top navigation (responsive, transparent → solid on scroll). const { useState, useEffect } = React; const { Button } = window.TheGangsaDesignSystem_223a82; const MENU = [ { label: "소개", en: "About" }, { label: "도구", en: "Tools" }, { label: "요금제", en: "Pricing" }, { label: "문의", en: "Contact" }, ]; function Nav({ onCta, onLogin }) { const [scrolled, setScrolled] = useState(false); const [open, setOpen] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 40); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); return (
{open && (
{MENU.map((m) => ( setOpen(false)} style={{ textDecoration: "none", color: "var(--text-primary)", fontSize: 16, fontWeight: 600, padding: "12px 8px", borderRadius: "var(--r-md)" }}> {m.label} {m.en} ))} { setOpen(false); onLogin && onLogin(); }} style={{ textDecoration: "none", cursor: "pointer", color: "var(--text-primary)", fontSize: 16, fontWeight: 700, padding: "12px 8px", borderRadius: "var(--r-md)" }}>로그인
)}
); } Object.assign(window, { Nav });