generated from a456pur/seraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·142 lines (127 loc) · 4.29 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="ico.ico" type="image/x-icon">
<title>Home | Seraph</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
body {
margin: 0;
padding: 0;
font-family: 'Ubuntu', sans-serif;
display: flex;
height: 100vh;
background-color: black;
}
.image-side {
width: 60%;
background-image: url('seraph.png');
background-size: cover;
background-position: center;
background-color: black;
animation: mainHeaderAnimation 4s forwards;
}
.content-side {
width: 40%;
background-color: #000000;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
animation: mainHeaderAnimation 1s forwards;
}
h1 {
font-size: 96px;
margin-bottom: 20px;
}
p {
font-size: 16px;
margin-bottom: 2px;
padding-left: 10%;
padding-right: 10%;
text-align: center;
}
.button {
background-color: #000000;
color: white;
border: 3px solid white;
border-radius: 4px;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #ffffff;
color:black;
}
.typewriter {
overflow: hidden;
white-space: nowrap;
margin: 0 auto;
letter-spacing: 0.15em;
}
#cursor {
display: inline-block;
width: 0.1em;
background-color: #333;
animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
from, to {
opacity: 0;
}
50% {
opacity: 1;
}
}
@keyframes mainHeaderAnimation {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
</head>
<body>
<div class="image-side"></div>
<div class="content-side">
<h1 class="typewriter"><span id="cursor"></span></h1>
<br>
<a class="button" href="games/index.html">Games</a>
<a class="button" href="host.html">Host</a>
<a class="button" href="https://github.com/a456pur/seraph" target="__blank" >GitHub</a>
<p> all games playable on this website are copyright/property of their respective owners </p>
<p> // developed by @a456pur | release build v1 \\ </p>
</div>
<script>
const text = "seraph";
const typingDelay = 200;
const initialDelay = 600;
const cursor = document.getElementById("cursor");
const h1 = document.querySelector(".typewriter");
function type() {
setTimeout(() => {
for (let i = 0; i < text.length; i++) {
setTimeout(() => {
h1.textContent += text[i];
if (i === text.length - 1) {
cursor.style.display = "none";
}
}, i * typingDelay);
}
}, initialDelay);
}
type();
</script>
</body>
</html>