-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
176 lines (166 loc) · 4.26 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html>
<head>
<title>Devlay</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="One of the last short, readable domains in existence. Used to host subdomains, keeping websites cheap for people I know."
/>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="image" href="/backdrop.jpg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<style>
body,
html {
background-color: #272727;
margin: 0;
padding: 0;
overflow: hidden;
}
h1 {
font-family: Georgia, serif;
color: #e6e6e6;
text-align: center;
width: 100%;
font-size: 50px;
margin-bottom: 12px;
}
p {
font-family: Georgia, serif;
font-size: 16px;
font-style: normal;
font-weight: normal;
color: #e6e6e6;
text-align: center;
width: calc(100% - 10px);
line-height: 20px;
padding-left: 5px;
padding-right: 5px;
}
body {
background-color: #272727;
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-items: center;
}
.words {
width: 100%;
position: absolute;
top: 23%;
z-index: 20;
}
.background-container {
position: absolute;
top: 0;
height: 110vh;
width: 100%;
z-index: 0;
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Do not repeat the image */
background-size: cover; /* Resize the background image to cover the entire container */
display: none;
}
.add-image {
background-image: linear-gradient(
rgba(0, 0, 0, 0.7),
rgba(0, 0, 0, 0.7)
),
url("./backdrop.jpg");
}
.fade-in {
-webkit-animation: fadein 2s ease-out; /* Safari, Chrome and Opera > 12.1 */
-moz-animation: fadein 2s ease-out; /* Firefox < 16 */
-ms-animation: fadein 2s ease-out; /* Internet Explorer */
-o-animation: fadein 2s ease-out; /* Opera < 12.1 */
animation: fadein 2s ease-out;
}
@keyframes fadein {
from {
opacity: 0;
transform: scale(1.05);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Firefox < 16 */
@-moz-keyframes fadein {
from {
opacity: 0;
transform: scale(1.05);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
from {
opacity: 0;
transform: scale(1.05);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Internet Explorer */
@-ms-keyframes fadein {
from {
opacity: 0;
transform: scale(1.05);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Opera < 12.1 */
@-o-keyframes fadein {
from {
opacity: 0;
transform: scale(1.05);
}
to {
opacity: 1;
transform: scale(1);
}
}
</style>
</head>
<body>
<div class="background-container fade-in"></div>
<div class="words">
<h1>Devlay</h1>
<p>
One of the last short, readable domains in existence.<br />Used to host
subdomains, keeping websites cheap for people I know.
</p>
</div>
</body>
</html>
<script>
function addClass() {
let element = document.querySelector(".background-container");
let classes = element.classList;
classes.add("add-image");
let cols = document.getElementsByClassName("background-container");
for (i = 0; i < cols.length; i++) {
cols[i].style.display = "block";
}
}
function preloadImage(url) {
var img = new Image();
img.src = "/backdrop.jpg";
img.onload = function () {
addClass();
};
}
window.onload = preloadImage();
</script>