Skip to content

Commit 6f93ca4

Browse files
committed
Use contours on all login pages
1 parent c887d61 commit 6f93ca4

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

public/images/contours.png

183 KB
Loading

public/login.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
src: url(/public/fonts/sourcesanspro/SourceSansPro-Regular.ttf);
44
}
55

6-
body,
76
html {
7+
padding: 0;
8+
margin: 0;
9+
}
10+
11+
body {
12+
background-image: url(/public/images/contours.png);
813
font-family: "Source Sans Pro", sans-serif;
914
background-color: #1a1a1a;
1015
padding: 0;
@@ -202,4 +207,4 @@ img {
202207
#toggle:hover {
203208
background: #08aeea;
204209
color: white;
205-
}
210+
}

public/login.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ function login() {
8989
}
9090
}
9191
function toggle() {
92-
if (toggleState == "login") {
92+
if (toggleState === "login") {
9393
document.getElementById("container").style.height = "635px";
9494
document.getElementById("login").innerHTML = "Sign Up";
95+
document.getElementById("toggle").innerHTML = "Or Log In";
9596

9697
document.getElementById("email_label").style.display = "block";
9798

@@ -105,7 +106,8 @@ function toggle() {
105106
toggleState = "signup";
106107
} else {
107108
document.getElementById("container").style.height = "440px";
108-
document.getElementById("login").innerHTML = "Sign In";
109+
document.getElementById("login").innerHTML = "Log In";
110+
document.getElementById("toggle").innerHTML = "Or Sign Up";
109111

110112
document.getElementById("email_label").style.display = "none";
111113

public/resetPassword.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
src: url(/public/fonts/sourcesanspro/SourceSansPro-Regular.ttf);
44
}
55

6-
body,
76
html {
7+
padding: 0;
8+
margin: 0;
9+
}
10+
11+
body {
12+
background-image: url(/public/images/contours.png);
813
font-family: "Source Sans Pro", sans-serif;
914
background-color: #1a1a1a;
1015
padding: 0;

views/login.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ html(lang='en')
1616
span#msg.error
1717
form.box(name='form1')
1818
h4
19-
| Sign in
19+
| Log in
2020
span to your account.
2121
h5 If you do not have an account,<br>sign up or request one from your administrator.
2222
label#username_label(for="username" style="position: absolute; color: #a1a4ad; top: 203px; left: 50%; transform: translateX(-50%); background: #1c1c1c; border-radius: 10px; font-size: 14px; width: 100px; text-align: center;") Username
@@ -29,7 +29,7 @@ html(lang='en')
2929
div#pwd_description Must be at least 8 characters long and contain at least: 1 uppercase letter, 1 lowercase letter, 1 number and 1 symbol.
3030
label#pwd_retype_label(for="pwd_retype" style="position: absolute; color: #a1a4ad; top: 464px; left: 50%; transform: translateX(-50%); background: #1c1c1c; border-radius: 10px; font-size: 14px; width: 120px; text-align: center;") Retype Password
3131
input#pwd_retype(type='password' name='password' placeholder='Retype Password' autocomplete='off')
32-
div#login.btn1(onClick='login()' title='Log in to MMGIS!') Sign in
32+
div#login.btn1(onClick='login()' title='Log in to MMGIS!') Log In
3333
div#toggleWrapper
3434
div#toggle(onClick='toggle()') Or Sign Up
3535
.footer(style='position: absolute; bottom: 0; padding: 44px; box-sizing: border-box; width: 100%; color: #adadad; font-size: 14px; display: flex; justify-content: flex-end; text-align: end;')

0 commit comments

Comments
 (0)