From c5d2fc3391fcc20355fc3b5268ada707f207edda Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Fri, 20 Nov 2020 00:19:39 +0100 Subject: [PATCH] added proper OCW branding, added description --- front/src/index.ts | 5 +++-- front/src/style.scss | 11 +++++++++++ webroot/index.html | 38 ++++++++++++++++++++++---------------- webroot/ocw.png | Bin 0 -> 10037 bytes 4 files changed, 36 insertions(+), 18 deletions(-) create mode 100644 webroot/ocw.png diff --git a/front/src/index.ts b/front/src/index.ts index 583a3d9..d153df4 100644 --- a/front/src/index.ts +++ b/front/src/index.ts @@ -193,7 +193,7 @@ const request = (resource: string, data: any) => break; case -1: // not logged in - showElements([".login-box", ".register-box"]); + showElements([".login-box", ".register-box", ".description"]); hideElements([".mail-box", ".sms-box", ".package-list", ".logout-button"]); break; case -2: @@ -393,7 +393,7 @@ window.addEventListener("load", () => { }).then((res) => { if (res.status == 200) { refreshPackages().then(() => { - hideElements([".login-box", ".register-box"]); + hideElements([".login-box", ".register-box", ".description"]); showElements([".package-list", ".logout-button"]); }); } else { @@ -493,6 +493,7 @@ window.addEventListener("load", () => { // logged in, verified e-mail and phone, res is the package list refreshPackages(res); showElements([".package-list", ".logout-button"]); + hideElements([".description"]); // just to be sure localStorage.removeItem("phone"); } diff --git a/front/src/style.scss b/front/src/style.scss index 92301da..b3f8cf5 100644 --- a/front/src/style.scss +++ b/front/src/style.scss @@ -10,6 +10,7 @@ $family-sans-serif: BlinkMacSystemFont, -apple-system, sans-serif; @import "../node_modules/bulma/sass/elements/button.sass"; @import "../node_modules/bulma/sass/elements/container.sass"; @import "../node_modules/bulma/sass/elements/table.sass"; +@import "../node_modules/bulma/sass/elements/title.sass"; @import "../node_modules/bulma/sass/elements/other.sass"; @import "../node_modules/bulma/sass/form/shared.sass"; @import "../node_modules/bulma/sass/form/input-textarea.sass"; @@ -49,3 +50,13 @@ $family-sans-serif: BlinkMacSystemFont, -apple-system, sans-serif; .details-text tr td:first-child() { font-weight: bold; } + +.description { + margin-top: 25px; +} +.paragraph { + margin-top: 10px; +} +.navbar-item > img { + max-height: 2rem; +} diff --git a/webroot/index.html b/webroot/index.html index 580d4a5..7aeb348 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -7,25 +7,31 @@ -
- +
+
+
Welcome to OCW!
+

OCW (Otwarty Czapkomat Mobilny) is an open-source webapp, made for easy opening of Czapkomat compartments. It's free, easy to use, and we collect minimal required data (your username, e-mail and necessary API tokens - not even your phone number*)

+

Made by selfisekai and sdomi. Please note that this is still Work in Progress.

+
+