From afc5d4f9b6d7e5dffcded802552d817ccfbfb960 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Wed, 6 Apr 2022 11:24:44 -0500 Subject: Update layout --- app/templates/base/form.html | 52 +++++++++---------- app/templates/base/layout.html | 113 ++++++++++++++++++++++++----------------- app/templates/index.html | 27 ++++------ 3 files changed, 101 insertions(+), 91 deletions(-) (limited to 'app/templates') diff --git a/app/templates/base/form.html b/app/templates/base/form.html index 22f926b..9f356e0 100644 --- a/app/templates/base/form.html +++ b/app/templates/base/form.html @@ -1,37 +1,31 @@ {% extends 'base/layout.html' %} {% block content %} -
-
-
-
-
-
-

{% block title %}{% endblock %}

+
+
+
+

{% block title %}{% endblock %}

- - {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - {% for category, message in messages %} - {% if category == "message" %} -
- {% else %} -
- {% endif %} - {{ message }} -
- {% endfor %} - {% endif %} - {% endwith %} - -
- {{ form.csrf_token }} - {% block form %}{% endblock %} -
+ + {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + {% for category, message in messages %} + {% if category == "message" %} +
+ {% else %} +
+ {% endif %} + {{ message }}
-
+ {% endfor %} + {% endif %} + {% endwith %} + +
+ {{ form.csrf_token }} + {% block form %}{% endblock %} +
-
-
+ {% endblock %} diff --git a/app/templates/base/layout.html b/app/templates/base/layout.html index 8e2b979..d33515e 100644 --- a/app/templates/base/layout.html +++ b/app/templates/base/layout.html @@ -18,65 +18,86 @@ Strenghty 💪 - - - {% block content %}{% endblock %} +
+ {% block content %}{% endblock %} +
+ diff --git a/app/templates/index.html b/app/templates/index.html index e3bf978..b48ce9f 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -2,22 +2,17 @@ {% block content %} -
-
-
-
-

- Welcome to Strengthy -

-

- Strenghty is an open source fitness tracking application that - helps users meet their fitness goals. To get started, - Sign Up to create an account. -

-
-
+
+
+

+ Welcome to Strengthy +

+

+ Strenghty is an open source fitness tracking application that + helps users meet their fitness goals. To get started, + Sign Up to create an account. +

- -
+ {% endblock %} -- cgit v1.2.3