-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign20.html
More file actions
230 lines (219 loc) · 6.44 KB
/
design20.html
File metadata and controls
230 lines (219 loc) · 6.44 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
@import "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";
html,body{
width:100%;
height:100%;
}
body{
background:#60a89d;
}
.container{
position:relative;
left:50%;
top:50%;
transform:translate(-50%,-50%);
width:360px;
height:568px;
box-shadow: 0px 0px 30px 0px #000;
perspective: 1000px;
overflow:hidden;
}
.form{
position: absolute;
left:0px;
top:0px;
width: 100%;
height:100%;
background:#00362e;
transform-style:preserve-3d ;
border:1px solid #000;
}
.form h2{
line-height: 60px;
text-align: center;
background-color:#ffcc00;
font-family:fantasy;
font-size:28px;
color:#00362e;
}
.form .input-container{
padding:10px 1rem;
}
.form .input-box{
position: relative;
margin:15px 0px;
border-bottom:1px solid #ffcc00;
}
.form .input-box .fa{
position: absolute;
width:40px;
font-size:26px;
line-height: 40px;
color:#ffcc00;
}
.form .input-box .input{
width:100%;
height:35px;
padding:5px 10px 5px 50px;
font-size:16px;
border:none;
background-color:transparent;
color:#ffcc00;
}
.form .submit{
width:100%;
padding:8px 1rem;
font-size:16px;
border:none;
background:#ffcc00;
color:#00362e;
margin-top:20px;
cursor:pointer;
font-weight:600;
}
.form .submits{
width:100%;
padding:8px 1rem;
font-size:16px;
margin-top:20px;
cursor:pointer;
font-weight:600;
border:2px solid #ffcc00;
color:#ffcc00;
background:#00362e;
}
.form p{
/* position:absolute;
top:370px; */
text-align:center;
color:#ffcc00;
font-family: cursive;
}
.form .social-btn{
margin-top:20px;
text-align: center;
}
.form .social-btn .fa{
width:40px;
height:40px;
border-radius:50%;
text-align: center;
line-height: calc(40px - 4px);
border:2px solid #ffcc00;
color:#ffcc00;
cursor: pointer;
}
.form-login{
z-index:3;
transition:z-index 1s step-end;
}
.form-signup{
z-index:2;
transition:z-index 1s step-end;
}
.form-login.hide{
animation:goBackRight 2s ease-in-out;
z-index: 1;
}
.form-signup.hide{
animation:goBackLeft 2s ease-in-out;
z-index: 1;
}
@keyframes goBackRight{
0%{
transform:translateX(0px) rotateY(0deg);
}
50%{
transform:translateX(280px) rotateY(-90deg);
}
100%{
transform:translateX(0px) rotateY(0deg);
}
}
@keyframes goBackLeft{
0%{
transform:translateX(0px) rotateY(0deg);
}
50%{
transform:translateX(-280px) rotateY(90deg);
}
100%{
transform:translateX(0px) rotateY(0deg);
}
}
</style>
</head>
<body>
<div class="container">
<div class="form form-login">
<h2>LOGIN FORM</h2>
<div class="input-container">
<div class="input-box">
<i class="fa fa-user"></i>
<input type="text" class="input" placeholder="Username">
</div>
<div class="input-box">
<i class="fa fa-lock"></i>
<input type="password" class="input" placeholder="Password">
</div>
<button class="submit" type="button" name="button">SIGN IN</button>
<button class="submits" type="button" name="button">SIGN UP</button>
<br>
<br>
<br>
<p>Login with social media.</p>
<div class="social-btn">
<i class="fa fa-facebook"></i>
<i class="fa fa-twitter"></i>
<i class="fa fa-google"></i>
</div>
</div>
</div>
<div class="form form-signup">
<h2>SIGNUP FORM</h2>
<div class="input-container">
<div class="input-box">
<i class="fa fa-user"></i>
<input type="text" class="input" placeholder="Choose Username">
</div>
<div class="input-box">
<i class="fa fa-lock"></i>
<input type="password" class="input" placeholder="Choose Password">
</div>
<div class="input-box">
<i class="fa fa-lock"></i>
<input type="password" class="input" placeholder="Confirm Password">
</div>
<button class="submit" type="button" name="button">SIGN IN</button>
<button class="submits" type="button" name="button">SIGN UP</button>
<br>
<br>
<p>Login with social media.</p>
<div class="social-btn">
<i class="fa fa-facebook"></i>
<i class="fa fa-twitter"></i>
<i class="fa fa-google"></i>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".submits").click(function(){
$(".form").removeClass("hide");
$(this).parent().parent().addClass("hide");
});
});
</script>
</body>
</html>