From 647980b72efc93fa4e395f5d57839ee360f80984 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 6 May 2024 21:23:12 +0200 Subject: [PATCH] added login and register buttons it is really bad but gonna make it cool as fuck --- index.php | 21 ++++++++++++++++++++- res/index/script.js | 12 ++++++++++++ res/index/style.css | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 1b7509c..5e62bdf 100644 --- a/index.php +++ b/index.php @@ -23,10 +23,29 @@ - +
+ + +
Slideshow
+ +
+
+
Uživatelské jméno:
+
Heslo:
+
+
+
+ + diff --git a/res/index/script.js b/res/index/script.js index 64be7ba..576e4e2 100644 --- a/res/index/script.js +++ b/res/index/script.js @@ -34,4 +34,16 @@ function change_slideshow_img() function repeat_panorama() { setInterval(change_slideshow_img, 3000); +} + +function show_login() +{ + document.getElementById("sub_btn").value = "Přihlásit se"; + document.getElementById("login_pane").style.visibility = "visible"; +} + +function show_register() +{ + document.getElementById("sub_btn").value = "Registrovat se"; + document.getElementById("login_pane").style.visibility = "visible"; } \ No newline at end of file diff --git a/res/index/style.css b/res/index/style.css index f1733ad..67ef063 100644 --- a/res/index/style.css +++ b/res/index/style.css @@ -54,4 +54,39 @@ body right: 0vh; border-top-left-radius: 0.7vh; filter: drop-shadow(-0.5vh -0.5vh 1vh black); +} + +#login_pane +{ + position: relative; + visibility: hidden; + + display: flex; + flex-direction: column; + align-items:center; + + width: fit-content; + height: auto; + margin: 0 auto; + padding: 5vh; + position: relative; + + border: solid 1px black; + border-radius: 0.5vh 0.5vh; + background: #6F7270; +} + +#login_pane * +{ + padding: 1vh; +} + +#sub_btn_div +{ + padding-top: 7vh; +} + +#login_buttons * +{ + width: 17vh; } \ No newline at end of file