'use client'; import { useEffect, useState } from 'react'; import Link from 'next/link'; import { personal } from '@/content/personal'; import styles from './Header.module.scss'; const navLinks = [ { label: 'Home', href: '#home' }, { label: 'Tech', href: '#tech' }, { label: 'Projects', href: '#projects' }, { label: 'About', href: '#about' }, { label: 'Experience', href: '#experience' }, { label: 'Contact', href: '#contact' }, ]; export default function Header() { const [scrolled, setScrolled] = useState(false); const [menuOpen, setMenuOpen] = useState(false); useEffect(() => { const fn = () => setScrolled(window.scrollY > 80); window.addEventListener('scroll', fn); return () => window.removeEventListener('scroll', fn); }, []); return (
Ole Sch. {/* Desktop Nav */} {/* Hamburger */}
{/* Mobile Menu */} {menuOpen && ( )}
); }