"use client"; import React, { useEffect, useState } from "react"; import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline"; import styles from "./styles/Header.module.css"; const Header = () => { const [isMenuOpen, setIsMenuOpen] = useState(false); useEffect(() => { const handleHashChange = () => { if (window.location.hash) { const element = document.querySelector(window.location.hash); if (element) { window.scrollTo({ top: element.offsetTop - 150, behavior: "smooth", }); } } }; window.addEventListener("hashchange", handleHashChange); return () => window.removeEventListener("hashchange", handleHashChange); }, []); const navLinks = [ { name: "Home", href: "#home" }, { name: "About", href: "#aboutScroll" }, { name: "Certifications", href: "#certificationsScroll" }, { name: "Projects", href: "#projectScroll" }, { name: "Experience", href: "#experiencesScroll" }, { name: "Education", href: "#educationScroll" }, { name: "Contact", href: "#contactScroll" }, ]; return (

Valentin MASSONNIERE

{isMenuOpen && ( )}
); }; export default Header;