From 67449d0fad252eeb82b826ff3899ece0e3c0ad25 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 5 Dec 2021 20:13:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20un-uglify=20the=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #8. --- static/prolefeeder.css | 32 ++++++++++++++ templates/base.html | 23 +++------- templates/download.html | 93 ++++++++++++++++++++--------------------- 3 files changed, 82 insertions(+), 66 deletions(-) create mode 100644 static/prolefeeder.css diff --git a/static/prolefeeder.css b/static/prolefeeder.css new file mode 100644 index 0000000..9536b17 --- /dev/null +++ b/static/prolefeeder.css @@ -0,0 +1,32 @@ +html, +body { + height: 100%; +} + +body { + display: flex; + + flex-direction: column; + + align-items: center; + justify-content: center; + + padding-top: 1rem; + padding-bottom: 1rem; + background-color: #B0C4DE; +} + +.container .form-download { + background-color: #f5f5f5; + + box-shadow: 5px 5px 5px grey; + border-radius: 3px; +} + +.form-download { + width: 100%; + max-width: 20rem; + margin: 0 auto; + + padding: 2rem; +} diff --git a/templates/base.html b/templates/base.html index 6b85bdf..1c3a8b5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,29 +4,16 @@ {% block head %} {{ super() }} + {% endblock %} {% block title %}Prolefeeder{% endblock %} {% block content %} -
-
-
- {% block page_header %}{% endblock %} -
-
-
-
- -
-
-
-{{ utils.render_messages() }} -
-
+
+ {{ utils.render_messages() }}
-
- {% block app_content %}{% endblock %} -
+{% block app_content %}{% endblock %} + {% endblock %} diff --git a/templates/download.html b/templates/download.html index f1a7f0c..b131e1d 100644 --- a/templates/download.html +++ b/templates/download.html @@ -17,62 +17,59 @@ crossorigin="anonymous" referrerpolicy="no-referrer" /> {% endblock %} -{% block page_header %} -

Sendungsmitschnitt herunterladen

-{% endblock %} {% block app_content %} -
-
-
- -
- - {{ form.hidden_tag() }} - - {{ wtf.form_errors(form, hiddens="only") }} - -
- {{ form.start_time.label() }} -
- -
-
-
-
- {% if form.start_time.errors %} -
{{ form.start_time.errors|join("
")|safe }}
- {% endif %} -
+
+ -
- {{ form.length.label() }} -
- {{ form.length(class_="form-control " + ("is-invalid" if form.length.errors else "")) }} -
- Minuten -
- {% if form.length.errors %} -
{{ form.length.errors|join("
")|safe }}
- {% endif %} -
-
+
+

Sendungsmitschnitt herunterladen

+
- {{ form.submit(class_="btn btn-primary") }} +{{ form.hidden_tag() }} - +{{ wtf.form_errors(form, hiddens="only") }} +
+ {{ form.start_time.label() }} +
+ +
+
-
+
+ {% if form.start_time.errors %} +
{{ form.start_time.errors|join("
")|safe }}
+ {% endif %} +
+ +
+ {{ form.length.label() }} +
+ {{ form.length(class_="form-control " + ("is-invalid" if form.length.errors else "")) }} +
+ Minuten +
+ {% if form.length.errors %} +
{{ form.length.errors|join("
")|safe }}
+ {% endif %} +
+
+ +{{ form.submit(class_="btn btn-primary btn-block mt-4") }} + + +
+ {% endblock %} {% block scripts %}