import { useState, useEffect } from 'react'; import { Menu, X, Github, Linkedin, Twitter, Mail } from 'lucide-react'; export default function Header() { const [isMenuOpen, setIsMenuOpen] = useState(false); const [isScrolled, setIsScrolled] = useState(false); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 20); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const navLinks = [ { name: 'About', href: '#about' }, { name: 'Skills', href: '#skills' }, { name: 'Projects', href: '#projects' }, { name: 'Experience', href: '#experience' }, { name: 'Contact', href: '#contact' }, ]; const socialLinks = [ { icon: Github, href: 'https://github.com', label: 'GitHub' }, { icon: Linkedin, href: 'https://linkedin.com', label: 'LinkedIn' }, { icon: Twitter, href: 'https://twitter.com', label: 'Twitter' }, { icon: Mail, href: 'mailto:hello@example.com', label: 'Email' }, ]; return (
{/* Logo */} Portfolio {/* Desktop Navigation */} {/* Social Links - Desktop */}
{socialLinks.map((social) => ( ))}
{/* Mobile Menu Button */}
{/* Mobile Menu */} {isMenuOpen && (
{socialLinks.map((social) => ( ))}
)}
); }