-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmullvad.html
205 lines (187 loc) · 6.85 KB
/
mullvad.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
198
199
200
201
202
203
204
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TempSMS - Squidward Project</title>
<link href="https://fonts.googleapis.com/css2?family=Bubbler+One&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #add8e6; /* Light blue background */
font-family: 'Bubbler One', sans-serif; /* Bubbly font */
color: #333; /* Text color */
}
.nav {
position: absolute;
top: 20px;
left: 20px;
}
.nav button {
margin-right: 10px;
padding: 10px 15px;
background-color: #333;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.nav button:hover {
background-color: #555; /* Darker on hover */
}
h1 {
font-size: 2.5em; /* Title size */
}
h2 {
font-size: 1.5em; /* Subtitle size */
}
form {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
input[type="text"], input[type="email"], input[type="password"], textarea {
width: 300px;
padding: 10px;
margin: 10px 0;
border: 2px solid #333; /* Border color */
border-radius: 5px;
font-size: 1em;
}
button {
padding: 10px 20px;
background-color: #333;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
}
button:hover {
background-color: #555; /* Darker on hover */
}
.divider {
width: 100%;
height: 2px;
background-color: #333; /* Divider color */
margin-top: 20px;
}
.cow-image {
margin-bottom: 20px; /* Spacing below the image */
}
</style>
</head>
<body>
<div class="nav">
<button onclick="window.location.href='http://squidwardproject.com/donate.html'">Donate</button>
<button onclick="window.location.href='http://squidwardproject.com/sign-up.html'">Sign Up</button>
<button onclick="window.location.href='http://squidwardproject.com/sign-in.html'">Sign In</button>
</div>
<img class="cow-image" src="https://www.pinclipart.com/picdir/big/141-1413251_flying-cow-illustration-clipart.png" alt="Flying Cow" width="150"> <!-- Cow image added here -->
<h1>TempSMS - Squidward Project</h1>
<h2>Create an Email</h2>
<form id="createEmailForm">
<input type="text" id="newEmail" placeholder="[email protected]" required>
<button type="submit">Create Email</button>
</form>
<div class="divider"></div>
<h2>Create an Account</h2>
<form id="createAccountForm">
<input type="text" id="username" placeholder="Username" required>
<input type="password" id="password" placeholder="Password" required>
<button type="submit">Create Account</button>
</form>
<div class="divider"></div>
<h2>Send an Email</h2>
<form id="sendEmailForm">
<input type="email" id="recipient" placeholder="Recipient Email" required>
<textarea id="message" rows="4" placeholder="Enter your message" required></textarea>
<button type="submit">Send Email</button>
</form>
<script>
// Handle account creation
document.getElementById('createAccountForm').addEventListener('submit', function(event) {
event.preventDefault();
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
fetch('http://localhost:3000/create-account', { // Update to your server URL
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
username: username,
password: password,
}),
})
.then(response => response.text())
.then(data => {
alert(data);
})
.catch((error) => {
console.error('Error:', error);
alert('Error creating account');
});
});
// Handle email creation
document.getElementById('createEmailForm').addEventListener('submit', function(event) {
event.preventDefault();
const emailName = document.getElementById('newEmail').value;
const fullEmail = emailName + '@squidwardproject.com';
// Example subject and message
const subject = 'Your new email account';
const message = `Your email account has been created: ${fullEmail}`;
fetch('http://localhost:3000/send-email', { // Update to your server URL
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
recipient: fullEmail,
subject: subject,
message: message,
}),
})
.then(response => response.text())
.then(data => {
alert('Email sent: ' + data);
})
.catch((error) => {
console.error('Error:', error);
alert('Error sending email');
});
});
// Handle sending email
document.getElementById('sendEmailForm').addEventListener('submit', function(event) {
event.preventDefault();
const recipient = document.getElementById('recipient').value;
const message = document.getElementById('message').value;
fetch('http://localhost:3000/send-email', { // Update to your server URL
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
recipient: recipient,
subject: 'Message from TempSMS',
message: message,
}),
})
.then(response => response.text())
.then(data => {
alert('Email sent: ' + data);
})
.catch((error) => {
console.error('Error:', error);
alert('Error sending email');
});
});
</script>
</body>
</html>