Datasets:
Download tasks/c30/repo/src/components/Header.jsx from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c30/repo/src/components/Header.jsx
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c30/repo/src/components/Header.jsx
-
curl -L -o Header.jsx https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c30/repo/src/components/Header.jsx
1.37 kB
| import { scrollToId, Wordmark } from './shared.jsx' | |
| const NAV = [ | |
| { label: 'Design Maturity Model', id: 'levels', active: true }, | |
| { label: 'Books', href: 'https://www.designbetter.co/books' }, | |
| { label: 'Podcast', href: 'https://www.designbetter.co/podcast' }, | |
| { label: 'Workshops', href: 'https://www.designbetter.co/workshops' }, | |
| { label: 'Conversations', href: 'https://www.designbetter.co/conversations' }, | |
| ] | |
| export default function Header() { | |
| return ( | |
| <header className="site-header"> | |
| <div className="container header-inner"> | |
| <a className="logo-link" href="#top" onClick={scrollToId('top')} aria-label="DesignBetter home"> | |
| <Wordmark /> | |
| </a> | |
| <nav className="main-nav" aria-label="Primary"> | |
| {NAV.map((item) => | |
| item.id ? ( | |
| <a key={item.label} className={item.active ? 'nav-link active' : 'nav-link'} href={`#${item.id}`} onClick={scrollToId(item.id)}> | |
| {item.label} | |
| </a> | |
| ) : ( | |
| <a key={item.label} className="nav-link" href={item.href} target="_blank" rel="noreferrer"> | |
| {item.label} | |
| </a> | |
| ), | |
| )} | |
| </nav> | |
| <a className="btn btn-outline" href="#liftoff" onClick={scrollToId('liftoff')}> | |
| Get the Full Report | |
| </a> | |
| </div> | |
| </header> | |
| ) | |
| } | |