-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (91 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coming Soon</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<style>
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateY(100px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.fade-in {
animation: fadeIn 2s ease-in-out;
}
.slide-in {
animation: slideIn 1s ease-out;
}
.countdown {
display: flex;
justify-content: center;
gap: 10px;
}
.countdown div {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
border-radius: 10px;
padding: 20px;
text-align: center;
}
.countdown div span {
display: block;
font-size: 2rem;
color: white;
}
.countdown div small {
display: block;
font-size: 1rem;
color: white;
margin-top: 5px;
}
</style>
</head>
<body class="bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500 h-screen flex items-center justify-center">
<div class="text-center p-24 bg-white bg-opacity-25 rounded-xl shadow-lg backdrop-blur-md fade-in">
<h1 class="text-5xl font-bold text-white slide-in">Coming Soon</h1>
<p class="mt-4 mb-8 text-lg text-white slide-in" style="animation-delay: 0.5s; animation-fill-mode: both;">This is all the time you have left in year 2024, build something you love.</p>
<div id="countdown" class="countdown mt-6 slide-in" style="animation-delay: 1.5s; animation-fill-mode: both;"></div>
</div>
<script>
const countdownElement = document.getElementById('countdown');
const targetDate = new Date('January 1, 2025 00:00:00').getTime();
function updateCountdown() {
const now = new Date().getTime();
const distance = targetDate - now;
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
countdownElement.innerHTML = `
<div>
<span>${days}</span>
<small>Days</small>
</div>
<div>
<span>${hours}</span>
<small>Hours</small>
</div>
<div>
<span>${minutes}</span>
<small>Minutes</small>
</div>
<div>
<span>${seconds}</span>
<small>Seconds</small>
</div>
`;
if (distance < 0) {
clearInterval(countdownInterval);
countdownElement.innerHTML = "Happy New Year! 🎉";
}
}
const countdownInterval = setInterval(updateCountdown, 1000);
updateCountdown();
</script>
</body>
</html>