-
Notifications
You must be signed in to change notification settings - Fork 12
/
signup.html
211 lines (142 loc) · 3.45 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
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div style="position:fixed;left:0;top:0;width:100%;height:100%;background:linear-gradient(135deg,rgb(15,250,173),rgb(31,200,219),rgb(44,151,232));text-align:center;padding:2%;">
<div id="logger">
<div style="display:inline-block;width:100px;padding-bottom:100px;border-radius:50%;margin:8%;background-image:url('images/logo.png');background-size:cover;">
</div>
<p style="color:rgb(44,181,232);font-weight:bold;font-size:20px;">Create your xxxxxxxxxxxx Account</p>
<form action="signupaction.php" method="post">
<!--
<div class="block">
<input type="text" placeholder="Username" onfocus="fopen('line1');" onblur="fclose('line1');">
</div>
<div class="stand">
<div id="line1"></div>
</div>
-->
<div class="block">
<input type="email" name="email" placeholder="Email" required onfocus="fopen('line2');" onblur="fclose('line2');">
</div>
<div class="stand">
<div id="line2"></div>
</div>
<div class="block">
<input type="password" placeholder="Password" required name="password" required pattern="^\S{6,}$" onchange="this.setCustomValidity(this.validity.patternMismatch ? 'Must have at least 6 characters' : ''); if(this.checkValidity()) form.confirm_pass.pattern = this.value;" autocomplete="off" onfocus="fopen('line3');" onblur="fclose('line3');">
</div>
<div class="stand">
<div id="line3"></div>
</div>
<div class="block">
<input type="password" placeholder="Retype Password" required name="confirm_pass" id="confirm_pass" pattern="^\S{6,}$" onchange="this.setCustomValidity(this.validity.patternMismatch ? 'Please enter the same Password as above' : '');" autocomplete="off" onfocus="fopen('line4');" onblur="fclose('line4');">
</div>
<div class="stand">
<div id="line4"></div>
</div>
<div class="block">
<button type="submit" name="submit">Sign up</button>
</div>
</form>
</div>
</div>
<script>
function fopen(x)
{
var obj = document.getElementById(x);
obj.style.WebkitTransition = 'width 0.4s';
obj.style.MozTransition = 'width 0.4s';
obj.style.border = '1px solid rgb(0,130,240)';
obj.style.width = "100%";
}
function fclose(x)
{
var obj = document.getElementById(x);
obj.style.border = '0px solid rgb(0,130,240)';
obj.style.width = "0";
}
</script>
<style>
*{
padding:0;
border:0;
margin:0;
outline:0;
box-sizing:border-box;
}
body,html{
padding:0;
margin:0;
font-family: roboto,arial,sans-serif;
}
#logger{
display:inline-block;
width:400px;
padding:20px;
background:rgba(210,250,250,1);
box-shadow: 0 0 10px rgb(40,40,40);
margin-top:20px;
}
input{
display:inline-block;
border:none;
border-radius:4px;
width:80%;
padding:5px;
font-size:16px;
background:inherit;
transition: width 0.4s ease-in-out;
}
input:focus{
outline: none;
}
#line1{
display:inline-block;
width:0;
border:0;
border-radius:2px;
}
#line2{
display:inline-block;
width:0;
border:0;
border-radius:2px;
}
#line3{
display:inline-block;
width:0;
border:0;
border-radius:2px;
}
#line4{
display:inline-block;
width:0;
border:0;
border-radius:2px;
}
button{
border:none;
border-radius:5px;
background:linear-gradient(0deg,rgb(0,170,250),rgb(0,140,230));
color:white;
font-size:18px;
font-weight:bold;
padding:10px 20px 10px 20px;
box-shadow: 0 0 7px grey;
cursor:pointer;
}
button:hover{
background:linear-gradient(0deg,rgb(0,200,250),rgb(0,170,240));
}
.block{
width:100%;
padding-top:30px;
}
.stand{
display:inline-block;
width:80%;
border-top:1px solid rgb(0,180,180);
}
</style>
</body>
</html>