From ebaea9701e286fabeb9418c118498f77da15441b Mon Sep 17 00:00:00 2001 From: stilbruch Date: Wed, 6 Apr 2022 00:26:15 -0500 Subject: Add new image background and index page --- app/static/css/style.css | 12 +++++++++++ app/static/img/index.jpg | Bin 0 -> 3540381 bytes app/templates/base/form.html | 44 ++++++++++++++++++++--------------------- app/templates/base/layout.html | 3 +++ app/templates/index.html | 20 ++++++++++++++++++- 5 files changed, 56 insertions(+), 23 deletions(-) create mode 100644 app/static/img/index.jpg diff --git a/app/static/css/style.css b/app/static/css/style.css index e69de29..497a2bf 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -0,0 +1,12 @@ +.gym-background { + background: linear-gradient( + rgba(0, 0, 0, 0.7), + rgba(0, 0, 0, 0.7) + ), url('/static/img/index.jpg') no-repeat center center fixed; + + /* background: url('/static/img/index.jpg') no-repeat center center fixed; */ + -webkit-background-size: cover; + -moz-background-size: cover; + -o-background-size: cover; + background-size: cover; +} diff --git a/app/static/img/index.jpg b/app/static/img/index.jpg new file mode 100644 index 0000000..5c0809d Binary files /dev/null and b/app/static/img/index.jpg differ diff --git a/app/templates/base/form.html b/app/templates/base/form.html index 8423a0c..22f926b 100644 --- a/app/templates/base/form.html +++ b/app/templates/base/form.html @@ -2,17 +2,17 @@ {% block content %}
-
-
-
-
-
-

{% block title %}{% endblock %}

+
+
+
+
+
+

{% block title %}{% endblock %}

- - {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - {% for category, message in messages %} + + {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + {% for category, message in messages %} {% if category == "message" %}
{% else %} @@ -20,18 +20,18 @@ {% endif %} {{ message }}
- {% endfor %} - {% endif %} - {% endwith %} + {% endfor %} + {% endif %} + {% endwith %} -
- {{ form.csrf_token }} - {% block form %}{% endblock %} -
-
-
-
-
-
+
+ {{ form.csrf_token }} + {% block form %}{% endblock %} +
+
+
+
+
+
{% endblock %} diff --git a/app/templates/base/layout.html b/app/templates/base/layout.html index e3607cb..4b83110 100644 --- a/app/templates/base/layout.html +++ b/app/templates/base/layout.html @@ -8,6 +8,9 @@ + + + diff --git a/app/templates/index.html b/app/templates/index.html index 04b89ef..e3bf978 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,5 +1,23 @@ {% extends 'base/layout.html' %} {% block content %} - Index Page + +
+
+
+
+

+ 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