-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
112 lines (97 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hybris | Soon™</title>
<link rel="shortcut icon" href="favicon/black.svg" type="image/svg+xml" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://hybrismc.dev" />
<meta property="og:title" content="Hybris | Soon™" />
<meta property="og:site_name" content="Hybris" />
<meta property="twitter:card" content="summary_large_image" />
<meta
property="og:image"
content="https://cdn.discordapp.com/attachments/1002707512371453972/1109244144439804065/Yes._It_is_happening.png"
/>
<meta name="theme-color" content="#cfcfcf" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600&display=swap"
rel="stylesheet"
/>
<style>
body {
margin: 0;
overflow: hidden;
color: #303030;
font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (prefers-color-scheme: dark) {
body {
color: #cfcfcf;
}
}
img#wallpaper {
width: 100vw;
height: 100vh;
object-fit: cover;
}
img#logo {
position: absolute;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
width: 17vw;
height: 17vw;
min-width: 200px;
min-height: 200px;
object-fit: contain;
}
h1 {
position: absolute;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
user-select: none;
font-size: 5em;
}
@media screen and (max-width: 500px) {
h1 {
font-size: 4em;
}
}
</style>
</head>
<body>
<!-- Do you really think we were leaving? -->
<!-- Enjoy the wait :) -->
<img id="wallpaper" alt="Hybris' wallpaper" draggable="false" />
<img id="logo" alt="Hybris' logo" draggable="false" />
<h1>Soon™</h1>
<script>
function adaptToColorScheme(dark) {
const filename = dark ? 'black' : 'white';
const oppositeFilename = dark ? 'white' : 'black';
document
.querySelector('link[rel="shortcut icon"]')
.setAttribute('href', `favicon/${oppositeFilename}.svg`);
document
.querySelector('img#wallpaper')
.setAttribute('src', `wallpaper/${filename}.png`);
document
.querySelector('img#logo')
.setAttribute('src', `favicon/${oppositeFilename}.svg`);
}
const prefersDarkScheme = window.matchMedia(
'(prefers-color-scheme: dark)'
);
adaptToColorScheme(prefersDarkScheme.matches);
prefersDarkScheme.addEventListener('change', (event) =>
adaptToColorScheme(event.matches)
);
</script>
</body>
</html>