-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
98 lines (84 loc) · 2.28 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Maintenance</title>
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<style>
body, html {
font-family: 'Raleway', sans-serif;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
position: relative;
color: #4d4d4d;
}
.content {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1000;
text-align: center;
width: 100%;
overflow: auto;
margin: auto;
left: 0;
right: 0;
}
h1 {
font-size: 40px;
font-weight: 100;
}
h2 {
font-size: 20px;
font-weight: 100;
}
svg {
position: absolute;
min-width: 100%;
top: 0;
left: 0;
}
@media screen and (min-width: 640px) {
h1 {
font-size: 80px;
}
h2 {
font-size: 30px;
}
}
</style>
</head>
<body>
<div class="content">
<h1>Site under maintenance</h1>
<h2>We'll be back soon. Sorry for inconvenience.</h2>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.4.0/trianglify.min.js"></script>
<script>
function generateTrianglify(withadd) {
var trianglify = Trianglify({
width: window.innerWidth,
height: window.innerHeight,
cell_size: 40,
seed: 'u3c38'
});
if (withadd) {
document.body.appendChild(trianglify.svg())
}
return trianglify
}
generateTrianglify(true);
window.onresize = function (event) {
var element = document.getElementsByTagName("svg")[0]
var trianglify = generateTrianglify(false)
element.parentNode.replaceChild(trianglify.svg(), element)
}
</script>
</body>
</html>