File size: 951 Bytes
acb6617
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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>
  )
}