'use client'; import { useEffect, useState } from 'react'; import { SITE, GITEA_URL, GITEA_USERNAME } from '@/lib/config'; export default function Nav() { const [scrolled, setScrolled] = useState(false); const [mobileOpen, setMobileOpen] = useState(false); useEffect(() => { const fn = () => setScrolled(window.scrollY > 24); window.addEventListener('scroll', fn, { passive: true }); return () => window.removeEventListener('scroll', fn); }, []); const links = [ { href: '#about', label: 'About' }, { href: '#projects', label: 'Projects' }, { href: '#activity', label: 'Activity' }, { href: '#contact', label: 'Contact' }, ]; const navBase = 'fixed top-0 left-0 right-0 z-50 h-[60px] flex items-center transition-all duration-300'; const navStyle = scrolled ? 'bg-[rgba(7,7,7,0.85)] backdrop-blur-[20px] border-b border-white/[0.06]' : 'bg-transparent'; return ( ); }