-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrapRootElement.js
37 lines (36 loc) · 992 Bytes
/
wrapRootElement.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
import React from 'react'
import { Global } from '@emotion/core'
import { ThemeProvider } from 'theme-ui'
import { Helmet } from 'react-helmet'
import theme from './src/theme'
export const wrapRootElement = ({ element }) => (
<ThemeProvider theme={theme}>
<Global
styles={theme => ({
html: {
height: '100%',
},
body: {
margin: 0,
height: '100%',
fontFamily: theme.fonts.body,
color: theme.colors.white,
},
'body > div, body > div > div': {
height: '100%',
},
})}
/>
<Helmet>
<meta charSet="utf-8" />
<html lang="en" />
<title>Piano Chord Trainer</title>
<meta
name="description"
content="Practice chords by playing them on a real or virtual piano."
/>
<link rel="canonical" href="https://chord-trainer.netlify.com/" />
</Helmet>
{element}
</ThemeProvider>
)