File tree Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Original file line number Diff line number Diff line change 25
25
</ div >
26
26
</ div >
27
27
</ div >
28
+ < div id ="maintenance-popup " class ="popup ">
29
+ < span class ="close-btn "> < i class ="ri-close-line "> </ i > </ span >
30
+ < div class ="popup-content ">
31
+ < p > Site is under maintenance. We'll be back shortly with exciting updates!</ p >
32
+ < audio id ="popup-sound " src ="./public/tune/mixkit-airplane-seatbelt-tone-1585.mp3 "> </ audio >
33
+ </ div >
34
+ </ div >
35
+
28
36
< div id ="mcircle "> </ div >
29
37
< div id ="main ">
30
38
< div id ="rem ">
Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ window.addEventListener("load", () => {
5
5
e ( ) ;
6
6
} , 2522 ) ;
7
7
} ) ;
8
+
9
+ const popup = document . querySelector ( "#maintenance-popup" ) ;
10
+
11
+ setTimeout ( ( ) => {
12
+ popup . classList . add ( "show" ) ;
13
+ } , 9999 ) ;
14
+
15
+ document . querySelector ( ".close-btn" ) . addEventListener ( "click" , function ( ) {
16
+ popup . classList . remove ( "show" ) ;
17
+ } ) ;
18
+
8
19
function e ( ) {
9
20
gsap . from ( "#header .a" , {
10
21
x : 80 ,
Original file line number Diff line number Diff line change @@ -26,6 +26,88 @@ body {
26
26
body {
27
27
overflow-x : hidden;
28
28
}
29
+
30
+ # maintenance-popup {
31
+ position : fixed;
32
+ top : 50% ;
33
+ left : 50% ;
34
+ display : none;
35
+ transform : translate (-50% , -50% );
36
+ background : rgba (0 , 0 , 0 , 0.8 );
37
+ backdrop-filter : blur (10px );
38
+ padding : 40px 44px ;
39
+ border-radius : 10px ;
40
+ color : rgb (128 , 27 , 27 );
41
+ z-index : 1000 ;
42
+ text-align : center;
43
+ font-size : 28px ;
44
+ font-weight : 900 ;
45
+ box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.5 );
46
+ }
47
+
48
+ @keyframes tune {
49
+ 0% {
50
+ transform : translate (-50% , -50% ) scale (1 );
51
+ }
52
+ 50% {
53
+ transform : translate (-50% , -50% ) scale (1.1 );
54
+ }
55
+ 100% {
56
+ transform : translate (-50% , -50% ) scale (1 );
57
+ }
58
+ }
59
+
60
+ # maintenance-popup .show {
61
+ display : block;
62
+ animation : tune 1s infinite;
63
+ }
64
+
65
+ .close-btn {
66
+ position : absolute;
67
+ top : 10px ;
68
+ right : 10px ;
69
+ cursor : pointer;
70
+ font-size : 20px ;
71
+ background : none;
72
+ border : none;
73
+ color : white;
74
+ }
75
+
76
+ .popup-content {
77
+ text-align : center;
78
+ }
79
+
80
+
81
+
82
+
83
+ .close-btn {
84
+ width : 30px ;
85
+ height : 30px ;
86
+ border : 2px solid wheat;
87
+ border-radius : 50% ;
88
+ display : flex;
89
+ align-items : center;
90
+ justify-content : center;
91
+ cursor : pointer;
92
+ > i {
93
+ font-size : large;
94
+ font-weight : bold;
95
+ }
96
+ }
97
+
98
+
99
+ # maintenance-popup .popup-content {
100
+ position : relative;
101
+ }
102
+
103
+ # maintenance-popup .close-btn {
104
+ position : absolute;
105
+ top : 10px ;
106
+ right : 10px ;
107
+ font-size : 20px ;
108
+ cursor : pointer;
109
+ }
110
+
29
111
.resume2 , .resume1 {
30
112
overflow : auto;
31
113
box-shadow : 0 0 5px # 03e9f4, 0 0 10px # 03e9f4 ;
@@ -1025,6 +1107,11 @@ a:visited {
1025
1107
/* this code is All Rights Reserved form aditya.tech */
1026
1108
1027
1109
@media screen and (max-width : 500px ) {
1110
+ # maintenance-popup {
1111
+
1112
+ font-size : 18px ;
1113
+
1114
+ }
1028
1115
# rem {
1029
1116
width : 100vw ;
1030
1117
top : 88% ;
You can’t perform that action at this time.
0 commit comments