forked from anubhav4968/TomTopCloneByMasai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signuppage.html
221 lines (218 loc) · 6 KB
/
signuppage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<script
src="https://kit.fontawesome.com/24c494a6b6.js"
crossorigin="anonymous"
></script>
<style>
input {
display: block;
margin: auto;
width: 330px;
border-radius: 5px;
padding: 5px 5px;
height: 100%;
border: 1px solid white;
}
input:focus {
outline: none;
}
#button {
width: 100%;
border-radius: 10px;
background-color: orange;
color: white;
margin-top: 15px;
font-size: 20px;
}
form {
width: 350px;
margin: auto;
height: auto;
}
#heading {
text-align: center;
font-size: 20px;
padding-top: 30px;
}
#paragraph {
margin-top: -10px;
display: inline-block;
}
#front {
width: 450px;
height: auto;
margin: auto;
box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em,
rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}
#front div {
display: flex;
height: auto;
border: 0.5px solid rgb(226, 216, 216);
margin-top: 10px;
border-radius: 5px;
text-align: justify;
}
#email {
color: rgb(134, 125, 125);
margin-left: 5px;
}
#lock {
color: rgb(138, 125, 125);
margin-left: 3px;
}
#checkbox {
margin-top: 0px;
width: 17px;
height: 20px;
margin-right: 5px;
}
#checkbox2 {
width: 40px;
height: 40px;
margin-top: -10px;
margin-right: 5px;
}
a {
outline: none;
text-decoration: none;
color: rgb(235, 17, 17);
}
#signin {
text-align: center;
padding-bottom: 20px;
}
img {
border-radius: 5px;
}
</style>
<body>
<img
style="display: block; margin: auto"
src="https://static.tomtop.com/tomtop/acount/icon/logo.png?v=3"
/>
<div id="front">
<form>
<h3 id="heading">Creat A New Account</h3>
<div>
<svg
id="email"
xmlns="http://www.w3.org/2000/svg"
width="30"
height="46"
fill="currentColor"
class="bi bi-envelope-fill"
viewBox="0 0 16 16"
>
<path
d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"
/>
</svg>
<input type="email" id="useremail" placeholder="Email adress" />
</div>
<div>
<svg
id="lock"
xmlns="http://www.w3.org/2000/svg"
width="30"
height="46"
fill="currentColor"
class="bi bi-lock-fill"
viewBox="0 0 16 16"
>
<path
d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"
/>
</svg>
<input
type="password"
id="password"
placeholder="6-20 characters ( letter or number only )"
/>
</div>
<div>
<span><i class="bi bi-lock-fill"></i></span>
<svg
id="lock"
xmlns="http://www.w3.org/2000/svg"
width="30"
height="46"
fill="currentColor"
class="bi bi-lock-fill"
viewBox="0 0 16 16"
>
<path
d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"
/>
</svg>
<input
type="password"
id="repeat"
placeholder="Enter password again"
/>
</div>
<div>
<input type="text" id="capcha" placeholder="Enter the Capcha code" />
<img
src="https://my.tomtop.com/member/code"
alt="Click the refresh verification code"
/>
</div>
<div style="border: 1px solid white">
<input id="checkbox" type="checkbox" /><label
>I agree to TOMTOP
<a href="https://www.tomtop.com/help/terms-conditions.html"
>Terms & Conditions</a
>,<a
href="https://www.tomtop.com/help/privacy-policy.html"
title="Privacy Policies"
>
Privacy Policy.</a
></label
>
</div>
<div style="border: 1px solid white">
<input id="checkbox2" type="checkbox" />
<label>
Yes,Sign up our newsletter,get a $50 coupon in your first email! You
will receive our latest updates,news,and promotions from
Tomtop.</label
>
</div>
<input type="submit" id="button" value="Create My Account" />
<p>
<em>>></em>
Register at tomtop.com and receive 10 points.
</p>
<p id="signin">
Already have an account ?
<span> <a href="signinpage.html"> Sign in</a></span>
</p>
</form>
</div>
</body>
</html>
<script>
document.querySelector("form").addEventListener("submit", myfunction);
var userdata = JSON.parse(localStorage.getItem("userdatastorage")) || [];
function myfunction() {
event.preventDefault();
var userobj = {
email: document.querySelector("#useremail").value,
password: document.querySelector("#password").value,
repeat: document.querySelector("#repeat").value,
};
userdata.push(userobj);
console.log(userdata);
localStorage.setItem("userdatastorage", JSON.stringify(userdata));
window.location.href = "signinpage.html";
}
</script>