"use client"; import { useEffect, useState } from "react"; const links = [ { label: "Projects", href: "#projects" }, { label: "Experience", href: "#experience" }, { label: "Education", href: "#education" }, { label: "Skills", href: "#skills" }, { label: "Contact", href: "#contact" }, ]; export default function Navigation() { const [scrolled, setScrolled] = useState(false); const [open, setOpen] = useState(false); const [active, setActive] = useState(""); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 60); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); return (
{/* Hover underline via CSS */} {/* Mobile menu */}
{links.map((l, i) => ( setOpen(false)} style={{ fontFamily: "var(--font-jetbrains), monospace", fontSize: "0.78rem", letterSpacing: "0.16em", textTransform: "uppercase", textDecoration: "none", padding: "1rem 0", color: "#4a5060", borderBottom: i < links.length - 1 ? "1px solid #1c1f26" : "none", transition: "color 0.2s", }} onMouseEnter={(e) => (e.currentTarget.style.color = "#c8a96e")} onMouseLeave={(e) => (e.currentTarget.style.color = "#4a5060")} > {String(i + 1).padStart(2, "0")} {l.label} ))}
); }