diff --git a/auth.py b/auth.py index c0263cf..1e19365 100644 --- a/auth.py +++ b/auth.py @@ -71,6 +71,7 @@ def logout(): @app.route("/auth/login", methods=['GET', 'POST']) def login(): sessioninfo = get_session(request) + time.sleep(3) if sessioninfo: uid = sessioninfo[0] diff --git a/static/css/main.css b/static/css/main.css index b53101b..852391b 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -34,6 +34,20 @@ hr { .entry img { max-width: 100%; } +#loading { + background-color: #fff9; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-content: center; + transition: background-color 5s; + transition-timing-function: ease-in; } + form { display: flex; flex-direction: column; } diff --git a/static/css/main.scss b/static/css/main.scss index ea23023..9aeb489 100644 --- a/static/css/main.scss +++ b/static/css/main.scss @@ -48,6 +48,23 @@ hr { } } +#loading { + // background-image: url('/static/spinner.gif'); + background-color: #fff9; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-content: center; + transition: background-color 5s; + transition-timing-function: ease-in; +} + + // // @font-face { // // font-family: 'avenir'; // // src: url('/static/avenir-font/AvenirLTStd-Medium.otf'); @@ -197,22 +214,6 @@ form { // } // } -// .loading { -// // background-image: url('/static/spinner.gif'); -// background-color: #fffa; -// position: absolute; -// top: 0; -// left: 0; -// right: 0; -// bottom: 0; -// display: flex; -// flex-direction: column; -// justify-content: center; -// align-content: center; -// transition: background-color 5s; -// transition-timing-function: ease-in; -// } - // .post { // border: 1px solid black; // padding: 15px 15px; diff --git a/static/js/main.js b/static/js/main.js index 7e57cd3..88b1ab4 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1,5 +1,5 @@ $(() => { - $('#auth-visible').hide() + // $('#auth-visible').hide() // Startdatum festlegen (Beispiel: 1. Januar 2025, 00:00:00 Uhr) diff --git a/templates/auth/login.html b/templates/auth/login.html index 5ee45d3..58e1fc1 100644 --- a/templates/auth/login.html +++ b/templates/auth/login.html @@ -1,5 +1,5 @@

Einloggen

-
+

diff --git a/templates/baseof.html b/templates/baseof.html index 8904ce6..9409e82 100644 --- a/templates/baseof.html +++ b/templates/baseof.html @@ -27,12 +27,12 @@
-
+

Kontrollverlust

Verbuggte scheise hier. Komm hack mich doch, trau dich!
-
+
{% block content %}{% endblock %}