-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
214 lines (188 loc) · 9.22 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!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>Home - audeck</title>
<link rel="stylesheet" href="css/index.css">
<link rel="shortcut icon" href="multimedia/favicon.svg">
</head>
<body>
<div id="navbar" class="navbar">
<div class="container">
<div class="logo">
<a onclick="landingScroll()"><img class="logo-img" src="multimedia/logo.svg"></a>
<a onclick="landingScroll()" class="logo-text">audeck</a>
</div>
<img id="mobile-nav-open" class="mobile-nav-open" src="multimedia/mobile-nav-open.svg" alt="Open the navigation menu.">
<nav id="nav">
<img id="mobile-nav-close" class="mobile-nav-close" src="multimedia/mobile-nav-close.svg" alt="Close the navigation menu.">
<ul class="nav-list">
<li><a id="nav-mod" alt="Mod" onclick="modScroll()">Mod</a></li>
<li><a id="nav-socials" alt="Socials" onclick="socialsScroll()">Socials</a></li>
<li><a id="nav-donate" alt="Donate" onclick="donateScroll()">Donate</a></li>
</ul>
</nav>
</div>
</div>
<div class="hero-container"><div></div></div>
<section class="mod">
<div class="container">
<h1>All the challenges, <span>one</span> mod.</h1>
<div class="mod-content">
<p>
Every challenge ever featured on my YouTube
channel is included. Main menu is accessible
via the vanilla "Create World" screen.<br>
<br>
The mod also includes a seamless speedrun
timer, which you can use for vanilla worlds too!<br>
<br>
It's (almost) standalone, built using <a href="https://fabricmc.net/" target="_blank" rel="noreferrer noopener">Fabric</a>
and <a href="https://github.com/OnyxStudios/Cardinal-Components-API/wiki" target="_blank" rel="noreferrer noopener">Cardinal Components</a> - thank you!<br>
<br>
Check out <a href="#" target="_blank" rel="noreferrer noopener">this video</a> for a guide on mod installation.
If you enjoy the mod, please consider <a onclick="donateScroll()">donating</a>!
</p>
<div class="mod-content-images">
<img src="multimedia/screenshots.png" alt="">
</div>
</div>
<a class="download-button" href="#">DOWNLOAD</a>
</div>
</section>
<section class="socials">
<div class="container">
<div class="socials-links">
<a href="https://www.youtube.com/channel/UCOq1YFWg_6uwZ0sxyR3hLAA" target="_blank" rel="noreferrer noopener">
<img class="socials-youtube-img" src="multimedia/youtube.svg" alt="YouTube">
<p>audeck</p>
</a>
<a href="https://www.twitch.tv/audecklive" target="_blank" rel="noreferrer noopener">
<img src="multimedia/twitch.svg" alt="Twitch">
<p>audeckLive</p>
</a>
<a href="https://www.twitter.com/audeckWasTaken" target="_blank" rel="noreferrer noopener">
<img class="socials-twitter-img" src="multimedia/twitter.svg" alt="Twitter">
<p>audeckWasTaken</p>
</a>
<a href="https://www.instagram.com/audeckwastaken/" target="_blank" rel="noreferrer noopener">
<img src="multimedia/instagram.svg" alt="Instagram">
<p>audeckWasTaken</p>
</a>
</div>
<div class="socials-text">
<h1>Follow me <span>online</span>!</h1>
<p>
I do stuff online<br>
Sometimes it's entertaining<br>
Follow me <span>or else</span>
</p>
</div>
</div>
</section>
<section class="donate">
<img src="multimedia/heart.svg">
<div class="container">
<div class="donate-text">
<div>
<h1>Consider <span>donating</span>?</h1>
</div>
<p>
I don't want to put any of my content behind a pay wall.<br>
As such, donations are my main source of income.<br>
Donate <span>only</span> if you have the money to spare.<br>
Please & thank you!
</p>
</div>
<a class="donate-button" href="https://www.paypal.com/donate?hosted_button_id=U3C6N8R45EC36" target="_blank" rel="noreferrer noopener" alt="Donate button">DONATE</a>
</div>
</section>
<footer class="signature">
<p class="signature-text">Website made with <a href="https://twitter.com/dog_feelings" target="_blank" rel="noreferrer noopener" alt="love"><3</a> by audeck.</p>
</footer>
<script>
let nav = document.getElementById('nav');
let navbar = document.getElementById('navbar');
let mobile_button_open = document.getElementById('mobile-nav-open');
let mobile_button_exit = document.getElementById('mobile-nav-close');
let nav_mod = document.getElementById('nav-mod');
let nav_socials = document.getElementById('nav-socials');
let nav_donate = document.getElementById('nav-donate');
mobile_button_open.addEventListener('click', () => {
nav.style.display = 'block';
});
mobile_button_exit.addEventListener('click', () => {
nav.style.display = 'none';
});
window.onscroll = function() {
let viewport_height = document.documentElement.clientHeight;
let distance_scrolled = document.documentElement.scrollTop;
navbar.style.backgroundColor = "#FFFFFF" + ("0" + Math.round((255 * 0.4 * Math.min(distance_scrolled/200, 1))).toString(16)).slice(-2);
navbar.style.boxShadow = "0 0 1rem #000000" + ("0" + Math.round((255 * 0.2 * Math.min(distance_scrolled/200, 1))).toString(16)).slice(-2);
navbar.style.backdropFilter = 'blur(' + Math.round(16 * Math.min(distance_scrolled/200, 1)) + 'px)';
/*
if (distance_scrolled >= 5*viewport_height/2 - 92) {
nav_mod.style.color = "#000000";
nav_socials.style.color = "#000000";
nav_donate.style.color = "var(--moonmoon)";
} else if (distance_scrolled >= 3*viewport_height/2 - 92) {
nav_mod.style.color = "#000000";
nav_socials.style.color = "var(--moonmoon)";
nav_donate.style.color = "#000000";
} else if (distance_scrolled >= viewport_height/2 - 92) {
nav_mod.style.color = "var(--moonmoon)";
nav_socials.style.color = "#000000";
nav_donate.style.color = "#000000";
} else {
nav_mod.style.color = "#000000";
nav_socials.style.color = "#000000";
nav_donate.style.color = "#000000";
}
*/
if (distance_scrolled >= 5*viewport_height/2 - 92) {
nav_mod.style.background = "#000000";
nav_socials.style.background = "#000000";
nav_donate.style.background = "var(--moonmoon_gradient)";
} else if (distance_scrolled >= 3*viewport_height/2 - 92) {
nav_mod.style.background = "#000000";
nav_socials.style.background = "var(--moonmoon_gradient)";
nav_donate.style.background = "#000000";
} else if (distance_scrolled >= viewport_height/2 - 92) {
nav_mod.style.background = "var(--moonmoon_gradient)";
nav_socials.style.background = "#000000";
nav_donate.style.background = "#000000";
} else {
nav_mod.style.background = "#000000";
nav_socials.style.background = "#000000";
nav_donate.style.background = "#000000";
}
}
function landingScroll() {
window.scrollTo({
top: 0,
behavior: "smooth"
});
}
function modScroll() {
window.scrollTo({
top: document.documentElement.clientHeight - 92,
behavior: "smooth"
});
}
function socialsScroll() {
window.scrollTo({
top: 2*document.documentElement.clientHeight - 2*92,
behavior: "smooth"
});
}
function donateScroll() {
window.scrollTo({
top: 3*document.documentElement.clientHeight - 3*92,
behavior: "smooth"
});
}
</script>
</body>
</html>