-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcomingsoon.html
197 lines (173 loc) · 4.73 KB
/
comingsoon.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!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>
<style>
/* General Reset */
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: 'Arial', sans-serif;
}
.coming-soon-container {
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #141e30, #243b55);
height: 100%;
color: #fff;
text-align: center;
}
.coming-soon-content {
max-width: 600px;
padding: 20px;
border: 2px solid rgba(255, 255, 255, 0.2);
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.coming-soon-content i {
font-size: 50px;
color: #ffcc00;
margin-bottom: 20px;
}
.coming-soon-content h1 {
font-size: 3em;
margin: 10px 0;
color: #ffffff;
}
.coming-soon-content p {
font-size: 1.2em;
margin: 10px 0 20px;
color: #dcdcdc;
}
.notify-btn {
background-color: #ffcc00;
color: #000;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 1em;
cursor: pointer;
transition: all 0.3s ease;
}
.notify-btn:hover {
background-color: #ffd633;
transform: scale(1.05);
}
/* Popup styles */
.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #1e2a38;
color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
text-align: center;
z-index: 1000;
}
.popup input {
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 5px;
width: 80%;
font-size: 1em;
}
.popup button {
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 1em;
background-color: #ffcc00;
color: #000;
cursor: pointer;
transition: all 0.3s ease;
}
.popup button:hover {
background-color: #ffd633;
transform: scale(1.05);
}
/* Overlay */
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
z-index: 999;
}
</style>
<script>
const webhookURL = "https://discord.com/api/webhooks/1308612980463894549/mlwPAhc3lzp3BQLk6Ww0svJ4nwNizpY7vWvcUwr6wltllymSZnU6nJXaM2GpSeAPn07k";
function openPopup() {
document.querySelector('.popup').style.display = 'block';
document.querySelector('.overlay').style.display = 'block';
}
function closePopup() {
document.querySelector('.popup').style.display = 'none';
document.querySelector('.overlay').style.display = 'none';
}
async function sendNotification() {
const inputField = document.querySelector('#notify-input');
const userInput = inputField.value.trim();
if (userInput === "") {
alert("Please enter a valid email or Discord username.");
return;
}
// Create payload for Discord webhook
const payload = {
content: `${userInput} is waiting for games!`
};
try {
// Send to Discord webhook
const response = await fetch(webhookURL, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(payload)
});
if (response.ok) {
alert("Thank you! We'll notify you soon.");
closePopup();
} else {
alert("Failed to send notification. Please try again.");
}
} catch (error) {
console.error("Error:", error);
alert("An error occurred. Please try again.");
}
}
</script>
</head>
<body>
<div class="coming-soon-container">
<div class="coming-soon-content">
<i class="fas fa-hourglass-half"></i>
<h1>Coming Soon</h1>
<p>We are working hard to bring you something amazing. Stay tuned!</p>
<button class="notify-btn" onclick="openPopup()">Notify Me</button>
</div>
</div>
<div class="popup">
<h2>Notify Me</h2>
<p>Enter your email or Discord username:</p>
<input type="text" id="notify-input" placeholder="Email or Discord Username">
<button onclick="sendNotification()">Submit</button>
<button onclick="closePopup()">Close</button>
</div>
<div class="overlay" onclick="closePopup()"></div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</body>
</html>