-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
41 lines (36 loc) · 943 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
35
36
37
38
39
40
41
import React from 'react'
import { Link, useStaticQuery, graphql } from 'gatsby'
import Img from 'gatsby-image'
import VisuallyHidden from '@reach/visually-hidden'
import Menu from '../menu'
import styles from './header.module.css'
const Header = () => {
const data = useStaticQuery(
graphql`
query LogoQuery {
file(relativePath: { eq: "logos/wsc-logo-fullcolor.png" }) {
childImageSharp {
fixed(width: 150) {
...GatsbyImageSharpFixed_tracedSVG
}
}
}
}
`
)
return (
<header className={styles.header}>
<div className={styles.container}>
<Link to="/">
<VisuallyHidden>Home</VisuallyHidden>
<Img
fixed={data.file.childImageSharp.fixed}
alt="Write/Speak/Code logo in full color"
/>
</Link>
<Menu />
</div>
</header>
)
}
export default Header