From 0af2607344be48ae974ba722174fa3fcb6bed655 Mon Sep 17 00:00:00 2001 From: Ferenc Schulcz <schulcz.ferenc@gmail.com> Date: Thu, 17 Oct 2024 22:08:06 +0200 Subject: [PATCH] Move deeper out of main framework --- router.py | 5 ----- static/deeper_style.css | 36 ----------------------------- templates/deeper.html | 50 ----------------------------------------- templates/login.html | 4 ++-- 4 files changed, 2 insertions(+), 93 deletions(-) delete mode 100644 static/deeper_style.css delete mode 100644 templates/deeper.html diff --git a/router.py b/router.py index 4a9e107..79645c9 100644 --- a/router.py +++ b/router.py @@ -211,11 +211,6 @@ def logout(): return redirect(url_for('index')) -@app.route('/deeper') -def deeper(): - return render_template('deeper.html') - - @app.route('/cordatus') def cordatus(): return render_template('cordatus.html') diff --git a/static/deeper_style.css b/static/deeper_style.css deleted file mode 100644 index 459a675..0000000 --- a/static/deeper_style.css +++ /dev/null @@ -1,36 +0,0 @@ -#chat { - display: flex; - flex-direction: column; - max-width: 600px; -} - -.slim_container { - max-width: 550px; -} - -p { - color: white; - padding: 0.5rem 2rem; - border-radius: 2rem; - width: max-content; - margin: 0.3rem; - max-width: 100%; - display: none; -} - -.shown { - display: block; -} - -.received { - background-color: #565756; - border-radius: 2rem 2rem 2rem 0; - align-self: flex-start; -} - -.sent { - background-color: #8BC34A; - border-radius: 2rem 2rem 0 2rem; - text-align: right; - align-self: flex-end; -} \ No newline at end of file diff --git a/templates/deeper.html b/templates/deeper.html deleted file mode 100644 index 55b1af8..0000000 --- a/templates/deeper.html +++ /dev/null @@ -1,50 +0,0 @@ -{% extends 'base.html' %} - -{% block title %}Going deeper{% endblock %} -{% block head_extensions %} -<link rel="stylesheet" href="{{ url_for('static', filename='deeper_style.css') }}">{% endblock %} - -{% block content %} - -<script> - function showtime() { - x = document.querySelectorAll(".button"); - x[0].style.display = "none"; - var x, i; - x = document.querySelectorAll("p"); - i = 0; - var y = setInterval(function () { - x[i].classList.add("shown"); - i += 1; - }, 1200); - } -</script> - -<div id='cover'></div> - -<div class="slim_container"> - <h1>Sure want to go deeper?</h1> - <div id="chat"> - <a href="#" class="button" onclick="showtime()" - style="display: block; margin: auto; max-width: 20rem; text-align: center;">Yes</a> - <p class="received">I'm glad you had the courage.</p> - <p class="sent">What's this?</p> - <p class="sent">Who are you?</p> - <p class="received">I'm the one behind the Fabric.</p> - <p class="sent">The Fabric?</p> - <p class="received">The system behind everything you know.</p> - <p class="received">Everything you see.</p> - <p class="received">Everything you have ever experienced.</p> - <p class="received">Your whole world is a simulation.</p> - <p class="received">The Fabric simulates it.</p> - <p class="sent">So... I'm a simulated mind?</p> - <p class="received">No. It's more like the <a href="https://en.wikipedia.org/wiki/The_Matrix">Matrix</a>, if you - know it.</p> - <p class="received">Your friends aren't simulated, too.</p> - <p class="sent">Is there a way out?</p> - <p class="received">Only for <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">t</a>hose the most eager and - observant.</p> - </div> -</div> - -{% endblock %} \ No newline at end of file diff --git a/templates/login.html b/templates/login.html index 54c91a7..ea9a38d 100644 --- a/templates/login.html +++ b/templates/login.html @@ -38,7 +38,7 @@ <h1>You're already logged in.</h1> <h2>Want to go deeper?</h2> - <a href="{{ url_for('deeper') }}" class="button" + <a href="{{ url_for('service', servicename='deeper') }}" class="button" style="display: block; margin: auto; max-width: 20rem; text-align: center;">Yes</a> {% else %} @@ -67,4 +67,4 @@ {% endif %} -{% endblock %} +{% endblock %} \ No newline at end of file -- GitLab