Datasets:
File size: 1,764 Bytes
148f3c7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | import { useState } from 'react'
const MENU_LINKS = [
{ label: 'Accueil', href: '#' },
{ label: 'Nos lieux', href: '#lieux' },
{ label: 'Notre Mission', href: '#mission' },
{ label: 'Essai gratuit', href: '#reserver' },
{ label: 'Contact', href: '#contact' },
]
export default function Header() {
const [open, setOpen] = useState(false)
return (
<header className="site-header">
<div className="header-inner">
<div className="header-left">
<button
type="button"
className="menu-toggle"
aria-expanded={open}
aria-controls="main-menu"
onClick={() => setOpen((v) => !v)}
>
<span className="menu-icon" aria-hidden="true">
<i />
<i />
</span>
<span className="menu-label">Menu</span>
</button>
</div>
<a className="logo" href="#" aria-label="Le Studio — accueil">
<span className="logo-ring">S</span>
</a>
<div className="header-right">
<div className="header-phone">
<span className="phone-hint">Appelez nous!</span>
<a className="phone-number" href="tel:+33631293238">+33 6 31 29 32 38</a>
</div>
<a className="btn btn-orange header-cta" href="#reserver">Essai gratuit!</a>
</div>
</div>
{open && (
<nav id="main-menu" className="menu-panel" aria-label="Navigation principale">
<ul>
{MENU_LINKS.map((link) => (
<li key={link.label}>
<a href={link.href} onClick={() => setOpen(false)}>{link.label}</a>
</li>
))}
</ul>
</nav>
)}
</header>
)
}
|