Skip to content

Commit 9b7a203

Browse files
committed
Make login page pretty
1 parent e44ac0a commit 9b7a203

File tree

3 files changed

+47
-21
lines changed

3 files changed

+47
-21
lines changed

src/browser/pages/global.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body,
77
}
88

99
body {
10-
background: #272727;
10+
background: rgb(244, 247, 252);
1111
color: #f4f4f4;
1212
margin: 0;
1313
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",

src/browser/pages/login.css

+43-16
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,48 @@
1+
body {
2+
overflow: auto;
3+
}
4+
.center-container {
5+
width: 100vw;
6+
height: 100vh;
7+
padding: 20px 40px;
8+
min-height: 400px;
9+
}
10+
111
.login-form {
2-
align-items: center;
3-
background: #fcfcfc;
4-
border-radius: 10px;
5-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
12+
border-radius: 5px;
13+
box-shadow: rgba(60, 66, 87, 0.117647) 0px 7px 14px 0px, rgba(0, 0, 0, 0.117647) 0px 3px 6px 0px;
614
color: rgba(0, 0, 0, 0.37);
715
display: flex;
816
flex-direction: column;
917
flex: 1;
10-
height: 100%;
1118
justify-content: center;
12-
max-height: 400px;
13-
max-width: 664px;
14-
padding: 20px;
19+
padding: 20px 40px;
1520
position: relative;
16-
width: 100%;
21+
22+
height: 300px;
23+
min-width: 320px;
24+
max-width: 500px;
25+
}
26+
27+
.main {
28+
font-size: 40px;
1729
}
1830

1931
.login-form > .header {
2032
align-items: center;
21-
color: #b6b6b6;
22-
margin-bottom: 1rem;
33+
color: black;
34+
}
35+
36+
.login-form > .header > .sub {
37+
margin-top: 10px;
2338
}
2439

2540
.login-form > .field {
41+
margin-top: 40px;
2642
display: flex;
2743
flex-direction: row;
2844
width: 100%;
45+
height: 50px;
2946
}
3047

3148
.login-form > .error {
@@ -34,20 +51,30 @@
3451
}
3552

3653
.login-form > .field > .password {
37-
border: 1px solid #b6b6b6;
54+
border: 1px solid #ddd;
55+
background: rgb(244, 247, 252);
3856
box-sizing: border-box;
3957
padding: 1rem;
4058
flex: 1;
59+
font-size: 20px;
60+
border-radius: 5px;
61+
color: black;
62+
min-width: 100px;
4163
}
4264

4365
.login-form > .user {
4466
display: none;
4567
}
4668

4769
.login-form > .field > .submit {
48-
background-color: transparent;
49-
border: 1px solid #b6b6b6;
70+
font-size: 20px;
71+
border: none;
5072
box-sizing: border-box;
51-
margin-left: -1px;
52-
padding: 1rem 2rem;
73+
margin-left: 20px;
74+
75+
background-color: rgb(87, 114, 245);
76+
color: white;
77+
font-family: monospace;
78+
padding: 10px 20px;
79+
border-radius: 5px;
5380
}

src/browser/pages/login.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@
3838
onfocus="const value=this.value;this.value='';this.value=value;"
3939
class="password"
4040
type="password"
41-
placeholder="password"
41+
placeholder="PASSWORD"
4242
name="password"
4343
autocomplete="current-password"
4444
/>
45-
<button class="submit" type="submit">
46-
Log In
47-
</button>
45+
46+
<input class="submit" value="SUBMIT" type="submit" />
4847
</div>
4948
{{ERROR}}
5049
</form>

0 commit comments

Comments
 (0)