-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.html
162 lines (157 loc) · 4.14 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
<!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>Sign Up</title>
<link rel="shortcut icon" href="./images/Geekbuying_title_logo.png" type="image/x-icon">
<style>
*{
margin: 0px;
padding: 0px;
text-decoration: none;
color: black;
}
#upperbar{
width: 100%;
height: 18vh;
background-color: #1779fd;display: flex;justify-content: center;align-items: center;
}
#upperbar>img{
height: 8vh;cursor: pointer;
}
#bgi{
height: 106vh;
padding-top: 11vh;
width: 100%;
background-repeat: no-repeat;
background-size: cover cover;
}
#bgi+p{
text-align: center;
}
#signup{
width: 30%;margin: auto;border-radius: 3px;background-color: white;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;text-align: center;padding-bottom: 6vh;
}
#signup>h3{
font-family: "Open Sans", sans-serif !important;
margin-left: 6.9%;padding-top: 4vh;text-align: left;
}
#signup>input{
width: 80%;margin: auto;height: 6.7vh;margin-top: 4vh;border: 0.5px solid gray;border-radius: 3px;
padding-left: 5%;
}
#fp{
display: flex;width: 87%;margin: auto;margin-top: 3vh;justify-content: space-around;align-items: center;
}
#fp>img{
width: 7%;
}
#fp>u{
color: gray;
}
#signup>button{
margin-top: 3vh;
}
#signb{
background-color: #1779fd;border: none;border-radius: 4px;padding: 2.3vh 38% 2.3vh 38%;color: white;
}
#cna{
background-color: #f0f0f0;
border: none;
border-radius: 4px;padding: 2.3vh 27% 2.3vh 27%;
color: gray;
text-decoration: none;
}
hr{
width: 42%;color: grey;
}
#fp>p{
color: grey;font-size: 17px;
}
#signup>img{
width: 12%;margin-top: 3vh;
}
#cya{
display: flex;width: 87%;margin: auto;margin-top: 3vh;justify-content: space-between;align-items: center;
padding-top: 3.5vh;font-family: "Open Sans", sans-serif !important;
}
#cya>p{
cursor: pointer;
}
#capt{
display: flex;width: 87%;margin: auto;margin-top: 4vh;justify-content: space-between;align-items: center;
}
#capt>input{
width: 51.5%;margin: auto;height: 6.7vh;;border: 0.5px solid gray;border-radius: 3px;
padding-left: 5%;
}
#capt>img{
width: 40%;box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#tcp{
display: flex;width: 85%;margin: auto;margin-top: 3.6vh;align-items: center;
}
#tcp>p{
font-size: 14px;margin-left: 2%;color: gray;
}
input{
border: 0.1px solid gray;border-radius: 4.5px;
}
#tcp>p>u{
color: black;
}
#cra{
background-color: #1779fd;border: none;border-radius: 4px;padding: 2.3vh 31% 2.3vh 31%;color: white;
}
button{
cursor: pointer;
}
</style>
</head>
<body>
<div id="upperbar">
<img onclick="mp()" src="images\logo 4.png" alt="">
</div>
<div id="bgi">
<div id="signup">
<h3>Create your account</h3>
<input id="ea" type="text" placeholder="Nick name">
<input id="pa" type="text" placeholder="Email address">
<input id="na" type="number" placeholder="Password">
<div id="fp">
<input id="cb" type="checkbox">
<p>I agree with the terms and conditions of Pirated Store</p>
</div>
<button id="signb"><h4>Create Account</h4></button><br></button>
<div id="fp"><hr><p>or</p><hr></div>
<img src="https://cdn.iconscout.com/icon/free/png-64/google-152-189813.png" alt="">
</div>
</div>
</body>
</html>
<script>
document.querySelector("#signb").addEventListener('click',signup);
let dataArr = JSON.parse(localStorage.getItem("data")) || [];
function signup(){
event.preventDefault()
let name = document.querySelector("#ea").value
let password = document.querySelector("#na").value
let email = document.querySelector("#pa").value
let obj = {
name,
password,
email
};
if(obj.name == "" || obj.email == "" || obj.password == ""){
alert("Please Fill All the Details")
}else{
dataArr.push(obj)
localStorage.setItem("data",JSON.stringify(dataArr))
alert("Acount is created");
window.location.href = "signIn.html"
}
}
</script>