Skip to content

Commit 001ae63

Browse files
committed
under maintain
1 parent 73890f3 commit 001ae63

File tree

3 files changed

+106
-0
lines changed

3 files changed

+106
-0
lines changed

index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
</div>
2626
</div>
2727
</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+
2836
<div id="mcircle"></div>
2937
<div id="main">
3038
<div id="rem">

script.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ window.addEventListener("load", () => {
55
e();
66
}, 2522);
77
});
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+
819
function e() {
920
gsap.from("#header .a", {
1021
x: 80,

style.css

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,88 @@ body {
2626
body {
2727
overflow-x: hidden;
2828
}
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+
29111
.resume2 , .resume1{
30112
overflow: auto;
31113
box-shadow: 0 0 5px #03e9f4, 0 0 10px #03e9f4;
@@ -1025,6 +1107,11 @@ a:visited {
10251107
/* this code is All Rights Reserved form aditya.tech */
10261108

10271109
@media screen and (max-width: 500px) {
1110+
#maintenance-popup {
1111+
1112+
font-size: 18px;
1113+
1114+
}
10281115
#rem{
10291116
width:100vw;
10301117
top: 88%;

0 commit comments

Comments
 (0)