-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
211 lines (211 loc) · 7 KB
/
login.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
<!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">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Caveat&family=Dosis:wght@200&family=Poiret+One&family=Varela+Round&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css" integrity="sha384-wESLQ85D6gbsF459vf1CiZ2+rr+CsxRY0RpiF1tLlQpDnAgg6rwdsUF1+Ics2bni" crossorigin="anonymous">
<title>Document</title>
<style>
* {
box-sizing: border-box;
padding: 0;
margin: 0;
border: none;
outline: none;
cursor: default;
font-family: 'Varela Round';
text-align: center;
vertical-align: middle;
}
html, body {
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
background-image: linear-gradient(to top right, goldenrod, hotpink);
}
main {
display: grid;
grid-template: "a b c" / 1fr 8px 1fr;
align-items: center;
justify-items: center;
width: 50%;
height: 70%;
background-color: #ffffff40;
border-radius: 25px;
}
#separator {
background-color: #ffffff40;
width: 8px;
height: 88%;
border-radius: 25px;
}
.section {
display: grid;
grid-template:
"title" max-content
"inputs" 1fr
"button" max-content;
align-content: center;
align-items: center;
justify-items: center;
width: 70%;
height: 88%;
background-color: transparent;
}
h1 {
font-size: 20px;
font-variant: small-caps;
color: #ffffffbf;
margin: 40px 0;
}
.input-field {
display: grid;
grid-template:
"input-A" max-content
"input-B" max-content
"input-C" max-content;
align-content: center;
}
input[type=text], input[type=email], input[type=password], input::placeholder {
background-color: transparent;
border-bottom: 1px solid #ffffff80;
color: #ffffff80;
padding: 5px 10px;
margin: 20px 0;
font-size: 20px;
}
input:hover, input:hover::placeholder {
border-color: #ffffffbf;
color: #ffffffbf;
}
input:focus {
border-color: #ffffff;
color: #ffffff;
}
input:focus::placeholder {
color: transparent;
}
#enter-password {
display: grid;
grid-template:
"a" max-content
"b" max-content;
align-items: center;
justify-items: center;
}
#password {
margin-bottom: 10px;
}
#gauge {
display: grid;
grid-template:
"a b c d e" 1fr;
align-items: center;
justify-items: center;
width: max-content;
margin-bottom: 20px;
}
.gauge-bar {
width: 20px;
height: 10px;
margin: 0 5px;
background-color: #ffffff;
border-radius: 25px;
}
#checkbox {
appearance: none;
background-clip: padding-box;
background-color: #ffffff80;
width: 20px;
height: 20px;
border: 5px solid #ffffff80;
border-radius: 100%;
}
#checkbox:hover {
background-color: #ffffffbf;
border-color: #ffffffbf;
}
#checkbox:checked {
background-color: salmon;
border-color: #ffffff;
}
span {
color: #ffffffbf;
}
#checkbox:checked + span {
color: #ffffff;
}
button {
background-color: salmon;
border-radius: 25px;
padding: 10px 20px;
margin: 40px 0;
font-size: 20px;
font-variant: small-caps;
color: #ffffffbf;
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.20);
transition: all 10ms 5ms;
}
button:hover, button:active {
box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.20);
}
</style>
</head>
<body>
<main>
<div id="register" class="section">
<div class="section-title">
<h1>create account</h1>
</div>
<div class="input-field">
<div id="enter-email">
<input type="email" name="" id="email" placeholder="E-mail">
</div>
<div id="enter-password">
<input type="password" name="password" id="password" placeholder="Password">
<div id="gauge">
<div id="g0" class="gauge-bar"></div>
<div id="g1" class="gauge-bar"></div>
<div id="g2" class="gauge-bar"></div>
<div id="g3" class="gauge-bar"></div>
<div id="g4" class="gauge-bar"></div>
</div>
</div>
<div id="confirm-password">
<input type="password" name="password-pair" id="password-pair" placeholder="Confirm Password">
</div>
</div>
<div class="action">
<button>register</button>
</div>
</div>
<div id="separator"></div>
<div id="login" class="section">
<div class="section-title">
<h1>sign in</h1>
</div>
<div class="input-field">
<div id="input-user">
<input type="text" name="user" id="user" placeholder="Username">
</div>
<div id="input-key">
<input type="password" name="key" id="key" placeholder="Password">
</div>
<div id="option">
<input type="checkbox" name="checkbox" id="checkbox">
<span>Remember Me (30 Days)</span>
</div>
</div>
<div class="action">
<button>login</button>
</div>
</div>
</main>
</body>
</html>