-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
281 lines (247 loc) · 7.69 KB
/
index.html
File metadata and controls
281 lines (247 loc) · 7.69 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Countdown - New Year</title>
<style>
/* General reset */
body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
background: linear-gradient(to bottom, #002f4b, #dc4225);
color: #fff;
}
/* Countdown Section */
.coming-soon {
text-align: center;
padding: 50px 20px;
position: relative;
overflow: hidden;
}
.coming-soon h2 {
font-size: 3rem;
margin-bottom: 20px;
font-weight: bold;
text-transform: uppercase;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
color: #ffd700;
}
.countdown {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 30px;
flex-wrap: wrap;
}
/* Individual Containers */
.countdown div {
background: rgba(255, 255, 255, 0.2);
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
width: 100px;
text-align: center;
}
.countdown h3 {
margin: 10px 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
/* Background Image */
.waiting {
width: 100%;
max-height: 400px;
object-fit: cover;
border-radius: 10px;
margin-top: 20px;
}
/* Footer */
p {
text-align: center;
margin: 20px 0;
font-size: 0.9rem;
}
/* Decorative Elements */
body::before,
body::after {
content: '';
position: absolute;
top: -50px;
width: 100%;
height: 100px;
background-image: url('https://freepngimg.com/thumb/christmas_lights/6-2-christmas-lights-png-hd.png');
background-repeat: repeat-x;
background-size: contain;
animation: flicker 2s infinite;
}
body::before {
top: 0;
left: 0;
z-index: 2;
}
/* Snowfall effect */
@keyframes snow {
0% {
transform: translateY(-50px);
}
100% {
transform: translateY(100vh);
}
}
.snowflake {
position: absolute;
top: -50px;
font-size: 1.2rem;
color: #fff;
animation: snow 10s linear infinite;
opacity: 0.8;
}
/* Snowflake random positioning */
.snowflake:nth-child(1) {
left: 10%;
animation-delay: 0s;
}
.snowflake:nth-child(2) {
left: 20%;
animation-delay: 1s;
}
.snowflake:nth-child(3) {
left: 40%;
animation-delay: 2s;
}
.snowflake:nth-child(4) {
left: 60%;
animation-delay: 3s;
}
.snowflake:nth-child(5) {
left: 80%;
animation-delay: 4s;
}
/* Running Banner */
.banner {
position: fixed;
bottom: 0;
width: 100%;
background: #FFE4E1;
color: #002f4b;
font-size: 1rem;
font-weight: bold;
text-align: center;
white-space: nowrap;
overflow: hidden;
z-index: 10;
}
.banner-content {
display: inline-block;
padding-left: 100%;
animation: scroll-banner 10s linear infinite;
}
@keyframes scroll-banner {
from {
transform: translateX(0%);
}
to {
transform: translateX(-100%);
}
}
/* Responsive Design */
@media (max-width: 768px) {
.coming-soon h2 {
font-size: 2rem;
}
.countdown div {
width: 80px;
padding: 15px;
}
.countdown h3 {
font-size: 0.9rem;
}
.waiting {
max-height: 300px;
}
p {
font-size: 0.8rem;
}
}
@media (max-width: 480px) {
.countdown div {
width: 70px;
padding: 10px;
}
.coming-soon h2 {
font-size: 1.8rem;
}
.countdown h3 {
font-size: 0.8rem;
}
}
</style>
</head>
<body>
<div class="banner">
<div class="banner-content">
🎉 Welcome to the New Year Countdown! 🕒 Stay tuned for the celebrations! Tuchekiane Next year mazee🎊
</div>
</div>
<section class="coming-soon">
<div>
<h2>New Year Countdown</h2>
<div class="countdown">
<div class="container-day">
<h3 class="day">0</h3>
<h3>Days</h3>
</div>
<div class="container-hour">
<h3 class="hour">0</h3>
<h3>Hours</h3>
</div>
<div class="container-minutes">
<h3 class="minute">0</h3>
<h3>Minutes</h3>
</div>
<div class="container-seconds">
<h3 class="second">0</h3>
<h3>Seconds</h3>
</div>
</div>
</div>
<img class="waiting" src="https://img.freepik.com/free-photo/anime-characters-town-christmas-season_23-2150970243.jpg" alt="background image">
</section>
<!-- Running Banner -->
<!-- Snowflakes -->
<div class="snowflake">❄</div>
<div class="snowflake">❅</div>
<div class="snowflake">❄</div>
<div class="snowflake">❅</div>
<div class="snowflake">❄</div>
<div class="snowflake">❄</div>
<div class="snowflake">❄</div>
<div class="snowflake">❄</div>
<div class="snowflake">❄</div>
<script>
// Countdown logic
const countdown = () => {
const countDate = new Date("January 01, 2026 00:00:00").getTime();
const now = new Date().getTime();
const gap = countDate - now;
const second = 1000;
const minute = second * 60;
const hour = minute * 60;
const day = hour * 24;
const textDay = Math.floor(gap / day);
const textHour = Math.floor((gap % day) / hour);
const textMinute = Math.floor((gap % hour) / minute);
const textSecond = Math.floor((gap % minute) / second);
document.querySelector(".day").innerText = textDay;
document.querySelector(".hour").innerText = textHour;
document.querySelector(".minute").innerText = textMinute;
document.querySelector(".second").innerText = textSecond;
};
setInterval(countdown, 1000);
</script>
<p>All Rights Reserved ©2025, Daniel Mukenya ™ </p>
</body>
</html>