From a3b88dba8dcc494cca74bbd13a6fc57090518be2 Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Sun, 3 Oct 2021 22:33:53 +0800 Subject: [PATCH] Change UI --- static/allpages.css | 25 ++++++++++ templates/chgPassword.html | 74 +++++++++++++++++++++++------- templates/forgotPassword.html | 9 ++-- templates/group_teach.html | 2 +- templates/homeroom.html | 2 +- templates/login.html | 39 ++++++++++++---- templates/selSubUser.html | 5 +- templates/verifiedChgPassword.html | 32 +++++++++++-- 8 files changed, 151 insertions(+), 37 deletions(-) diff --git a/static/allpages.css b/static/allpages.css index 54e3bfe..372ca1e 100644 --- a/static/allpages.css +++ b/static/allpages.css @@ -5,6 +5,11 @@ body { font-family: "Lato", "Noto Sans TC", "Microsoft JhengHei", "sans-serif"; } +select option { + font-family: "Font Awesome 5 Free", "Lato", "Noto Sans TC", "Microsoft JhengHei", "sans-serif"; + font-weight: 900; +} + div.col .row .col { border: 1px solid black; display: inline-block; @@ -149,4 +154,24 @@ div.showTime { color: rgb(160, 160, 160); font-size: 0.7524em; margin-bottom: 20px; +} + +.input-group-prepend .input-group-text, .input-group-append .input-group-text { + padding: 12px; +} + +.toggle-password { + cursor: pointer; +} + +label { + text-align: left; +} + +.input-group.hasSmall { + margin-bottom: 0 !important; +} + +#chgPasswordForm .form-group { + margin-bottom: 0 !important; } \ No newline at end of file diff --git a/templates/chgPassword.html b/templates/chgPassword.html index 220349f..9433d16 100644 --- a/templates/chgPassword.html +++ b/templates/chgPassword.html @@ -24,6 +24,7 @@ margin-bottom: 30px !important; } + @@ -34,28 +35,39 @@
-
-
-
+ +
+
+
+ +
+ + + + +
-
- -
-
+
+
+
+
-
-
-
+
+
+
+ +
+ + + + +
-
+ 6 characters + minimum.
@@ -97,6 +109,34 @@ $('.container').hide(); $('#loading').show(); } + } + + function password_show_hide(num) { + var x = ''; + var show_eye = ''; + var hide_eye = ''; + if (num == 1) { + x = document.getElementById("password"); + show_eye = document.getElementById("old_show_eye"); + hide_eye = document.getElementById("old_hide_eye"); + } + else { + x = document.getElementById("new_password"); + show_eye = document.getElementById("new_show_eye"); + hide_eye = document.getElementById("new_hide_eye"); + } + hide_eye.classList.remove("d-none"); + if (x.type === "password") { + x.type = "text"; + show_eye.style.display = "none"; + hide_eye.style.display = "block"; + } else { + x.type = "password"; + show_eye.style.display = "block"; + hide_eye.style.display = "none"; + } + } + diff --git a/templates/forgotPassword.html b/templates/forgotPassword.html index b7142d3..01d56d8 100644 --- a/templates/forgotPassword.html +++ b/templates/forgotPassword.html @@ -19,6 +19,7 @@ gtag('config', 'G-H6D61RSBHR'); + @@ -30,11 +31,11 @@
-
-
+
+
+
-
+
diff --git a/templates/group_teach.html b/templates/group_teach.html index 1d5ba42..1ed3e4f 100644 --- a/templates/group_teach.html +++ b/templates/group_teach.html @@ -29,7 +29,7 @@

{{cclass['category']}}: {{cclass['class_id']}}: {{cclass['name']}}

[{{currDate}}]

- + {% for date in absData %} diff --git a/templates/login.html b/templates/login.html index d3176a0..329b0ce 100644 --- a/templates/login.html +++ b/templates/login.html @@ -19,6 +19,7 @@ gtag('config', 'G-H6D61RSBHR'); + @@ -30,17 +31,24 @@
-
-
+
+
+
-
+
-
-
+
+
+ +
+ +
+ + + +
-
@@ -75,6 +83,21 @@ $('.container').hide(); $('#loading').show(); } + function password_show_hide() { + var x = document.getElementById("password"); + var show_eye = document.getElementById("show_eye"); + var hide_eye = document.getElementById("hide_eye"); + hide_eye.classList.remove("d-none"); + if (x.type === "password") { + x.type = "text"; + show_eye.style.display = "none"; + hide_eye.style.display = "block"; + } else { + x.type = "password"; + show_eye.style.display = "block"; + hide_eye.style.display = "none"; + } + } diff --git a/templates/selSubUser.html b/templates/selSubUser.html index 9185b96..7e07d0f 100644 --- a/templates/selSubUser.html +++ b/templates/selSubUser.html @@ -31,11 +31,12 @@ +
+ + + + +
-
+ 6 characters + minimum.
@@ -64,6 +73,21 @@ $('.container').hide(); $('#loading').show(); } + function password_show_hide() { + var x = document.getElementById("password"); + var show_eye = document.getElementById("show_eye"); + var hide_eye = document.getElementById("hide_eye"); + hide_eye.classList.remove("d-none"); + if (x.type === "password") { + x.type = "text"; + show_eye.style.display = "none"; + hide_eye.style.display = "block"; + } else { + x.type = "password"; + show_eye.style.display = "block"; + hide_eye.style.display = "none"; + } + }