-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
215 lines (189 loc) · 8.78 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Space Tour</title>
<!-- stylesheets -->
<link rel="stylesheet" href="./resources/styles/home-style.css">
<!-- fonts -->
<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=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
</head>
<body>
<header>
<!-- <nav><span class="logo">SPACE TOUR</span></nav> -->
<section class="parallax">
<img src="./resources/img/home/astro.png" alt="" id="astro">
<span id="thespace">THE SPACE</span>
<img src="./resources/img/home/moon.png" alt="" id="moon">
<img src="./resources/img/earth.png" alt="" id="earth">
</section>
</div>
</header>
<main>
<div class="greeting page">
<img src="./resources/img/home/astro.png" id="ani_on_view" alt="">
<div class="page_content">
<div class="greet_content">
<p><span class="welcome">WELCOME </span>
<span class="user_name" id="username"></span>
</p>
<div class="greeting_desc">
Embark on an interstellar journey filled with captivating space facts and cosmic wonders! Discover the universe's mysteries, learn about distant galaxies, and explore our solar system.
Get ready for an out-of-this-world adventure and test your knowledge with our fun space game at the end!
Let’s blast off into the cosmos! 🚀✨
</div>
</div>
</div>
<img src="./resources/img/home/astro.png" alt="">
</div>
<!-- fact 1 -->
<div class="page fact_pg">
<div class="page_content">
<div class="fact_count">FACT #1 </div>
<div class="fact">
<div class="fact_text vertical_center">
<div>
The hottest planet in our solar system is Venus.🔥
</div>
</div>
<div class="fact_img "><img class="rotate_planets" src="./resources/img/facts/venus.png" alt="">
</div>
</div>
</div>
</div>
<!-- fact 2 -->
<div class="page fact_pg">
<div class="page_content">
<div class="fact_count">FACT #2</div>
<div class="fact">
<div class="fact_text vertical_center">
<div>
A light-year is the distance covered by light in a single year. 🔦
</div>
</div>
<div class="fact_img "><img class="border_circle" src="./resources/img/facts/light.jpg" alt="">
</div>
</div>
</div>
</div>
<!-- fact 3 -->
<div class="page fact_pg">
<div class="page_content">
<div class="fact_count">FACT #3</div>
<div class="fact">
<div class="fact_text vertical_center">
<div>
Footprints left on the Moon won’t disappear as there is no wind. 💨
</div>
</div>
<div class="fact_img "><img class="border_circle" src="./resources/img/facts/footprint.jpg" alt="">
</div>
</div>
</div>
</div>
<!-- fact 4 -->
<div class="page fact_pg">
<div class="page_content">
<div class="fact_count">FACT #4</div>
<div class="fact">
<div class="fact_text vertical_center">
<div>
There are 95 known moons orbiting Jupiter. 🌙
</div>
</div>
<div class="fact_img "><img src="./resources/img/facts/jupiter.png" alt=""></div>
</div>
</div>
</div>
<!-- fact 5 -->
<div class="page fact_pg">
<img src="./resources/img/satellite.png" id="satellite">
<div class="page_content">
<div class="fact_count">FACT #5</div>
<div class="fact">
<div class="fact_text vertical_center">
<div>
Earth is the only planet not named after a God.
</div>
</div>
<div class="fact_img "><img class="rotate_planets" src="./resources/img/earth.png" alt=""></div>
</div>
</div>
</div>
<div class="riddle_welcome">
<div class="intro_riddle">
<img src="./resources/img/facts/venus.png" alt="">
<p>are you ready for a</p>
<div id="word_riddle">riddle game?</div>
<div class="intro_riddle_astro">
<img src="./resources/img/home/astro.png" alt="">
</div>
</div>
</div>
<div class="game-container ">
<img src="./resources/img/earth.png" alt="">
<div class="riddle_container">
<h1 class="riddle_header">Riddle Game</h1>
<div class="riddle" id="riddle"></div>
<div class="action_areas">
<div><input type="text" id="answer" placeholder="Click Here To Answer"></div>
<button class="action_btns" id="submit">check✏️</button>
<button class="action_btns" id="skip">Skip⏭️</button>
<button class="action_btns" id="next" style="display: none;">Next</button>
</div>
<div class="feedback" id="feedback"></div>
<div><div class="score" id="score">Score: 0</div></div>
<button id="retry" style="display: none;">Retry 🔄️</button>
</div>
</div>
<script src="./resources/js/riddle.js"></script>
</main>
<footer>
<div class="footer_content">
<div class="footer_text">THE SPACE TOUR ✨</div>
<div class="made_by">crafted with precision by <a class="underline" href="https://github.com/miles-spidee" id="github" target="_blank">𝙼𝚒𝚕𝚎𝚜 <img src="./resources/img/mile.jpg" style="border-radius: 50%; width: 3rem;"></a></div>
</div>
</div>
</footer>
<div class="easter_egg">
<div class="blank"></div>
<div class="narrating">
<div class="easter_mssg">
<h1><span class="narrator">you:</span> What is this all about ?</h1>
<h1><span class="narrator">someone:</span> It's about space ✨</h1>
<h1><span class="narrator">you:</span> Okay, but where am I now?</h1>
<h1><span class="narrator">someone:</span> You're here to explore what's in it.</h1>
<h1><span class="narrator">you:</span> So how do I get back?</h1>
<h1><span class="narrator">someone:</span> Just click the below link and find the easter egg img Ü</h1>
</div>
</div>
<div class="secret">
<marquee behavior="" direction="">
<h1>YOU FOUND A EASTER EGG ARENA !!! 🥚</h1>
</marquee>
<div class="easter-egg" id="easter-egg">
You found the secret link! <img src="https://cdn.discordapp.com/emojis/792820459850301451.gif?size=48" alt="">
<br>
<a href="easter-egg.html" class="link" target="_blank">Click here to get to the ARENA!</a>
</div>
</div>
</div>
<video src="./resources/img/star_twinkling.mp4" autoplay muted loop id="bg-vid">vid</video>
<script src="./resources/js/parallax.js"></script>
<script src="./resources/js/app.js"></script>
<!-- <script>
const username = localStorage.getItem('userName').toUpperCase();
document.getElementById('username').textContent = username ? username : 'EXPLORER';
</script> -->
<script>
const username = localStorage.getItem('userName')?.toUpperCase() || 'EXPLORER';
const truncatedUsername = username.length > 10 ? username.slice(0, 10) + "..." : username;
document.getElementById('username').textContent = truncatedUsername;
</script>
</body>
</html>