-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (100 loc) · 3.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Validathor</title>
<style>
body {
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #262626;
font-family: Arial, sans-serif;
}
.logo {
max-width: 80%;
height: auto;
margin-bottom: 2rem;
}
.play-button {
padding: 1rem 3rem;
font-size: 1.5rem;
background-color: #333;
color: #d0f0f0;
border: 2px solid #d0f0f0;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Courier New', monospace;
text-transform: uppercase;
letter-spacing: 2px;
}
.play-button:hover {
background-color: #d0f0f0;
color: #262626;
}
.intro-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.9);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;
cursor: pointer;
}
.intro-text {
color: #d0f0f0;
font-family: 'Courier New', monospace;
text-align: center;
max-width: 80%;
line-height: 1.6;
font-size: 1.2rem;
animation: fadeIn 2s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<audio id="backgroundSound" src="riff.mp3"></audio>
<img src="Validathor.png" alt="The Validathor" class="logo">
<button class="play-button" onclick="showIntro()">Play</button>
<div id="introOverlay" class="intro-overlay" onclick="startGame()">
<div class="intro-text">
A bug has forked the chain 77 times.<br><br>
We need healthy nodes to bring the ledger back on track.<br><br>
Who will make the one true chain?<br><br>
Who will be....<br><br>
<span style="font-size: 1.5em; letter-spacing: 3px;">The Validathor!!!</span><br><br>
<span style="font-size: 0.8em; opacity: 0.7">(Click anywhere to continue)</span>
</div>
</div>
<script>
function showIntro() {
const overlay = document.getElementById('introOverlay');
overlay.style.display = 'flex';
playAudio();
}
function startGame() {
window.location.href = 'pascal-triangle.html';
}
function playAudio() {
const sound = document.getElementById('backgroundSound');
sound.play().then(() => {
console.log('Audio is playing');
}).catch(error => {
console.error('Audio play failed:', error);
});
}
</script>
</body>
</html>