-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
executable file
·34 lines (31 loc) · 938 Bytes
/
index.js
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
import React from 'react'
import { Link } from 'react-router'
import { StyledHeader, Logo, Subtitles } from './styles'
import nypl from 'images/nypl-white.svg'
export default function Header (props) {
return (
<StyledHeader className='align-center'>
<div className='align-center'>
<Logo style={{backgroundImage: `url(${nypl})`}} href='//nypl.org' target='_blank'>
<span>The New York Public Library</span>
</Logo>
<Subtitles>
<div>
<a href='http://nypl.org/' target='_blank'>The New York Public Library</a>
</div>
<div>
<a href='http://spacetime.nypl.org/' target='_blank'>NYC Space/Time Directory</a>
</div>
</Subtitles>
<h1>
<Link to={props.homepageLink}>
Surveyor
</Link>
</h1>
</div>
<div>
{props.children}
</div>
</StyledHeader>
)
}