-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup-ui-one-demo.html
392 lines (334 loc) · 11.7 KB
/
signup-ui-one-demo.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i|Montserrat">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="jquery-3.2.1.js"></script>
<style>
* {box-sizing: border-box;}
*:focus {outline: 0;}
a {
text-decoration: none;
color: black;
font-weight: 900;
}
a:hover {border-bottom: solid 2px black;}
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: 'Montserrat', 'Open Sans', sans-serif;
color: black;
background-image: url('loginbg.png');
background-size: contain;
background-repeat: repeat;
background-position: top left;
background-attachment: fixed;
overflow: hidden;
transition: background-image 500ms ease-in-out;
}
#container {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
margin: 0;
}
h1 {
font-size: 32px;
}
h6 {
font-weight: 900;
font-size: 20px;
text-transform: lowercase;
margin: 0;
}
img.icon {
width: 25px;
height: 25px;
display: inline-block;
margin-left: 10px;
}
img.icon:hover {
cursor: pointer;
}
nav {
position: absolute;
top: 0;
left: 30px;
width: 100%;
height: 50px;
line-height: 50px;
z-index: 10;
}
nav a {
display: inline-block;
padding: 10px;
padding-bottom: 0;
}
nav a:hover {
text-decoration: line-through;
text-decoration-color: white;
border: none;
}
#lineLongThingy { /*hehe*/
position: relative;
margin: auto;
margin-top: 200px;
width: 1000px;
height: 310px;
border-radius: 25px;
background: #F85563;
box-shadow: 0 0 30px rgba(0,0,0,0.5);
-webkit-transition: all 500ms ease-in-out;
}
#box {
position: absolute;
z-index: 9;
top: -90px;
margin: 0 50px;
padding: 25px;
height: 500px;
background-color: white;
border-radius: 25px;
box-shadow: 0 0 15px rgba(0,0,0,0.5);
width: 500px;
-webkit-transition: -webkit-transform 1s ease-in-out;
text-align: left;
clear: both;
line-height: 2em;
}
#box.signup {
-webkit-transform: translateX(400px);
}
input {
border: none;
border-bottom: solid 2px #FFE000;
transition: all 250ms ease-in;
}
input:focus {
border-color: black;
}
#lineLongThingy.signup {
background-color: #5563f8;
}
aside {
float: right;
width: 400px;
height: 100%;
margin-right: 50px;
padding: 10px;
text-align: center;
font-size: 28px;
}
aside.signup {
float: left;
width: 400px;
margin-left: 50px;
}
button {
position: relative;
z-index: 2;
border: solid 3px black;
background-color: white;
width: 175px;
font-size: 18px;
padding: 10px;
text-transform: uppercase;
font-weight: 900;
font-family: 'Open Sans';
letter-spacing: 1px;
}
button:hover {cursor: pointer;}
button:focus {outline:0;}
button#eye {
position: absolute;
padding: 0;
width: auto;
width: 20px;
height: 20px;
border: none;
}
img {
clear: both;
padding: 0;
}
.button {
background-color: #FFE000;
border-color: black;
}
.button.anim {
transform: translate(4px, 4px);
}
.shadow {
position: absolute;
z-index: 1;
width: 175px;
height: 51px;
background-color: transparent;
border: solid 3px black;
transform: translate(-168px, 8px);
}
.shadow.anim {
border-color: black;
background: black;
}
footer {
position: absolute;
bottom: 15px;
}
.sha {
position: absolute;
z-index: 1;
width: 175px;
height: 51px;
background-color: transparent;
border: solid 3px black;
transform: translate(-168px, 8px);
}
.dow {
position: absolute;
z-index: 1;
width: 175px;
height: 51px;
background-color: transparent;
border: solid 3px black;
transform: translate(-168px, 8px);
}
.but.anim {
transform: translate(4px, 4px);
border-color: white;
}
.ton.anim {
transform: translate(4px, 4px);
border-color: white;
}
.sha.anim {
border-color: white;
background: white;
}
.dow.anim {
border-color: white;
background: white;
}
</style>
</head>
<body id="container">
<nav>
<a href="">home</a>
<a href="">about</a>
<a href="">link</a>
<a href="">link</a>
</nav>
<div id="lineLongThingy">
<aside class="signup">
<br>
Already have an account?
<br>
<br>
<div id="login">
<button class="but">LOGIN</button>
<button class="sha"></button>
</div>
</aside>
<aside>
<br>
Don't have an account?
<br>
<br>
<div id="signup">
<button class="ton">SIGNUP</button>
<button class="dow"></button>
</div>
<br>
and <a href="">learn more</a>
</aside>
<article id="box">
<h1 style='margin: 10px 0 10px 10px'>Hello Again!</h1>
<form action='' method='POST' style='margin: 30px 0 10px 13px'>
<input type='text' placeholder='Enter Username' size='24' required/>
<br>
<br>
<input id='password' placeholder='Enter Password' type='password' size='24' style='margin-bottom: 30px' required/>
<button type='button' id='eye' style='margin: 5px 0 0 10px;'>
<img id='icon' src='icons8-invisible.png' alt='eye' width='20' height='20'/>
</button>
<br>
<button class='button'>LOGIN</button>
<button class='shadow'></button>
</form>
<footer>
<a href=''>Forgot password</a><span style='font-weight: 900'>?</span>
</footer>
</article>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
function show() {
var pwd = document.getElementById('password');
pwd.setAttribute('type', 'text');
var icon = document.getElementById('icon');
icon.setAttribute('src', 'icons8-eye.png');
}
function hide() {
var pwd = document.getElementById('password');
pwd.setAttribute('type', 'password');
var icon = document.getElementById('icon');
icon.setAttribute('src', 'icons8-invisible (2).png');
}
var pwShown = 0;
document.getElementById("eye").addEventListener("click", function () {
if (pwShown == 0) {
pwShown = 1;
show();
} else {
pwShown = 0;
hide();
}
}, false);
function signup() {
setTimeout(function(){
$(".ton").toggleClass("anim");
$('.dow').toggleClass('anim');
}, 300);
}
function login() {
setTimeout(function(){
$(".sha").toggleClass("anim");
$('.but').toggleClass('anim');
}, 300);
}
function huh() {
setTimeout(function() {
$(".shadow").toggleClass('anim');
$('.button').toggleClass('anim');
}, 300);
}
$('#signup').click(function() {
$('#box').toggleClass('signup');
$('#lineLongThingy').toggleClass('signup');
$(".ton").toggleClass('anim');
$(".dow").toggleClass('anim');
$("body").css({backgroundImage: "url('signupbg.png')"});
$('#box').html($("#box").text() == "<h1 style='margin: 10px 0 10px 10px'>Welcome!</h1><form action='' method='POST' style='margin: 30px 0 10px 13px'><input type='text' placeholder='Enter Username' size='24' required/><br><br><input id='password' placeholder='Enter Password' type='password' size='24' required/><br><br><input type='password' id='confirm' placeholder='Re-Enter Password' size='24' required/><br><br><input type='text' placeholder='Enter Valid Email Address' id='email' size='24' required/><br><br><button class='button'>SIGNUP</button><button class='shadow'></button>" ? "<h1 style='margin: 10px 0 10px 10px'>Hello Again!</h1><form action='' method='POST' style='margin: 30px 0 10px 13px'><input type='text' placeholder='Enter Username' size='24' required/><br><br><input id='password' placeholder='Enter Password' type='password' size='24' style='margin-bottom: 30px' required/><button type='button' id='eye' style='margin: 5px 0 0 10px;'><img id='icon' src='icons8-invisible.png' alt='eye' width='20' height='20'/></button><br><button class='button'>LOGIN</button><button class='shadow'></button></form><footer><a href=''>Forgot password</a><span style='font-weight: 900'>?</span></footer>" : "<h1 style='margin: 10px 0 10px 10px'>Welcome!</h1><form action='' method='POST' style='margin: 30px 0 10px 13px'><input type='text' placeholder='Enter Username' size='24' required/><br><br><input id='password' placeholder='Enter Password' type='password' size='24' required/><br><br><input type='password' id='confirm' placeholder='Re-Enter Password' size='24' required/><br><br><input type='text' placeholder='Enter Valid Email Address' id='email' size='24' required/><br><br><button class='button'>SIGNUP</button><button class='shadow'></button>");
signup();
});
$('#login').click(function() {
$('#box').toggleClass('signup');
$('#lineLongThingy').toggleClass('signup');
$(".but").toggleClass('anim');
$(".sha").toggleClass('anim');
$("body").css({backgroundImage: "url('loginbg.png')"});
$('#box').html($('#box').text() == "<h1 style='margin: 10px 0 10px 10px'>Hello Again!</h1><form action='' method='POST' style='margin: 30px 0 10px 13px'><input type='text' placeholder='Enter Username' size='24' required/><br><br><input id='password' placeholder='Enter Password' type='password' size='24' style='margin-bottom: 30px' required/><button type='button' id='eye' style='margin: 5px 0 0 10px;'><img id='icon' src='icons8-invisible.png' alt='eye' width='20' height='20'/></button><br><button class='button'>LOGIN</button><button class='shadow'></button></form><footer><a href=''>Forgot password</a><span style='font-weight: 900'>?</span></footer>" ? "<h1 style='margin: 10px 0 10px 10px'>Welcome!</h1><form action='' method='POST' style='margin: 30px 0 10px 13px'><input type='text' placeholder='Enter Username' size='24' required/><br><br><input id='password' placeholder='Enter Password' type='password' size='24' required/><br><br><input type='password' id='confirm' placeholder='Re-Enter Password' size='24' required/><br><br><input type='text' placeholder='Enter Valid Email Address' id='email' size='24' required/><br><br><button class='button'>SIGNUP</button><button class='shadow'></button>" : "<h1 style='margin: 10px 0 10px 10px'>Hello Again!</h1><form action='' method='POST' style='margin: 30px 0 10px 13px'><input type='text' placeholder='Enter Username' size='24' required/><br><br><input id='password' placeholder='Enter Password' type='password' size='24' style='margin-bottom: 30px' required/><button type='button' id='eye' style='margin: 5px 0 0 10px;'><img id='icon' src='icons8-invisible.png' alt='eye' width='20' height='20'/></button><br><button class='button'>LOGIN</button><button class='shadow'></button></form><footer><a href=''>Forgot password</a><span style='font-weight: 900'>?</span></footer>");
login();
});
$('.button').click(function() {
$('.button').toggleClass('anim');
$('.shadow').toggleClass('anim');
huh();
})
</script>
</body>
</html>