-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
228 lines (203 loc) · 6.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CoderZone Games</title>
<link rel="icon" href="https://i.ibb.co/K7YhTLD/IMG-20240912-172137-465.jpg" type="image/x-icon">
<style>
/* Body Styling */
body {
font-family: 'Arial', sans-serif;
background-color: #121212;
color: white;
margin: 0;
padding: 0;
text-align: center;
}
/* Loading Screen Styling */
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #121212;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.spinner {
width: 60px;
height: 60px;
border: 8px solid rgba(255, 255, 255, 0.2);
border-top-color: #ff4500;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Header Styling */
header {
background-color: rgba(20, 20, 20, 0.95); /* Darker background */
padding: 20px 0;
position: sticky;
top: 0;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
header a {
display: flex;
align-items: center;
text-decoration: none;
color: white;
}
header img {
height: 40px; /* Adjust size as needed */
margin-right: 10px;
}
h1 {
margin: 0;
font-size: 2.5rem;
text-shadow: 0 0 10px #ff0000;
letter-spacing: 2px;
}
/* Game List and Items */
.game-list {
display: flex;
justify-content: center;
gap: 30px;
margin: 50px;
flex-wrap: wrap;
position: relative;
z-index: 1;
}
.game-item {
background-color: #1c1c1c;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
padding: 30px;
width: 250px;
transition: transform 0.4s ease, box-shadow 0.4s ease;
position: relative;
}
.game-item:hover {
transform: translateY(-10px);
box-shadow: 0 8px 30px rgba(255, 0, 0, 0.7);
}
.game-item::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 15px;
background: linear-gradient(45deg, rgba(255, 0, 0, 0.7), rgba(255, 100, 0, 0.7));
opacity: 0;
transition: opacity 0.4s ease;
z-index: -1;
}
.game-item:hover::after {
opacity: 1;
}
.game-item h2 {
margin-bottom: 20px;
font-size: 1.5rem;
}
/* Button Styling */
button {
background: linear-gradient(45deg, #ff0000, #ff4500, #ff5733);
border: none;
color: white;
padding: 15px 30px;
font-size: 18px;
border-radius: 50px;
cursor: pointer;
box-shadow: 0 0 15px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.3);
transition: box-shadow 0.3s ease, transform 0.3s ease;
}
button:hover {
box-shadow: 0 0 25px rgba(255, 0, 0, 1), 0 0 35px rgba(255, 0, 0, 0.7), 0 0 45px rgba(255, 0, 0, 0.5);
transform: scale(1.1);
}
button:active {
transform: scale(0.95);
}
/* Footer Styling */
footer {
margin-top: 50px;
padding: 20px;
background-color: rgba(20, 20, 20, 0.95); /* Darker background */
color: white;
font-size: 14px;
z-index: 1000;
}
footer a {
color: #ff5733;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<!-- Loading Screen -->
<div id="loading-screen">
<div class="spinner"></div>
</div>
<!-- Header -->
<header>
<a href="https://t.me/infoGRX" target="_blank">
<img src="https://i.ibb.co/K7YhTLD/IMG-20240912-172137-465.jpg" alt="Logo"> <!-- Replace with your image file -->
<h1>CoderZone</h1>
</a>
</header>
<!-- Main Content -->
<main>
<div class="game-list">
<div class="game-item">
<h2>Fish Game</h2>
<button onclick="goToGame('https://zoro2045.github.io/fish_game/')">Play Now</button>
</div>
<div class="game-item">
<h2>2048 Game</h2>
<button onclick="goToGame('https://zoro2045.github.io/2048_Game/')">Play Now</button>
</div>
<div class="game-item">
<h2>Numbers Game</h2>
<button onclick="goToGame('https://zoro2045.github.io/Numbers_Game/')">Play Now</button>
</div>
<div class="game-item">
<h2>Tic-Tac-Toe </h2>
<button onclick="goToGame('https://zoro2045.github.io/Tic-Tac-Toe/')">Play Now</button>
</div>
</div>
</main>
<!-- Footer -->
<footer>
Developed by ፚ Ꭷ Ꮢ Ꭷ ❥ - <a href="https://t.me/ZORO2045" target="_blank">Contact on Telegram</a>
</footer>
<script>
// Loading Screen Removal
window.addEventListener('load', function() {
const loadingScreen = document.getElementById('loading-screen');
loadingScreen.style.opacity = '0';
setTimeout(() => {
loadingScreen.style.display = 'none';
}, 500); // Delay to allow fade-out animation
});
// Function to Navigate to Game
function goToGame(url) {
window.location.href = url;
}
</script>
</body>
</html>