/
assets.go
93 lines (83 loc) · 1.21 KB
/
assets.go
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
87
88
89
90
91
92
93
package handlers
import "text/template"
var styledTemplate = template.Must(template.New("experiment").Parse(`
<html>
<head>
<style>
body {
font-family: "helveticaneue-light";
font-size: 16px;
color: #333;
position: absolute;
margin:0;
width:100%;
height:100%;
}
dt {
color:#777;
}
.envs {
margin:10px
}
.hello {
position:absolute;
top:0;
height:120px;
left:0;
right:0;
text-align:center;
font-size:80px;
font-weight:bold;
line-height:120px;
color: rgb(0,139,185);
}
.my-index {
position:absolute;
top:120px;
height:30px;
color: #333;
font-size:30px;
line-height:30px;
left:0;
right:0;
text-align:center;
color: rgb(0,151,198)
}
.index {
position:absolute;
top:176px;
height:120px;
left:0;
right:0;
color: #fff;
font-size: 80px;
line-height: 120px;
background-color:rgb(36,184,235);
text-align:center;
}
.mid-color {
position:absolute;
top:296px;
height:120px;
left:0;
right:0;
background-color: rgb(0,151,198)
}
.bottom-color {
position:absolute;
top:416px;
bottom:0;
left:0;
right:0;
background-color: rgb(0,139,185);
}
</style>
</head>
<body>
{{.Body}}
</body>
</html>
`))
type Body struct {
Body string
}