-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignup.html
529 lines (472 loc) · 18.6 KB
/
signup.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
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
<!DOCTYPE html>
<html lang="en">
<!-- Meta Tags -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Share/Embed Content -->
<meta name="author" content="SF18">
<meta name="msapplication-TileColor" content="#8224e3">
<meta name="theme-color" content="#8224e3">
<meta charset="UTF-8">
<meta name="viewport" content="">
<meta name="description" content="Your platform to meet the world and everyone in between.">
<meta name="keywords" content="twixxl">
<meta property="og:title" content="" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Your platform to meet the world and everyone in between." />
<meta property="og:site_name" content="twixxl.com">
<meta itemprop="name" content="">
<meta property="og:image" content="https://imgur.com/i9PGame.png"/>
<meta itemprop="description" content="">
<meta name="twitter:title" content="twixxl">
<meta name="twitter:description" content="Your platform to meet the world and everyone in between.">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
<meta charset="web-link" />
<link rel="icon" href="assets/img/New_twixxl Logo_Rounded.svg">
<link rel="shortcut icon" id="favicon" href="assets/img/New_twixxl Logo_Rounded.svg">
<link rel="icon" type="image/png" href="assets/img/New_twixxl Logo_Rounded.svg">
<link rel="icon" href="assets/img/New_twixxl Logo_Rounded.svg">
<!-- End of Meta Tags -->
<!-- Website title -->
<title>Signup - twixxl</title>
<!-- End of website title -->
<head>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Montserrat:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="./assets/vendor/aos/aos.css" rel="stylesheet">
<link href="./assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="./assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="./assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="./assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="./assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="./assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="./assets/css/style.css" rel="stylesheet">
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="fixed-top d-flex align-items-center header-transparent">
<div class="container d-flex align-items-center justify-content-between">
<div class="logo">
<h1><a href="index.html"><img src="/assets/img/New_twixxl Logo_Rounded.svg" alt="" class="img-fluid"> <span>twixxl</span></a></h1>
</div>
<nav id="navbar" class="navbar">
<ul>
<li><button class="btn-login"><span>Login</span></button></li>
<li><a class="nav-link scrollto" href="index.html">Home</a></li>
<li><a class="nav-link scrollto active">Signin</a></li>
<li class="dropdown"><a href="#"><span>More</span> <i class="bi bi-chevron-down"></i></a>
<ul>
<li><a href="#">Drop Down 1</a></li>
<li class="dropdown"><a href="#"><span>Deep Drop Down</span> <i class="bi bi-chevron-right"></i></a>
<ul>
<li><a href="#">Deep Drop Down 1</a></li>
<li><a href="#">Deep Drop Down 2</a></li>
<li><a href="#">Deep Drop Down 3</a></li>
<li><a href="#">Deep Drop Down 4</a></li>
<li><a href="#">Deep Drop Down 5</a></li>
</ul>
</li>
<li><a href="#">Drop Down 2</a></li>
<li><a href="#">Drop Down 3</a></li>
<li><a href="#">Drop Down 4</a></li>
</ul>
</li>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<main id="main">
<!-- ======= Breadcrumbs Section ======= -->
<section class="breadcrumbs">
<div class="container">
<div class="d-flex justify-content-between align-items-center">
<h2>Signup</h2>
<ol>
<li><a href="index.html">Home</a></li>
<li>Signup</li>
</ol>
</div>
</div>
</section><!-- End Breadcrumbs Section -->
<section class="inner-page">
<div class="container">
<div class="wrapper">
<div class="otherlogin">
<button><i class="bi bi-google"></i> Google</button>
<button><i class="bi bi-github"></i> Github</button>
<button><i class="bi bi-discord"></i> Discord</button>
</div>
<div class="line"></div>
<div class="wordwrapper">
<div class="word">or</div>
</div>
</div>
<div class="modal-content animate">
<div class="imgcontainer">
<img src="/assets/img/twixxl_login_background.png" height="90" style="border-radius: 8px; margin-left: 5%;margin-top: 10%;" alt="">
<div> <img src="/assets/img/twixxl_User.jpg" height="60" style="border-radius: 100%; position: absolute;
top: 110px;
left: 40%;
transform: translateY(-50%); " alt="">
<div class="input_box" style=" position: absolute;
top: 170px;
left: 10px;
transform: translateY(-50%);">
<input type="text" id="username" placeholder="Username" required>
<div class="icon"><i class="bi bi-person"></i></div>
</div>
<div class="input_box" style=" position: absolute;
top: 230px;
left: 10px;
transform: translateY(-50%);">
<input type="text" id="email" placeholder="Email" required>
<div class="icon"><i class="bi bi-envelope"></i></div>
</div>
<div class="input_box" style=" position: absolute;
top: 290px;
left: 10px;
transform: translateY(-50%);">
<input type="password" id="password" placeholder="Password" required>
<div class="icon"><i class="bi bi-key"></i></div>
</div>
<div class="input_box button" style=" position: absolute;
top: 370px;
left: 10px;
transform: translateY(-50%);">
<input type="submit" id="logIn" value="Signup">
</div>
<p style="font-size: 11px; margin-top: 56%; margin-left:7%;">By creating an account you agree to our <a href="#" style="color:dodgerblue;">Terms & Privacy</a>.</p>
<div class="sign_up">
Already have a account? <a href="#">Login</a>
</div>
</form>
</div>
<script>
// Get the modal
var modal = document.getElementById('id01');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
document.querySelector("body").style.overflow = 'overlay';
}
}
document.querySelector("#open-modal-button").addEventListener('click', function() {
document.querySelector("body").style.overflow = 'hidden';
});
document.querySelector("#close-modal-button").addEventListener('click', function() {
document.querySelector("body").style.overflow = 'overlay';
});
</script>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.8.1/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.8.1/firebase-analytics.js";
import { getDatabase, set, ref } from "https://www.gstatic.com/firebasejs/9.8.1/firebase-database.js";
import { getAuth, createUserWithEmailAndPassword } from "https://www.gstatic.com/firebasejs/9.8.1/firebase-auth.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyCDXj91Z7mxbbyxmHH-fqKZyeB0NCdx6Ec",
authDomain: "twixxl-62260.firebaseapp.com",
databaseURL: "https://twixxl-62260-default-rtdb.firebaseio.com",
projectId: "twixxl-62260",
storageBucket: "twixxl-62260.appspot.com",
messagingSenderId: "91276470040",
appId: "1:91276470040:web:dee4392cc869a1988ee06d"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const database = getDatabase(app);
const auth = getAuth();
logIn.addEventListener('click',(e)=> {
var email = document.getElementById('email').value;
var password = document.getElementById('password').value;
var username = document.getElementById('username').value;
createUserWithEmailAndPassword(auth, email, password)
.then((userCredential) => {
// Signed in
const user = userCredential.user;
set(ref(database, 'users/' + user.uid),{
username: username ,
email: email
})
alert('User Created!')
// ...
})
.catch((error) => {
const errorCode = error.code;
const errorMessage = error.message;
alert(errorMessage);
// ..
});
})
login.addEventListener('click',(e)=>{
var email = document.getElementById('email').value;
var password = document.getElementById('password').value;
signInWithEmailAndPassword(auth, email, password)
.then((userCredential) => {
// Signed in
const user = userCredential.user;
const dt = new Date();
update(ref(database, 'users/' + user.uid),{
last_login: dt,
})
alert('User loged in!');
// ...
})
.catch((error) => {
const errorCode = error.code;
const errorMessage = error.message;
alert(errorMessage);
});
});
const user = auth.currentUser;
onAuthStateChanged(auth, (user) => {
if (user) {
// User is signed in, see docs for a list of available properties
// https://firebase.google.com/docs/reference/js/firebase.User
const uid = user.uid;
//bla bla bla
// ...
} else {
// User is signed out
// ...
//bla bla bla
}
});
logout.addEventListener('click',(e)=>{
signOut(auth).then(() => {
// Sign-out successful.
alert('user loged out');
}).catch((error) => {
// An error happened.
const errorCode = error.code;
const errorMessage = error.message;
alert(errorMessage);
});
});
</script>
</div>
</div>
</section>
</main><!-- End #main -->
<style>
.wrapper {
position: relative;
width: 250px;
height: 440px;
margin: 10px 0 10px;
position: absolute;
left: 40%;
}
.line {
position: absolute;
left: 49%;
top: 0;
bottom: 0;
width: 1px;
background: #ccc;
z-index: 1;
}
.wordwrapper {
text-align: center;
height: 12px;
position: absolute;
left: 0;
right: 0;
top: 50%;
margin-top: -12px;
z-index: 2;
}
.word {
color: #ccc;
text-transform: uppercase;
letter-spacing: 1px;
padding: 3px;
font: bold 22px arial,sans-serif;
background-color: #fafafa;
}
</style>
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="footer-info">
<h3><a href="index.html"><img src="/assets/img/New_twixxl Logo_Rounded.svg" alt="" height="34"> <span>twixxl</span></a></h3>
<p class="pb-3"><em>Your platform to meet the world and everyone in between.</em></p>
<p>
<br>
Middle East<br><br>
<strong>Email:</strong> <a href="mailto:[email protected]">[email protected]</a><br>
</p>
<div class="social-links mt-3">
<a href="#" class="youtube"><i class="bx bxl-youtube"></i></a>
<a href="#" class="twitter"><i class="bx bxl-twitter"></i></a>
<a href="#" class="instagram"><i class="bx bxl-instagram"></i></a>
<a href="#" class="tiktok"><i class="bx bxl-tiktok"></i></a>
<a href="https://github.com/SF0018/twixxl" class="linkedin"><i class="bx bxl-github"></i></a>
</div>
</div>
</div>
<div class="col-lg-2 col-md-6 footer-links">
<h4>Useful Links</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">Home</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#about">About us</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Status</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Terms of service</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Privacy policy</a></li>
</ul>
</div>
<div class="col-lg-2 col-md-6 footer-links">
<h4>Our Services</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">Jobs</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Support</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Licenses</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Marketing</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#download">Download</a></li>
</ul>
</div>
<div class="col-lg-4 col-md-6 footer-newsletter">
<h4>Our Newsletter</h4>
<p>Subscribe to our newsletter to get latest news/updates on twixxl.</p>
<form action="" method="post">
<input type="email" name="email" placeholder="Email address"><input type="submit" onclick="comingsoon()" value="Subscribe">
</form>
</div>
<div id="darkmode" class="darkmode-switch"><span>LIGHT </span><label class="switch">
<input type="checkbox" id="checkBox" name="theme" >
<span class="slider"></span>
</label><span> DARK <span class="recommended">Recommended</span></span></div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
Copyright ©2022 <strong><span>twixxl</span></strong>, All rights reserved.
</div>
<div class="credits">
<a href="">Privacy policy</a> | <a href="terms.html">Terms of service</a> | <a href="">Support</a>
</div>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<div id="preloader"></div>
<!-- Vendor JS Files -->
<script src="assets/vendor/purecounter/purecounter_vanilla.js"></script>
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
</body>
</html>
<script>
const togglePassword = document.querySelector("#togglePassword");
const password = document.querySelector("#password");
togglePassword.addEventListener("click", function () {
// toggle the type attribute
const type = password.getAttribute("type") === "password" ? "text" : "password";
password.setAttribute("type", type);
// toggle the icon
this.classList.toggle("bi-eye");
});
// prevent form submit
const form = document.querySelector("form");
form.addEventListener('submit', function (e) {
e.preventDefault();
});
</script>
<style>
body {
background-color: #141518;
color: #fff;
}
.breadcrumbs {
padding: 20px 0;
background-color: #141518;
min-height: 40px;
margin-top: 80px;
}
.breadcrumbs a{
background-image: linear-gradient( 111deg ,#8224e3,#ed1e79);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.inner-page .container {
width: 81%;
height: 480px;
background-color: #fafafa;
border-radius: 12px;
position: absolute;
top: 65%;
left: 50%;
transform: translate(-50%, -50%);
}
#footer {
padding-top: 500px;
}
.btn-login {
font-family: "Montserrat", sans-serif;
font-weight: 500;
font-size: 16px;
letter-spacing: 1px;
display: inline-block;
padding: 10px 30px;
border-radius: 50px;
transition: background-color 1s;
color: #fff;
background: linear-gradient(170deg,#8224e3, #ed1e79);
will-change: transform;
transition: transform 450ms;
opacity: 0.90;
}
.modal-content {
background-color: var(--bg);
margin: 5% auto 15% auto;
width: 350px;
height: 440px;
border-radius: 12px;
left: 290px;
top: -50px;
color: black;
z-index: 9999;
}
.sign_up {
color: var(--color-text);
position: absolute;
top: 415px;
left: 16%;
transform: translateY(-50%);
}
.input_box .icon {
position: absolute;
top: 50%;
left: 1px;
transform: translateY(-50%);
color: var(--color-text);
background-color: var(--bg);
padding: 12px 14px;
margin-right: 4px;
border-radius: 50%;
}
.otherlogin button {
background: linear-gradient(170deg,#8224e3, #ed1e79);
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
border-radius: 100px;
}