Datasets:
Download tasks/c03/repo/src/components/Header.jsx from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 951 Bytes
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c03/repo/src/components/Header.jsx
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c03/repo/src/components/Header.jsx
-
curl -L -o Header.jsx https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c03/repo/src/components/Header.jsx
951 Bytes
| import { CPMonogram, SearchIcon } from './Icons.jsx' | |
| const NAV_ITEMS = ['About', 'Admissions', 'Academics', 'Student Life', 'Community', 'Support'] | |
| export default function Header() { | |
| return ( | |
| <header className="site-header"> | |
| <a className="brand" href="#top" aria-label="Charlotte Preparatory School home"> | |
| <CPMonogram width={96} /> | |
| <span className="brand-name"> | |
| Charlotte<br />Preparatory<br />School | |
| </span> | |
| </a> | |
| <nav className="main-nav" aria-label="Primary"> | |
| {NAV_ITEMS.map((item) => ( | |
| <a key={item} href="#top" className="nav-link"> | |
| {item} | |
| </a> | |
| ))} | |
| <span className="nav-divider" aria-hidden="true" /> | |
| <a href="#top" className="nav-link nav-link-oneprep"> | |
| One Prep | |
| </a> | |
| <button className="nav-search" aria-label="Search"> | |
| <SearchIcon /> | |
| </button> | |
| </nav> | |
| </header> | |
| ) | |
| } | |