-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPage.js
86 lines (73 loc) · 1.83 KB
/
Page.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import React, { PropTypes } from 'react'
const propTypes = {
app: PropTypes.string.isRequired
}
const Page = ({ app }) => (
<html lang='en'>
<head>
<style>{ `
html {
line-height: 1.5;
font-family: Arial, Helvetica, sans-serif;
height: 100%;
}
body {
background-color: rgb( 245, 245, 245 );
margin: 0;
}
html,
body,
.app,
.content {
height: 100%;
}
select {
position: absolute;
top: 20px;
right: 20px;
}
.bar-chart {
background-color: rgb( 245, 245, 245 );
background-image: radial-gradient(
2px 2px at center,
rgb( 210, 230, 240 ) 0%,
rgb( 210, 230, 240 ) 50%,
rgb( 245, 245, 245 ) 50%,
rgb( 245, 245, 245 ) 100%
);
background-size: 30px 30px;
box-sizing: border-box;
height: 100%;
padding: 58px 20px 20px;
width: 100%;
}
.bar-chart__grid-x line,
.bar-chart__grid-y line {
stroke: rgb( 200, 80, 55 );
}
.bar-chart__label {
fill: rgb( 55, 55, 55 );
font-size: 18px;
}
.bar-chart__bar {
fill: rgb( 90, 175, 65 );
}
.bar-chart__value {
fill: rgb( 55, 55, 55 );
font-size: 30px;
font-weight: bold;
}
.bar-chart__value[text-anchor=end] {
fill: rgb( 255, 255, 255 );
text-shadow: 0 -2px 0 rgb( 30, 60, 22 );
}
` }</style>
</head>
<body>
<section className='app' dangerouslySetInnerHTML={{ __html: app }} />
<script src='/client.dist.js' />
</body>
</html>
)
Page.propTypes = propTypes
export default Page