forked from abdulrafayoc/SHAPER-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sign-up-dark.html
145 lines (130 loc) · 4.6 KB
/
sign-up-dark.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<link rel="stylesheet" href="./global.css" />
<link rel="stylesheet" href="./sign-up-dark.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&display=swap"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM Sans:wght@400;500;700&display=swap"
/>
</head>
<body>
<div class="sign-up-dark">
<img class="sign-up-dark-child" alt="" src="./public/[email protected]" />
<div class="image-1-group">
<div class="image-11"></div>
<div class="div1"></div>
</div>
<form class="welcome-back-login-to-your-a-parent">
<div class="welcome-back-login-container">
<p class="welcome-back">Welcome Back,</p>
<p class="welcome-back">Login to your Account</p>
</div>
<div class="forms-container">
<input class="forms2" type="text" placeholder="JohnDoe69" />
<div class="usernameemail1">Username/Email</div>
</div>
<div class="forms-container">
<input class="forms3" type="password" placeholder="From" />
<div class="usernameemail1">Password</div>
</div>
<div class="frame-div">
<button type = "button" class="buttons5" id="buttons">
<img
class="login-24-outline1"
alt=""
src="./public/login--24--outline.svg"
/>
<div class="button5">Login</div>
</button>
<div class="forget-password1">Forget Password?</div>
</div>
<div class="frame-group">
<div class="buttons-parent1">
<button class="buttons6">
<img
class="google-24-outline1"
alt=""
src="./public/google--24--outline1.svg"
/>
<div class="forget-password1">Sign in with Google</div>
</button>
<button class="buttons7">
<img
class="google-24-outline1"
alt=""
src="./public/github--24--outline.svg"
/>
<div class="forget-password1">Sign in with GitHub</div>
</button>
</div>
<div class="buttons-parent2">
<button class="buttons8">
<img
class="google-24-outline1"
alt=""
src="./public/facebook--24--outline.svg"
/>
<div class="forget-password1">Sign in with Facebook</div>
</button>
<button class="buttons8">
<img
class="google-24-outline1"
alt=""
src="./public/apple--24--outline.svg"
/>
<div class="forget-password1">Sign in with Apple</div>
</button>
</div>
</div>
<div class="dont-have-an" id="dontHaveAn">
Don’t have an Account? Signup!
</div>
</form>
<div class="dark-mode-group" id="frameContainer6">
<div class="dark-mode1">Dark Mode</div>
<div class="rectangle-container">
<div class="instance-item"></div>
</div>
</div>
</div>
<script>
var buttons = document.getElementById("buttons");
// if (buttons) {
// buttons.addEventListener("click", function (e) {
// window.location.href = "./dashboard-dark.html";
// });
// }
buttons.addEventListener("click", function() {
const email = document.querySelector(".forms2").value;
const password = document.querySelector(".forms3").value;
const storedEmail = localStorage.getItem("email");
const storedPassword = localStorage.getItem("password");
if (email === storedEmail && password === storedPassword) {
alert("Logged in successfully!");
window.location.href = "./dashboard-dark.html";
} else {
alert("Invalid credentials. Please try again.");
}
});
var dontHaveAn = document.getElementById("dontHaveAn");
if (dontHaveAn) {
dontHaveAn.addEventListener("click", function (e) {
window.location.href = "/";
});
}
var frameContainer6 = document.getElementById("frameContainer6");
if (frameContainer6) {
frameContainer6.addEventListener("click", function (e) {
window.location.href = "./sign-up-light.html";
});
}
</script>
</body>
</html>