forked from DevUrf/Game-Hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
266 lines (253 loc) ยท 8.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Game On! ๐ฎ</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
color: #333;
overflow-y: auto;
position: relative;
min-height: 100vh;
background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
scroll-behavior: smooth;
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
text-align: center;
color: #00796b;
font-size: 3em;
margin: 20px 0;
white-space: nowrap;
overflow: hidden;
border-right: 4px solid #00796b;
animation: typing 4s steps(30, end) forwards, blink-caret 0.75s step-end infinite;
position: relative;
}
@keyframes typing {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink-caret {
from, to { border-color: transparent; }
50% { border-color: #00796b; }
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 20px;
gap: 20px;
padding: 20px;
}
.button {
background-color: #009688;
border: none;
border-radius: 12px;
padding: 20px;
width: 250px;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
font-size: 1.2em;
text-align: center;
color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
z-index: 1;
text-decoration: none; /* Remove underline */
}
.button:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.button:active {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.featured-games {
margin: 40px 0;
text-align: center;
width: 100%;
}
.game-list {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
}
.game-item {
background-color: #ffffff;
border: 1px solid #00796b;
border-radius: 12px;
padding: 15px;
width: 200px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}
.game-item:hover {
transform: translateY(-5px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.footer {
margin-top: auto;
padding: 20px;
text-align: center;
font-size: 0.9em;
color: #555;
}
/* Modal Styles */
.modal {
display: none; /* Hidden by default */
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
padding-top: 60px;
}
.modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 500px;
border-radius: 12px;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
input[type="text"], input[type="password"], input[type="email"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #00796b;
border-radius: 5px;
}
#backToTop {
position: fixed;
bottom: 20px;
right: 30px;
display: none;
background-color: #00796b;
color: white;
border: none;
border-radius: 50%;
padding: 15px;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s;
}
#backToTop:hover {
background-color: #005f51;
}
</style>
<script>
function hideCursor() {
const cursor = document.querySelector('.cursor');
if (cursor) {
cursor.style.display = 'none';
}
}
function startTypingAnimation() {
const title = document.querySelector('h1');
title.style.animation = 'typing 4s steps(30, end) forwards';
setTimeout(hideCursor, 4000);
}
window.onload = startTypingAnimation;
// Show modal for sign in/sign up
function showModal() {
document.getElementById("myModal").style.display = "block";
}
// Close the modal
function closeModal() {
document.getElementById("myModal").style.display = "none";
}
// Back to Top button functionality
window.onscroll = function() {
const backToTopButton = document.getElementById("backToTop");
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
backToTopButton.style.display = "block";
} else {
backToTopButton.style.display = "none";
}
};
function scrollToTop() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
</script>
</head>
<body>
<h1>Game On! ๐ฎโจ <span class="cursor" style="border-right: 4px solid #00796b; display: inline-block; width: 10px; height: 1em; animation: blink-caret 0.75s step-end infinite;"></span></h1>
<div class="container">
<a href="arcade.html" class="button">๐ฎ Arcade Games ๐</a>
<a href="board.html" class="button">โ๏ธ Board Games ๐</a>
<a href="card.html" class="button">๐ Card Games ๐ฅณ</a>
<a href="video.html" class="button">๐บ Video Games ๐</a>
<a href="puzzle.html" class="button">๐งฉ Puzzle Games ๐ง </a>
<a href="sports.html" class="button">โฝ Sports Games ๐ฅ</a>
<a href="racing.html" class="button">๐๏ธ Racing Games ๐</a>
<a href="simulation.html" class="button">๐ ๏ธ Simulation Games ๐ฎ</a>
<a href="adventure.html" class="button">๐บ๏ธ Adventure Games ๐๏ธ</a>
<a href="strategy.html" class="button">๐ง Strategy Games ๐</a>
<a href="horror.html" class="button">๐ป Horror Games ๐ฑ</a>
<a href="rpg.html" class="button">๐งโโ๏ธ RPG Games โ๏ธ</a>
<a href="fighting.html" class="button">๐ฅ Fighting Games ๐ช</a>
<a href="platformers.html" class="button">๐โโ๏ธ Platformers ๐</a>
<a href="mmorpg.html" class="button">๐ MMORPG Games ๐ฐ</a>
<a href="educational.html" class="button">๐ Educational Games ๐</a>
<a href="stealth.html" class="button">๐ต๏ธ Stealth Games ๐ฅท</a>
<a href="survival.html" class="button">๐๏ธ Survival Games ๐ ๏ธ</a>
<a href="rhythm.html" class="button">๐ถ Rhythm Games ๐ค</a>
<button class="button" onclick="showModal()">๐ฐ Join Newsletter โ๏ธ</button>
<button class="button" onclick="showModal()">Sign In / Sign Up ๐</button>
</div>
<div class="featured-games">
<h2>Featured Games ๐</h2>
<div class="game-list">
<div class="game-item">Game 1: Tetris ๐</div>
<div class="game-item">Game 2: Poker ๐งฉ</div>
<div class="game-item">Game 3: Racing Legends ๐</div>
<div class="game-item">Game 4: Strategy King โ๏ธ</div>
<div class="game-item">Game 5: Horror Night ๐ป</div>
</div>
</div>
<div class="footer">
<p>Join our community and stay updated with the latest games and offers! ๐</p>
</div>
<!-- The Modal for Sign In/Sign Up -->
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal()">×</span>
<h2>Sign In / Sign Up</h2>
<input type="text" placeholder="Username" required>
<input type="password" placeholder="Password" required>
<input type="email" placeholder="Email" required>
<button class="button">Submit</button>
</div>
</div>
<!-- Back to Top Button -->
<button id="backToTop" onclick="scrollToTop()">โ</button>
</body>
</html>