// Top nav — minimal, sticky, blurred — mobile-responsive
const NAV_LINKS = [
{ id: "services", label: "Services", url: "#/services" },
{ id: "stack", label: "Stack", url: "#/stack" },
{ id: "agents", label: "Agents", url: "#/agents" },
{ id: "timeline", label: "Timeline", url: "#/timeline" },
{ id: "contact", label: "Contact", url: "#/contact" },
]
const Nav = ({ onCmdK, theme, onToggleTheme, accent, lang, onToggleLang, route }) => {
const [scrolled, setScrolled] = React.useState(false);
const [menuOpen, setMenuOpen] = React.useState(false);
const links = NAV_LINKS;
React.useEffect(() => {
const onScroll = () => setScrolled(window.scrollY > 12);
window.addEventListener("scroll", onScroll, { passive: true });
return () => window.removeEventListener("scroll", onScroll);
}, []);
return (
<>
{/* Mobile drawer */}
{menuOpen && (
{links.map(l => (
setMenuOpen(false)}
style={{
fontSize: 15,
color: "var(--text-dim)",
padding: "12px 4px",
textDecoration: "none",
display: "block",
borderBottom: "1px solid var(--line)",
}}
>{l.label}
))}
setMenuOpen(false)}
style={{
padding: "8px 14px",
background: "transparent",
border: "1px solid var(--line)",
borderRadius: 8,
color: "var(--text-dim)",
fontSize: 13,
textDecoration: "none",
}}
>Get a Quote
setMenuOpen(false)}
style={{
padding: "8px 14px",
background: "var(--text)",
color: "var(--bg)",
fontSize: 13,
fontWeight: 500,
borderRadius: 8,
textDecoration: "none",
}}
>Client Login
)}
>
);
};
window.Nav = Nav;