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 %}