Skip to content

Commit a066193

Browse files
authored
Update index.html
Signed-off-by: Ziane Maamar <[email protected]>
1 parent 4d88913 commit a066193

File tree

1 file changed

+41
-7
lines changed

1 file changed

+41
-7
lines changed

index.html

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
body {
1212
background-color: #1a202c;
1313
color: #cbd5e0;
14+
transition: background-color 0.3s ease-in-out;
1415
}
1516

1617
/* Custom Countdown style */
@@ -19,20 +20,37 @@
1920
}
2021

2122
.countdown span {
22-
color: #a3e635; /* Guardian green */
23+
color: #a3e635;
2324
transition: color 0.3s ease;
2425
}
2526

2627
.countdown span.yellow {
27-
color: #f6e05e; /* Guardian yellow */
28+
color: #f6e05e;
29+
}
30+
31+
/* Flicker Effect */
32+
.flicker {
33+
animation: flicker 1.5s infinite alternate;
34+
}
35+
36+
@keyframes flicker {
37+
0%, 100% {
38+
filter: brightness(1);
39+
}
40+
50% {
41+
filter: brightness(1.1);
42+
}
43+
75% {
44+
filter: brightness(0.95);
45+
}
2846
}
2947
</style>
3048
</head>
3149

32-
<body class="flex items-center justify-center h-screen">
33-
<div class="text-center">
34-
<h1 class="text-4xl mb-4">Under Construction</h1>
35-
<p class="text-lg mb-8">We are working on something awesome!</p>
50+
<body class="flex items-center justify-center h-screen flicker">
51+
<div class="text-center px-4 sm:px-6 lg:px-8">
52+
<h1 class="text-4xl sm:text-5xl lg:text-6xl mb-4">Under Construction</h1>
53+
<p class="text-lg sm:text-xl lg:text-2xl mb-8">We are working on something awesome!</p>
3654
<div id="countdown" class="countdown mb-4">
3755
<span id="days" class="text-guardian">00</span> :
3856
<span id="hours" class="text-guardian">00</span> :
@@ -45,7 +63,7 @@ <h1 class="text-4xl mb-4">Under Construction</h1>
4563
// Set the date we're counting down to (replace with your end date)
4664
var countDownDate = new Date("Oct 31, 2024 15:37:25").getTime();
4765

48-
var countdown = setInterval(function() {
66+
var countdown = setInterval(function () {
4967
// Get today's date and time
5068
var now = new Date().getTime();
5169

@@ -64,12 +82,28 @@ <h1 class="text-4xl mb-4">Under Construction</h1>
6482
document.getElementById("minutes").textContent = minutes.toString().padStart(2, '0');
6583
document.getElementById("seconds").textContent = seconds.toString().padStart(2, '0');
6684

85+
// Change colors as the time gets closer
86+
if (distance < 86400000) { // Less than 24 hours
87+
document.querySelectorAll('.countdown span').forEach(span => span.classList.add('yellow'));
88+
}
89+
6790
// If the count down is finished, write some text
6891
if (distance < 0) {
6992
clearInterval(countdown);
7093
document.getElementById("countdown").innerHTML = "<span class='text-xl'>Under construction!</span>";
7194
}
7295
}, 1000);
96+
97+
// Flickering background effect with subtle brightness variation
98+
function flickerEffect() {
99+
const body = document.body;
100+
setInterval(() => {
101+
let flicker = Math.random() * 0.2 + 0.9; // Random brightness between 0.9 and 1.1
102+
body.style.filter = `brightness(${flicker})`;
103+
}, 2000);
104+
}
105+
106+
flickerEffect();
73107
</script>
74108
</body>
75109

0 commit comments

Comments
 (0)