11
11
body {
12
12
background-color : # 1a202c ;
13
13
color : # cbd5e0 ;
14
+ transition : background-color 0.3s ease-in-out;
14
15
}
15
16
16
17
/* Custom Countdown style */
19
20
}
20
21
21
22
.countdown span {
22
- color : # a3e635 ; /* Guardian green */
23
+ color : # a3e635 ;
23
24
transition : color 0.3s ease;
24
25
}
25
26
26
27
.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
+ }
28
46
}
29
47
</ style >
30
48
</ head >
31
49
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 >
36
54
< div id ="countdown " class ="countdown mb-4 ">
37
55
< span id ="days " class ="text-guardian "> 00</ span > :
38
56
< span id ="hours " class ="text-guardian "> 00</ span > :
@@ -45,7 +63,7 @@ <h1 class="text-4xl mb-4">Under Construction</h1>
45
63
// Set the date we're counting down to (replace with your end date)
46
64
var countDownDate = new Date ( "Oct 31, 2024 15:37:25" ) . getTime ( ) ;
47
65
48
- var countdown = setInterval ( function ( ) {
66
+ var countdown = setInterval ( function ( ) {
49
67
// Get today's date and time
50
68
var now = new Date ( ) . getTime ( ) ;
51
69
@@ -64,12 +82,28 @@ <h1 class="text-4xl mb-4">Under Construction</h1>
64
82
document . getElementById ( "minutes" ) . textContent = minutes . toString ( ) . padStart ( 2 , '0' ) ;
65
83
document . getElementById ( "seconds" ) . textContent = seconds . toString ( ) . padStart ( 2 , '0' ) ;
66
84
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
+
67
90
// If the count down is finished, write some text
68
91
if ( distance < 0 ) {
69
92
clearInterval ( countdown ) ;
70
93
document . getElementById ( "countdown" ) . innerHTML = "<span class='text-xl'>Under construction!</span>" ;
71
94
}
72
95
} , 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 ( ) ;
73
107
</ script >
74
108
</ body >
75
109
0 commit comments