-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
229 lines (224 loc) · 7.37 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>$Title$</title>
<style type="text/css">
@font-face{
font-family: A-OTF;
src:url('UDShinGoPro_Regular.woff2');
}
body{
background:#eee;
background-size:cover;
font-family: A-OTF;
padding:0;
margin:0;
}
body::-webkit-scrollbar{
display:none;
}
.nav{
width: 100vw;
height: 4vw;
background:#54626f;
top:0;
}
.link_left{
width: 8vw;
height: 4vw;
float: left;
color:white;
font-size: 20px;
text-align:center;
line-height: 4vw;
text-decoration:none;
transition: all 0.2s linear
}
.link_left:hover{
background:#5f6e7d;
box-shadow: inset 0 -5px 0 #3ebed3;
transition: all 0.2s linear
}
.link_left a{
color:white;
text-decoration:none;
}
.link_right{
padding:0 15px 0 0;
float:right;
line-height: 4vw;
transition: all 0.2s linear
}
.link_right a:hover{
color:darkgray;
transition: all 0.2s linear
}
.link_right a{
color:white;
text-decoration:none;
}
#container{
width: 40vw;
height: 30vw;
background: #FFFFFF;
border-radius: 0px;
margin:5vw auto;
word-wrap:break-word;
word-break:break-all;
box-shadow:0 3px 20px 0px rgba(0, 0, 0, 0.2);
animation:
fadein 0.8s ease-in-out;
}
@keyframes fadein {
0% { opacity: 0;}
100% { opacity: 1;}
}
#container input{
position: relative;
width:26vw;
height: 4vw;
line-height: 4vw;
font-size:16px;
padding:0 2vw 0 2vw;
margin: 2vh 5vw 2vh 5vw;
border:none;
background:#f2f2f2;
outline:none;
font-weight: bold;
font-family: A-OTF;
transition:0.4s;
}
#container input:focus{
transform:scaleX(1.02);
}
#container p{
padding:0;
margin: 0;
font-size:16px;
font-family: A-OTF;
line-height: 3vw;
text-align: center;
font-weight: bold;
}
#container p a{
color:#009fc4;
font-family: A-OTF;
text-decoration: none;
transition:0.2s;
}
#container p a:hover{
color:#222;
}
#toggle{
width: 40vw;
height: 5vw;
border-radius: 0px;
}
#log_btn{
width: 20vw;
height: 5vw;
border-radius: 0px;
border: none;
float:left;
transition: all 0.2s linear;
background: #ffffff;
font-size:16px;
font-family: A-OTF;
color: #505260;
font-weight: bold;
}
#reg_btn{
width: 20vw;
height: 5vw;
border-radius: 0px;
border: none;
float:left;
transition: all 0.2s linear;
background: #d2d8d8;
font-size:16px;
font-family: A-OTF;
color: #809191;
font-weight: bold;
}
#login{
width: 40vw;
height: fit-content;
border-radius: 0px;
display:block;
}
#register{
width: 40vw;
height: fit-content;
border-radius: 0px;
display:none;
}
#submit_btn{
width: 30vw;
height: 8vh;
margin: 2vh 5vw 2vh 5vw;
border-radius: 0px;
border: none;
float:left;
background: #009fc4;
color: white;
font-size:16px;
font-family: A-OTF;
font-weight: bold;
transition: all 0.2s linear
}
#submit_btn:hover{
background: #3ebed3;
transition: all 0.2s linear
}
</style>
</head>
<body>
<div class="nav">
<div class="link_left"><a href="#">KSE</a></div>
</div>
<div id="container">
<div id="toggle">
<button id="log_btn" onclick="login()">Log in</button>
<button id="reg_btn" onclick="register()">New account</button>
</div>
<div id="login">
<form method="post">
<p> </p>
<input name="logid" type="text" placeholder="Username"/>
<input name="logpwd" type="password" placeholder="Password"/>
<button id="submit_btn">Log in</button>
</form>
</div>
<div id="register">
<form method="post">
<p> </p>
<input name="regid" type="text" placeholder="Username"/>
<input name="regpwd1" type="password" placeholder="Password"/>
<input name="regpwd2" type="password" placeholder="Confirm password"/>
<button id="submit_btn">Create account</button>
</form>
</div>
</div>
<script type='text/javascript'>
function login(){
document.getElementById("log_btn").style.backgroundColor="#ffffff";
document.getElementById("log_btn").style.color="#505260";
document.getElementById("reg_btn").style.backgroundColor="#d2d8d8";
document.getElementById("reg_btn").style.color="#809191";
document.getElementById("register").style.display="none";
document.getElementById("login").style.display="block";
document.getElementById("container").style.height="30vw";
}
function register(){
document.getElementById("log_btn").style.backgroundColor="#d2d8d8";
document.getElementById("log_btn").style.color="#809191";
document.getElementById("reg_btn").style.backgroundColor="#ffffff";
document.getElementById("reg_btn").style.color="#505260";
document.getElementById("login").style.display="none";
document.getElementById("register").style.display="block";
document.getElementById("container").style.height="36vw";
}
</script>
</body>
</html>