-
Notifications
You must be signed in to change notification settings - Fork 0
/
award.html
290 lines (250 loc) · 8.89 KB
/
award.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="https://learn.getgrav.org/user/pages/11.troubleshooting/01.page-not-found/error-404.png "/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<title>404 error </title>
<style>
html,
body {
height: 100%;
min-height: 450px;
font-family: 'Dosis', sans-serif;
font-size: 32px;
font-weight: 500;
color: #5d7399;
}
.content {
height: 100%;
position: relative;
z-index: 1;
background-color: #d2e1ec;
background-image: -webkit-gradient(linear, left top, left bottom, from(#bbcfe1), color-stop(80%, #e8f2f6));
background-image: linear-gradient(to bottom, #bbcfe1 0%, #e8f2f6 80%);
overflow: hidden;
}
.snow {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
z-index: 20;
}
.main-text {
padding: 20vh 20px 0 20px;
text-align: center;
line-height: 2em;
font-size: 5vh;
}
.home-link {
font-size: 0.6em;
font-weight: 400;
color: inherit;
text-decoration: none;
opacity: 0.6;
border-bottom: 1px dashed rgba(93, 115, 153, 0.5);
}
.home-link:hover {
opacity: 1;
}
.ground {
height: 160px;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
background: #f6f9fa;
-webkit-box-shadow: 0 0 10px 10px #f6f9fa;
box-shadow: 0 0 10px 10px #f6f9fa;
}
.ground:before, .ground:after {
content: '';
display: block;
width: 250px;
height: 250px;
position: absolute;
top: -62.5px;
z-index: -1;
background: transparent;
-webkit-transform: scaleX(0.2) rotate(45deg);
transform: scaleX(0.2) rotate(45deg);
}
.ground:after {
left: 50%;
margin-left: -166.6666666667px;
-webkit-box-shadow: -340px 260px 15px #8193b2, -625px 575px 15px #91a1bc, -895px 905px 15px #8e9eba, -1215px 1185px 15px #8798b6, -1545px 1455px 15px #91a1bc, -1830px 1770px 15px #8798b6, -2075px 2125px 15px #9dabc4, -2410px 2390px 15px #8a9bb8, -2680px 2720px 15px #adb9cd, -2985px 3015px 15px #b7c1d3, -3335px 3265px 15px #b7c1d3, -3600px 3600px 15px #a4b1c8, -3920px 3880px 15px #8e9eba, -4175px 4225px 15px #8e9eba, -4495px 4505px 15px #bac4d5, -4795px 4805px 15px #97a6c0;
box-shadow: -340px 260px 15px #8193b2, -625px 575px 15px #91a1bc, -895px 905px 15px #8e9eba, -1215px 1185px 15px #8798b6, -1545px 1455px 15px #91a1bc, -1830px 1770px 15px #8798b6, -2075px 2125px 15px #9dabc4, -2410px 2390px 15px #8a9bb8, -2680px 2720px 15px #adb9cd, -2985px 3015px 15px #b7c1d3, -3335px 3265px 15px #b7c1d3, -3600px 3600px 15px #a4b1c8, -3920px 3880px 15px #8e9eba, -4175px 4225px 15px #8e9eba, -4495px 4505px 15px #bac4d5, -4795px 4805px 15px #97a6c0;
}
.ground:before {
right: 50%;
margin-right: -166.6666666667px;
-webkit-box-shadow: 305px -295px 15px #b0bccf, 570px -630px 15px #9dabc4, 900px -900px 15px #a1aec6, 1160px -1240px 15px #8e9eba, 1500px -1500px 15px #a7b4c9, 1810px -1790px 15px #91a1bc, 2060px -2140px 15px #b4bed1, 2400px -2400px 15px #bac4d5, 2715px -2685px 15px #9aa9c2, 3045px -2955px 15px #9aa9c2, 3345px -3255px 15px #8193b2, 3650px -3550px 15px #8e9eba, 3910px -3890px 15px #b7c1d3, 4235px -4165px 15px #a4b1c8, 4470px -4530px 15px #9aa9c2, 4850px -4750px 15px #adb9cd;
box-shadow: 305px -295px 15px #b0bccf, 570px -630px 15px #9dabc4, 900px -900px 15px #a1aec6, 1160px -1240px 15px #8e9eba, 1500px -1500px 15px #a7b4c9, 1810px -1790px 15px #91a1bc, 2060px -2140px 15px #b4bed1, 2400px -2400px 15px #bac4d5, 2715px -2685px 15px #9aa9c2, 3045px -2955px 15px #9aa9c2, 3345px -3255px 15px #8193b2, 3650px -3550px 15px #8e9eba, 3910px -3890px 15px #b7c1d3, 4235px -4165px 15px #a4b1c8, 4470px -4530px 15px #9aa9c2, 4850px -4750px 15px #adb9cd;
}
.mound {
margin-top: -80px;
font-weight: 800;
font-size: 180px;
text-align: center;
color: #dd4040;
pointer-events: none;
}
.mound:before {
content: '';
display: block;
width: 600px;
height: 200px;
position: absolute;
left: 50%;
margin-left: -300px;
top: 50px;
z-index: 1;
border-radius: 100%;
background-color: #e8f2f6;
background-image: linear-gradient(to bottom, #dee8f1, #f6f9fa 60px);
}
.mound:after {
content: '';
display: block;
width: 28px;
height: 6px;
position: absolute;
left: 50%;
margin-left: -150px;
top: 68px;
z-index: 2;
background: #dd4040;
border-radius: 100%;
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
-webkit-box-shadow: -56px 12px 0 1px #dd4040, -126px 6px 0 2px #dd4040, -196px 24px 0 3px #dd4040;
box-shadow: -56px 12px 0 1px #dd4040, -126px 6px 0 2px #dd4040, -196px 24px 0 3px #dd4040;
}
.mound_text {
-webkit-transform: rotate(6deg);
transform: rotate(6deg);
}
.mound_spade {
display: block;
width: 35px;
height: 30px;
position: absolute;
right: 50%;
top: 42%;
margin-right: -250px;
z-index: 0;
-webkit-transform: rotate(35deg);
transform: rotate(35deg);
background: #dd4040;
}
.mound_spade:before, .mound_spade:after {
content: '';
display: block;
position: absolute;
}
.mound_spade:before {
width: 40%;
height: 30px;
bottom: 98%;
left: 50%;
margin-left: -20%;
background: #dd4040;
}
.mound_spade:after {
width: 100%;
height: 30px;
top: -55px;
left: 0%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 10px solid #dd4040;
border-radius: 4px 4px 20px 20px;
}
</style>
</head>
<body>
<body translate="no" >
<div class="content">
<canvas class="snow" id="snow"></canvas>
<div class="main-text">
<h1>Aw jeez.<br/>There's no awards.</h1>
</div>
<div class="ground">
<div class="mound">
<div class="mound_text">404</div>
<div class="mound_spade"></div>
</div>
</div>
</div>
<script >
(function() {
function ready(fn) {
if (document.readyState != 'loading'){
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
function makeSnow(el) {
var ctx = el.getContext('2d');
var width = 0;
var height = 0;
var particles = [];
var Particle = function() {
this.x = this.y = this.dx = this.dy = 0;
this.reset();
}
Particle.prototype.reset = function() {
this.y = Math.random() * height;
this.x = Math.random() * width;
this.dx = (Math.random() * 1) - 0.5;
this.dy = (Math.random() * 0.5) + 0.5;
}
function createParticles(count) {
if (count != particles.length) {
particles = [];
for (var i = 0; i < count; i++) {
particles.push(new Particle());
}
}
}
function onResize() {
width = window.innerWidth;
height = window.innerHeight;
el.width = width;
el.height = height;
createParticles((width * height) / 10000);
}
function updateParticles() {
ctx.clearRect(0, 0, width, height);
ctx.fillStyle = '#f6f9fa';
particles.forEach(function(particle) {
particle.y += particle.dy;
particle.x += particle.dx;
if (particle.y > height) {
particle.y = 0;
}
if (particle.x > width) {
particle.reset();
particle.y = 0;
}
ctx.beginPath();
ctx.arc(particle.x, particle.y, 5, 0, Math.PI * 2, false);
ctx.fill();
});
window.requestAnimationFrame(updateParticles);
}
onResize();
updateParticles();
window.addEventListener('resize', onResize);
}
ready(function() {
var canvas = document.getElementById('snow');
makeSnow(canvas);
});
})();
</script>
</body>
</html>