File size: 1,374 Bytes
dd5428d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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>
  )
}