-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (99 loc) · 2.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coming Soon</title>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
@font-face {
font-family: "Press Start 2P", sans-serif;
src: url("Ambient.ttf");
}
body {
background-color: black;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
margin: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
transition: filter 0.5s;
}
#comingSoon {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: rgba(255, 255, 255, 0.8);
font-size: 12px;
font-family: "Press Start 2P", sans-serif;
text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}
#entryButton {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: rgba(255, 255, 255, 0.8);
font-size: 23px;
font-family: "Press Start 2P", sans-serif;
text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
backdrop-filter: blur(10px);
cursor: pointer;
}
#content {
display: none;
}
</style>
</head>
<body>
<div class="container">
<p id="entryButton" class="enter">Click To Enter</p>
</div>
<div id="content">
<div id="comingSoon">
<h1>COMING SOON</h1>
</div>
<!-- audio player for bg music -->
<audio id="audio" controls autoplay loop style="display: none">
<source src="skidee.xyz.mp3" type="audio/mp3" />
Your browser does not support the audio tag.
</audio>
</div>
<!-- js for interactions, animations -->
<script>
document.addEventListener("DOMContentLoaded", function () {
var audio = document.getElementById("audio");
// func to hide the entry button and show content
function showContent() {
var entryButton = document.getElementById("entryButton");
var content = document.getElementById("content");
// hide entry button
entryButton.style.opacity = 0;
entryButton.style.pointerEvents = "none";
// Delay before hiding entry button and displaying content
setTimeout(function () {
entryButton.style.display = "none";
content.style.display = "block";
// bg music
audio.play();
document.body.style.overflow = "auto";
}, 500);
}
// entry button event listener
document
.getElementById("entryButton")
.addEventListener("click", showContent);
// adding blur class to the body when the page loads
document.body.classList.add("blur");
});
</script>
</body>
</html>