-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
155 lines (146 loc) · 3.02 KB
/
index.html
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Emil Scherdin</title>
<style>
@font-face {
font-family: 'customFont';
src: url('font.ttf');
}
html{
background-color: #f2f2f2;
font-family: 'customFont';
color: #222;
font-size: 38px;
text-align: left;
margin: 0 auto;
}
body {
max-width: 1060px;
margin: 120px auto 0;
}
p {
margin: 0;
}
h1{
font-size: 120px;
margin: 17% 0 0;
}
#inner {
margin: 0 30px;
}
#content {
padding-bottom: 300px;
}
.text {
margin: 16px 0;
}
.button {
border-radius: 24px;
padding: 12px 20px;
color: white;
display: inline-block;
background-color: #4A90E2;
margin-top: 0;
font-size: 18px;
text-decoration: none;
transition: opacity .2s, margin-top .4s ease-in-out;
cursor: pointer;
}
.button-outer {
opacity: 0;
margin-top: 20px;
height: 60px;
transition: opacity .6s ease-in-out, margin-top .4s ease-in-out, height .4s;
}
.button-outer.show > .button {
margin-top: 10px;
}
.button-outer.show {
opacity: 1;
margin-top: 0;
height: 60px;
transition: opacity .6s ease-in-out, margin-top .4s ease-in-out, height .01s;
}
.button-outer.hide {
margin-top: 0;
height: 0;
transition: ease-in-out opacity .3s, ease-in-out margin-top .4s, height .3s ease .1s;
}
.button:hover {
opacity: 0.9;
}
.button > img {
margin-left: -5px;
margin-right: -12px;
margin-bottom: -5px;
pointer-events: none;
opacity: 0;
transition: opacity, margin-left .2s;
}
.button:hover > img {
margin-left: 3px;
opacity: 1;
}
.button-outer.show.selected {
height: 82px;
transition: opacity .6s ease-in-out, margin-top .4s ease-in-out, height .4s;
}
.button-outer.show.selected > .button {
background-color: #5faf74;
cursor: default;
margin-top: 40px;
margin-bottom: 6px;
padding: 8px 14px;
font-size: 15px;
transition: background-color .6s ease-in-out, font-size .4s ease-in-out, padding .4s ease-in-out, margin-top .4s ease-in-out, margin-bottom .4s ease-in-out, padding .4s ease-in-out;
}
.button-outer.show.selected > .button:hover {
opacity: 1;
}
.button-outer.show.selected > .button:hover > img {
opacity: 0;
margin-left: -5px;
}
a {
color: #222;
}
.text-spacer {
height: 14px;
}
.text-divider {
background: #e8e8e8;
border-radius: 15px;
height: 3px;
width: 114px;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
}
@media only screen and (max-width : 500px) {
html {
font-size: 32px;
}
body {
margin: 60px auto 0;
}
#content {
padding-bottom: 100px;
}
}
</style>
</head>
<body>
<div id="inner">
<div id="content"></div>
<div id="scroll-anchor"></div>
</div>
<script src="lib/main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js"></script>
<script id="buttons-template" type="x-tmpl-mustache">
{{#items}}
<div class="button-outer" id="question-{{ tag }}"><a class="button" onclick="onButtonPress('{{ tag }}')">{{ text }}<img src="arrow.svg" width="20" /></a></div>
{{/items}}
</script>
</body>
</html>