-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathENTRANCE.html
418 lines (407 loc) · 14.2 KB
/
ENTRANCE.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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Truth Web Quest</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet"/>
<style>
:root {
--primary-color: #000;
--secondary-color: #1a1a1a;
--highlight-color: #1f2937;
--text-color: #fff;
--button-color: #000;
--hover-effect: radial-gradient(circle, #1f2937, transparent);
--button-bg-color: #000;
--button-text-color: #fff;
--button-hover-bg-color: #FFD700; /* Gold color */
--button-hover-text-color: #000;
--button-border-color: #FFD700; /* Gold color */
--nav-hover-color: #FFD700; /* Gold color */
--heading-color: #FFD700; /* Gold color */
}
body {
background: var(--primary-color);
color: var(--text-color);
font-family: 'Poppins', sans-serif;
overflow-x: hidden;
}
.hero {
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
border: 2px solid var(--highlight-color);
padding: 1rem;
text-align: center;
}
.hero::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--hover-effect);
opacity: 0.2;
animation: float 6s infinite ease-in-out;
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
.glow-text {
font-size: 2rem;
font-weight: bold;
text-shadow: 0 0 10px var(--highlight-color), 0 0 20px var(--highlight-color), 0 0 30px var(--highlight-color);
animation: glow 2s infinite alternate;
}
@keyframes glow {
0% {
text-shadow: 0 0 10px var(--highlight-color), 0 0 20px var(--highlight-color), 0 0 30px var(--highlight-color);
}
100% {
text-shadow: 0 0 20px var(--highlight-color), 0 0 30px var(--highlight-color), 0 0 40px var(--highlight-color);
}
}
.card {
background: var(--primary-color);
border: 2px solid var(--highlight-color);
border-radius: 10px;
padding: 1rem;
box-shadow: 0 0 15px var(--highlight-color);
transition: transform 0.3s, box-shadow 0.3s;
animation: fadeInUp 1s ease-in-out;
text-align: center;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 0 25px var(--highlight-color);
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.btn {
background: var(--button-bg-color);
color: var(--button-text-color);
padding: 0.75rem 1.5rem;
border: 2px solid var(--button-border-color); /* Gold border */
border-radius: 20px;
cursor: pointer;
transition: background 0.3s, color 0.3s;
animation: pulse 2s infinite;
display: inline-block;
text-align: center;
}
.btn:hover {
background: var(--button-hover-bg-color); /* Gold background */
color: var(--button-hover-text-color);
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
footer {
background: var(--primary-color);
color: var(--text-color);
text-align: center;
padding: 1rem;
}
html {
scroll-behavior: smooth;
}
.sticky-header {
position: sticky;
top: 0;
z-index: 50;
background: var(--primary-color);
transition: background 0.3s, box-shadow 0.3s;
}
.sticky-header.scrolled {
background: var(--secondary-color);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.logo-text {
font-size: 1.5rem;
font-weight: 700;
transition: font-size 0.3s;
}
.logo-text.scrolled {
font-size: 1.25rem;
}
.nav-item {
transition: transform 0.3s;
}
.nav-item:hover {
transform: scale(1.1);
color: var(--nav-hover-color); /* Gold color */
}
.fade-in {
opacity: 0;
animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
to {
opacity: 1;
}
}
.slide-in {
transform: translateX(-100%);
animation: slideIn 1s forwards;
}
@keyframes slideIn {
to {
transform: translateX(0);
}
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
background-color: #000; /* Black background */
color: var(--text-color);
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 500px;
border-radius: 10px;
animation: slideInFromTop 0.5s ease-out, fadeIn 0.5s ease-out;
}
@keyframes slideInFromTop {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(0);
}
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
transition: transform 0.3s;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
transform: rotate(90deg);
}
.floating-effect {
display: inline-block;
transition: transform 0.3s;
}
.floating-effect:hover {
transform: translateY(-10px);
}
.nav-item {
opacity: 0;
animation: fadeInUp 0.5s forwards;
}
.nav-item:nth-child(1) {
animation-delay: 0.1s;
}
.nav-item:nth-child(2) {
animation-delay: 0.2s;
}
.nav-item:nth-child(3) {
animation-delay: 0.3s;
}
.nav-item:nth-child(4) {
animation-delay: 0.4s;
}
.nav-item:nth-child(5) {
animation-delay: 0.5s;
}
.nav-item:nth-child(6) {
animation-delay: 0.6s;
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.door {
position: relative;
overflow: hidden;
cursor: pointer;
}
.door img {
transition: transform 0.5s ease-in-out;
}
.door:hover img {
transform: scale(1.1);
}
.door::before, .door::after {
content: '';
position: absolute;
top: 0;
width: 50%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
transition: transform 0.5s ease-in-out;
z-index: 1;
}
.door::before {
left: 0;
transform-origin: left;
}
.door::after {
right: 0;
transform-origin: right;
}
.door:hover::before {
transform: rotateY(-90deg);
}
.door:hover::after {
transform: rotateY(90deg);
}
</style>
</head>
<body>
<!-- Header Section -->
<header class="sticky-header flex justify-between items-center h-16 px-4">
<div class="flex items-center">
<a class="text-[var(--text-color)] mr-4 flex items-center" href="home.html">
<span class="logo-text ml-2">TruthWeb</span>
</a>
</div>
</header>
<!-- Navigation Section -->
<nav class="bg-[var(--primary-color)] py-4">
<ul class="flex flex-wrap justify-center space-x-4">
<li class="nav-item">
<a class="text-[var(--text-color)] hover:text-[var(--nav-hover-color)] floating-effect" href="about.html" id="aboutModalButton">
<i class="fas fa-info-circle mr-2"></i> About
</a>
</li>
</ul>
</nav>
<!-- Main Content -->
<main class="flex-grow flex items-center justify-center p-4">
<div class="container max-w-md bg-gray-900 p-6 rounded-lg shadow-lg fade-in gold-highlight relative white-border">
<h1 class="text-2xl font-bold mb-4 glow-text">Truth Web Quest Door Lock</h1>
<p class="mb-4">Watch the video below to find the secret code:</p>
<!-- Embedded Vimeo Video -->
<iframe
src="https://player.vimeo.com/video/1043104144?badge=0&autopause=0&player_id=0&app_id=58479"
frameborder="0"
allow="autoplay; fullscreen; picture-in-picture"
allowfullscreen
class="w-full h-64 rounded-lg mb-4 door">
</iframe>
<p class="mb-4">Once you have the code, enter it below:</p>
<input type="text" id="codeInput" placeholder="Enter code" class="w-full p-2 mb-4 rounded-lg bg-gray-800 border border-gray-700 text-gray-200 input-focus">
<button onclick="validateCode()" class="w-full bg-black text-white py-2 rounded-lg text-lg gold-border btn">Unlock</button>
<div class="message mt-4 text-lg" id="message"></div>
</div>
</main>
<!-- Modal -->
<div id="aboutModal" class="modal">
<div class="modal-content">
<span class="close" id="closeModal">×</span>
<h2 class="text-2xl font-bold mb-4">About Truth Web Quest</h2>
<p class="mb-4">Truth Web Quest is an interactive platform designed to challenge your mind and uncover hidden truths. Join us on this journey to explore the unknown and unlock the secrets of the web.</p>
<p class="mb-4">Our mission is to provide a unique and engaging experience that combines puzzles, videos, and interactive content to stimulate your curiosity and intellect.</p>
<p class="mb-4">Are you ready to embark on this quest? Let's dive in and discover the truth together!</p>
</div>
</div>
<!-- Sound Effects -->
<audio id="unlockSound" src="https://www.soundjay.com/button/sounds/button-3.mp3"></audio>
<audio id="errorSound" src="https://www.soundjay.com/button/sounds/button-10.mp3"></audio>
<script>
// Modal functionality
const aboutModalButton = document.getElementById('aboutModalButton');
const aboutModal = document.getElementById('aboutModal');
const closeModal = document.getElementById('closeModal');
aboutModalButton.onclick = function(event) {
event.preventDefault();
aboutModal.style.display = "block";
}
closeModal.onclick = function() {
aboutModal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == aboutModal) {
aboutModal.style.display = "none";
}
}
// Code validation functionality
function validateCode() {
const correctCode = "43"; // Correct answer from the video
const userCode = document.getElementById("codeInput").value;
const message = document.getElementById("message");
const unlockSound = document.getElementById("unlockSound");
const errorSound = document.getElementById("errorSound");
if (userCode === correctCode) {
message.style.color = "green";
message.textContent = "Welcome, Truthseeker! The door is now unlocked. Redirecting in 3 seconds...";
unlockSound.play();
let countdown = 3;
const countdownInterval = setInterval(() => {
countdown--;
message.textContent = `Welcome, Truthseeker! The door is now unlocked. Redirecting in ${countdown} seconds...`;
if (countdown === 0) {
clearInterval(countdownInterval);
window.location.href = "welcome.html"; // Redirect to the next page
}
}, 1000);
} else {
message.style.color = "red";
message.innerHTML = `Incorrect code. Please try again. <br> Do you want to exit? <br> <button onclick="exitPage()" class="w-full bg-red-500 text-white py-2 rounded-lg text-lg mt-2">Exit</button>`;
errorSound.play();
}
}
function exitPage() {
window.location.href = "index.html"; // Redirect to the home page
}
</script>
</body>
</html>