From dde5be86570399a2b3dc4fbcf2da96ccd9f5af87 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Tue, 31 Dec 2019 00:28:00 +0000 Subject: [PATCH] - add sticky-footer with link to bugs/suggestions --- aprendizations/__init__.py | 2 +- aprendizations/static/css/sticky-footer-navbar.css | 19 +++++++++++++++++++ aprendizations/templates/courses.html | 19 +++++++++++++++---- aprendizations/templates/topic.html | 2 +- package-lock.json | 70 +++++++++------------------------------------------------------------- package.json | 7 +++---- 6 files changed, 48 insertions(+), 71 deletions(-) create mode 100644 aprendizations/static/css/sticky-footer-navbar.css diff --git a/aprendizations/__init__.py b/aprendizations/__init__.py index 4055c85..2dc286e 100644 --- a/aprendizations/__init__.py +++ b/aprendizations/__init__.py @@ -30,7 +30,7 @@ are progressively uncovered as the students progress. ''' APP_NAME = 'aprendizations' -APP_VERSION = '2019.12.dev2' +APP_VERSION = '2019.12.dev3' APP_DESCRIPTION = __doc__ __author__ = 'Miguel Barão' diff --git a/aprendizations/static/css/sticky-footer-navbar.css b/aprendizations/static/css/sticky-footer-navbar.css new file mode 100644 index 0000000..487619f --- /dev/null +++ b/aprendizations/static/css/sticky-footer-navbar.css @@ -0,0 +1,19 @@ +/* Sticky footer styles */ + +html { + position: relative; + min-height: 100%; +} + +body { + margin-bottom: 60px; +} + +.footer { + position: absolute; + bottom: 0; + width: 100%; + height: 30px; /* Set the fixed height of the footer here */ + line-height: 30px; /* Vertically center the text there */ + background-color: #f5f5f5; +} diff --git a/aprendizations/templates/courses.html b/aprendizations/templates/courses.html index 73898be..3a91567 100644 --- a/aprendizations/templates/courses.html +++ b/aprendizations/templates/courses.html @@ -12,6 +12,7 @@ + @@ -53,8 +54,8 @@
-
- {% for k,v in courses.items() %} +
+ {% for k,v in courses.items() %}
- {% end %} + {% end %}
- + + +