-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
375 lines (329 loc) · 12.3 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Spooky Boba Manor</title>
<link href="https://fonts.googleapis.com/css2?family=Creepster&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" href="style.css" /> -->
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
<script>
window.si = window.si || function () { (window.siq = window.siq || []).push(arguments); };
</script>
<script defer src="/_vercel/speed-insights/script.js"></script>
<style>
/* All Styles */
body {
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
padding: 0;
font-family: 'Creepster', cursive;
background: url('https://img.freepik.com/free-vector/watercolor-halloween-background_52683-43698.jpg?size=626&ext=jpg&ga=GA1.1.1413502914.1727308800&semt=ais_hybrid') no-repeat center center fixed;
background-size: cover;
color: #fff;
text-align: center;
}
/* Header style */
header {
background-color: rgba(0, 0, 0, 0);
position: relative;
}
h1 {
color: #e3a920;
font-size: 4rem;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
animation: flicker 2.5s infinite alternate;
}
@keyframes flicker {
0% { opacity: 1; }
25% { opacity: 0.2; }
50% { opacity: 0.7; }
75% { opacity: 0.4; }
100% { opacity: 1; }
}
p {
font-size: 2.5rem;
color: #ddd;
}
li {
font-size: 1.5rem;
line-height: 120%;
}
main {
flex: 1;
padding: 20px;
}
.submission-section {
padding: 20px;
text-align: center;
}
h2 {
color: #f88a1c;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
font-size: 2rem;
}
button {
font-size: 3em;
padding: 10px 20px;
background-color: #333;
color: #fff;
font-family: 'Creepster', cursive;
border: none;
border-radius: 5px;
box-shadow: 0 0 10px #fff;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
button:hover {
background-color: #555;
transform: scale(1.1);
}
.clickable-area {
position: absolute;
width: 100px;
height: 100px;
cursor: pointer;
}
/* Hidden Ghost */
.hidden-ghost {
position: absolute;
width: 80px;
height: 80px;
background: url('https://static.vecteezy.com/system/resources/previews/014/605/931/original/a-cartoon-white-evil-ghost-that-has-fun-haunting-people-on-halloween-png.png') no-repeat center;
background-size: cover;
opacity: 0.8;
cursor: pointer;
transition: transform 0.2s ease, opacity 0.2s ease;
}
.hidden-ghost:hover {
opacity: 1;
transform: scale(1.2);
}
/* Rules Box */
.rules-box {
max-width: 600px;
margin: 20px auto;
padding: 20px;
background-color: rgba(0, 0, 0, 0.8);
color: #fff;
border: 2px solid #fff;
box-shadow: 0 0 15px #fff;
text-align: left;
}
footer {
padding: 20px;
text-align: center;
background-color: rgba(0, 0, 0, 0.9);
color: #fff;
}
.stickers {
position: absolute;
top: 10px;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
z-index: 10;
}
.sticker {
width: 40px;
height: auto;
}
.left {
margin-left: 20px;
}
.right {
margin-right: 20px;
}
.bubble {
position: absolute;
width: 20px;
height: 20px;
background: url('https://static.wikia.nocookie.net/tastyplanet/images/f/f5/Tapioca_Pearl.png/revision/latest?cb=20220105010303') no-repeat center center; /* Change to your bubble image */
background-size: contain;
border-radius: 50%;
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0); }
}
/* Overlay Styles */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 165, 0, 1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 1000;
font-size: 2rem;
color: white;
}
/* Countdown Timer */
#countdown {
font-size: 3rem;
margin-top: 20px;
}
/* Info Boxes */
.info-box {
max-width: 600px;
margin: 20px auto;
padding: 20px;
background-color: rgba(0, 0, 0, 0.8);
color: #fff;
border: 2px solid #fff;
box-shadow: 0 0 15px #fff;
text-align: left;
}
</style>
</head>
<body>
<header>
<h1 onClick="doot()" style="cursor: pointer;">The Boba Manor</h1>
<!-- <p>Submit a spooky website for the Boba Manor!</p> -->
<!-- Stickers -->
<!-- <div class="stickers">
<img src="https://hackclub.com/stickers/orpheus-having-boba.png" class="sticker left" alt="Orpheus Having Boba">
<img src="https://hackclub.com/stickers/skullpup_boba.png" class="sticker right" alt="Skullpup Boba">
</div> -->
</header>
<main>
<!-- Submission Button Linked to Airtable -->
<section class="submission-section">
<marquee><h2>Submit Your Haunted Room</h2></marquee>
<a href="https://hackclub.com" target="_blank">
<button style="background-color: orange; color: rgba(36, 39, 59, 1) !important;">Submissions Closed.</button>
</a>
</section>
<button id="manorButton" class="redirect-button">
Explore the Manor
</button>
<script>
document.getElementById('manorButton').addEventListener('click', function() {
window.location.href = 'https://manor.hackclub.com/manor.html';
});
</script> -->
<!-- Rules Box -->
<section class="rules-box">
<h2>Rules of the Haunted Manor</h2>
<ol>
<li>All submissions must be spooky-themed rooms!</li>
<li>Runs from Oct 1st to Oct 31st 11:59PM!</li>
<li>Make sure to include a link to https://hack.club/boba-manor</li>
<li>2 submissions per person.</li>
<li>Must be a high schooler or younger!</li>
<li>The deadline for submissions is midnight on October 31st</li>
<li>Don’t feed the Boba ghosts</li>
</ol>
</section>
<!-- Prizes Box -->
<section class="info-box">
<h2>Prizes</h2>
<ul>
<li>Top 1: Nothing Tech Earbud (a)</li>
<li>Top 10: Custom Laser Cut Dino Skeletons</li>
<li>Everyone: Spooky Sticker Pack</li>
</ul>
</section>
<!-- Steps Box -->
<section class="info-box">
<h2>Steps to Participate</h2>
<ol>
<li> Brainstorm your spooky theme in the #boba channel of <a href="https://hackclub.com/slack">slack</a>.</li>
<li> Build your haunted room (website). Make sure to include a link on your page to <a href="https://hack.club/boba-manor">here</a></li>
<li> Submit your website before the deadline.</li>
<li> After enough rooms are submitted, we'll open the manor and you can voyage through it!</li>
</ol>
</section>
<!-- Spooky Quotes -->
<div class="clickable-area" style="top: 10%; left: 20%;" onclick="showQuote('The scariest thing is what’s hidden inside...')"></div>
<div class="clickable-area" style="top: 30%; left: 40%;" onclick="showQuote('Life is full of surprises, especially in the dark!')"></div>
<div class="clickable-area" style="top: 50%; left: 60%;" onclick="showQuote('Fear is only as deep as the mind allows.')"></div>
<div class="clickable-area" style="top: 70%; left: 80%;" onclick="showQuote('Shadows can be your best friends... if they don’t haunt you!')"></div>
<div class="clickable-area" style="top: 20%; left: 70%;" onclick="showQuote('The night is dark and full of terrors.')"></div>
<!-- Hidden Clickable Ghost -->
<div class="hidden-ghost" style="left: 50%; top: 50%;"></div>
<!-- Submission Button Linked to Airtable -->
<section class="submission-section">
<h2>Submit Your Haunted Room</h2>
<a href="https://hack.club/boba-manor-submit" target="_blank">
<button style="background-color: orange; color: rgba(36, 39, 59, 1) !important;">Submit here</button>
</a>
</section>
</main>
<footer>
<p>© The Boba Manor. Beware, you have been warned... Made By @R </p>
</footer>
<script>
function doot() {
// the jumpscare of all time
const dootUrl = 'https://cloud-ctlarj8uq-hack-club-bot.vercel.app/0skullsound2_audio.mp4'
// play the doot sound
const audio = new Audio(dootUrl)
const gifUrl = 'https://cloud-11jkf35jk-hack-club-bot.vercel.app/0doot-doot-doot.gif'
const img = document.createElement('img')
img.src = gifUrl
img.style.position = 'fixed'
img.style.bottom = '0px'
img.style.left = '0px'
img.style.width = '100vw'
img.style.height = '100vh'
const body = document.querySelector('body')
body.appendChild(img)
audio.onended = () => {
// delete the image
setTimeout(() => {
img.remove()
}, 100)
}
audio.play()
}
</script>
<!-- Script to handle ghost clicking -->
<script>
const ghost = document.querySelector('.hidden-ghost');
ghost.addEventListener('click', () => {
const newX = Math.random() * (window.innerWidth - 100);
const newY = Math.random() * (window.innerHeight - 100);
ghost.style.left = `${newX}px`;
ghost.style.top = `${newY}px`;
});
// Countdown Timer
const countdownDate = new Date("October 1, 2024 10:00:00 GMT-0700").getTime();
const countdownElement = document.getElementById("countdown");
const countdownFunction = setInterval(() => {
const now = new Date().getTime();
const distance = countdownDate - now;
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
countdownElement.innerHTML = `${days}d ${hours}h ${minutes}m ${seconds}s`;
if (distance < 0) {
clearInterval(countdownFunction);
countdownElement.innerHTML = "EXPIRED";
document.getElementById("overlay").style.display = "none"; // Hide overlay when countdown ends
}
}, 1000);
// Show quote when clicked
function showQuote(quote) {
alert(quote);
}
// Check for admin bypass
if (window.location.search.includes('admin')) {
document.getElementById("overlay").style.display = "none";
}
</script>
</body>
</html>