-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunsupported.js
65 lines (53 loc) · 1.18 KB
/
unsupported.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// @flow
import React, { Component } from 'react'
import { render } from 'react-dom'
import styled, { injectGlobal } from 'styled-components'
import './src/fonts'
import Header from 'shared/Header'
import Container from 'shared/Container'
import Footer from 'shared/Footer'
import('./src/tracking')
injectGlobal`
html {
height: 100%;
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
position: relative;
margin: 0;
padding-bottom: 90px;
min-height: 100%;
font-family: 'Avenir Next', Avenir, Helvetica, Arial, sans-serif;
}
`
const ContentContainer = styled.div`
min-height: 100%;
position: relative;
`
const Wrapper = styled.div`padding: 35px;`
const FooterContainer = styled.div`
position: absolute;
bottom: 0;
width: 100%;
`
render(
<div>
<Header />
<Container>
<Wrapper>
<p>Unfortunately your browser is not compatible with this website.</p>
<p>Please come back with Chrome, Firefox, Safari, or Edge.</p>
<p>Thank you.</p>
</Wrapper>
</Container>
<FooterContainer>
<Footer />
</FooterContainer>
</div>,
document.getElementById('app')
)