-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignUp.html
151 lines (136 loc) · 4.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Authentication</title>
<link href="css/style.css" rel="stylesheet">
<style>
.parent
{
display: flex;
justify-content: center;
align-items: center;
transform: translate(0,5%);
background-image: linear-gradient(to right, rgb(88, 88, 88), rgb(230, 230, 230));
}
#child
{
width: 50%;
}
i
{
margin-left: -40px;
cursor: pointer;
}
.passInput
{
display: flex; align-content: center; align-items: center;
}
#subBtn
{
border: 0ch;
border-radius: 5px;
background-color: rgba(0, 128, 0, 0.302);
width: 50%;
height: 40px;
}
</style>
<script src="https://kit.fontawesome.com/d94d3d35d6.js" crossorigin="anonymous">
</script>
</head>
<body style="background-color: grey;">
<div class="parent">
<div class="bg-light p-30 mb-5" id="child" style="align-items: center;" >
<center><h2>Sign up</h2><br></center>
<div class="row">
<div class="col-md-6 form-group">
<label>First Name</label>
<input class="form-control" type="text" placeholder="John">
</div>
<div class="col-md-6 form-group">
<label>Last Name</label>
<input class="form-control" type="text" placeholder="Doe">
</div>
<div class="col-md-6 form-group">
<label>E-mail</label>
<input class="form-control" type="text" placeholder="example@email.com">
</div>
<div class="col-md-6 form-group">
<label>Mobile No</label>
<input class="form-control" type="text" placeholder="+123 456 789">
</div>
<div class="col-md-6 form-group">
<label>Password</label>
<div class="passInput">
<input id="pass" class="form-control" type="password" >
<i id="passI" class="fa-solid fa-eye-slash" onclick="changeVisible(this)"></i>
</div>
</div>
<div class="col-md-6 form-group" >
<label>Repeat Password</label>
<div class="passInput" >
<input id="repass" class="form-control" type="password">
<i id="repassI" class="fa-solid fa-eye-slash" onclick="changeVisible(this)"></i>
</div>
</div>
<div class="col-md-6 form-group">
<label>Address Line 1</label>
<input class="form-control" type="text" placeholder="123 Street">
</div>
<div class="col-md-6 form-group">
<label>Address Line 2</label>
<input class="form-control" type="text" placeholder="123 Street">
</div>
<div class="col-md-6 form-group">
<label>Country</label>
<select class="custom-select">
<option selected>United States</option>
<option>Afghanistan</option>
<option>Albania</option>
<option>Algeria</option>
</select>
</div>
<div class="col-md-6 form-group">
<label>City</label>
<input class="form-control" type="text" placeholder="New York">
</div>
<div class="col-md-6 form-group">
<label>State</label>
<input class="form-control" type="text" placeholder="New York">
</div>
<div class="col-md-6 form-group">
<label>ZIP Code</label>
<input class="form-control" type="text" placeholder="123">
</div>
</div><br>
<center>
<button id="subBtn">Submit</button><br>
<label for="sign in">already have an account  </label><a id="Sign in" href="SignIn.html" >Sign in</a>
</center>
</div>
</div>
<script>
function changeVisible(icon)
{
if(icon.id=="passI")
passVisible("pass",icon);
else
passVisible("repass",icon);
}
function passVisible(inputId,icon)
{
var inputType= document.getElementById(inputId).getAttribute("type");
if(inputType=="text")
{
document.getElementById(inputId).setAttribute("type","password");
icon.setAttribute("class","fa-solid fa-eye-slash");
}else
{
document.getElementById(inputId).setAttribute("type","text");
icon.setAttribute("class","fa-solid fa-eye");
}
}
</script>
</body>
</html>