diff --git a/verse/start.py b/verse/start.py index cac1ec7..71cd405 100644 --- a/verse/start.py +++ b/verse/start.py @@ -61,10 +61,10 @@ def session_handler(): @APP.route("/") def index(): users = User.query.filter(User.distribusiname.isnot(None)).all() - distribusinames = [] + distribusies = {} for user in users: - distribusinames.append(user.distribusiname) - return render_template("index.html", distribusinames=distribusinames) + distribusies.update({user.email: user.distribusiname}) + return render_template("index.html", distribusies=distribusies) @APP.route("/login", methods=["GET", "POST"]) diff --git a/verse/static/css/editor.css b/verse/static/css/editor.css index 5241df7..b764e96 100644 --- a/verse/static/css/editor.css +++ b/verse/static/css/editor.css @@ -1,24 +1,29 @@ .editareas { - width: 100%; margin: auto; display: flex; justify-content: flex-start; } .editarea { - border: 1px solid #E0B0FF; + width: 30%; + border: 3px solid #E0B0FF; + border-style: outset; margin-right: 1em; + margin-left: 0; } .editor { - min-width: 40%; + min-width: 35%; +} +.editform { + width: 100%%; + margin: 0 auto; } textarea { width: 100%; - height: 100%; + height: 100%; box-sizing: border-box; min-height: 250px; - overflow: scroll; background: #E0B0FF; outline: none; font-family: Courier, sans-serif; diff --git a/verse/static/css/style.css b/verse/static/css/style.css index 44f8073..c269892 100644 --- a/verse/static/css/style.css +++ b/verse/static/css/style.css @@ -3,6 +3,7 @@ body font-family: monospace; background-color: #383C4A; color:#E0B0FF; + word-wrap: break-word; } div#login{ @@ -21,7 +22,7 @@ div#login form { } input[type=text], input[type=password], input[type=file]{ - background-color: #383C4A; + background-color: #2D3039; color: white; border: 1px solid #E0B0FF; } @@ -38,6 +39,7 @@ div#upload form { background-color:#383C4A; text-decoration: none; scroll-behavior: smooth; + border-style: outset; } #mainworkflow { @@ -87,7 +89,7 @@ input:hover { input[type="submit"]:disabled:hover, input[type="submit"]:disabled, input[type="submit"]:disabled:focus { - background: #777777; + background-color: #2D3039; color: #d28cff; } @@ -110,6 +112,38 @@ a:hover { a:active { color: white; } +/* STOLEN GOODS */ +#fancyboi::before { + content: "$ "; +} +@media (prefers-reduced-motion: no-preference) { + @keyframes flash { + 50% { opacity: 0; } + } + @keyframes reveal { + from { width: 2em; } /* Width of ::before */ + to { width: 55%; } + } + #fancyboi { + width: 55%; + padding: 0.5em; + overflow: hidden; + white-space: nowrap; + animation: reveal 4s linear; + text-overflow: "█"; + background-color: #2D3039; + } + #fancyboi::after { + content: "█"; + animation: flash 0.5s step-end infinite; + } +} +div.maincontent{ + width: 55%; + border: 3px solid #E0B0FF; + padding: 0.5em; + border-style: outset; +} /* Project colors so far. light diff --git a/verse/templates/editor.html b/verse/templates/editor.html index f59ef2f..4346feb 100644 --- a/verse/templates/editor.html +++ b/verse/templates/editor.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% block main %} -