Datasets:
Download tasks/c29/repo/src/components/MenuOverlay.jsx from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 793 Bytes
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c29/repo/src/components/MenuOverlay.jsx
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c29/repo/src/components/MenuOverlay.jsx
-
curl -L -o MenuOverlay.jsx https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c29/repo/src/components/MenuOverlay.jsx
793 Bytes
| import { CloseIcon } from './Icons.jsx' | |
| const LINKS = ['Products', 'Brand-new', 'Stories', 'Spaces', 'Showrooms', 'Contact'] | |
| export default function MenuOverlay({ open, onClose }) { | |
| if (!open) return null | |
| return ( | |
| <div className="menu-overlay" role="dialog" aria-modal="true" aria-label="Main menu"> | |
| <div className="menu-overlay__bar"> | |
| <span className="hero__logo">moooi</span> | |
| <button className="menu-overlay__close" type="button" onClick={onClose}> | |
| Close <CloseIcon /> | |
| </button> | |
| </div> | |
| <nav className="menu-overlay__nav"> | |
| <p className="eyebrow">Explore Moooi</p> | |
| {LINKS.map(l => ( | |
| <a key={l} href="#top" className="menu-overlay__link" onClick={onClose}>{l}</a> | |
| ))} | |
| </nav> | |
| </div> | |
| ) | |
| } | |