From 3f1cdf10c4b986d0ac9b0d0eaf4cc0312eeba063 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 23 Jun 2024 04:12:40 -0500 Subject: Working footer - but still overlapping body --- .gitignore | 1 + VERSION | 2 +- server.py | 3 ++- static/style.css | 33 +++++++++++++++++++++++++++++++++ templates/layout.html | 18 ++++++------------ 5 files changed, 43 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 355a0c3..eb52520 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .key +minipubmed/ diff --git a/VERSION b/VERSION index a7ee35a..65d5469 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.8.3 +1.8.4-pre1 diff --git a/server.py b/server.py index ae9ffc3..d691dd9 100755 --- a/server.py +++ b/server.py @@ -24,7 +24,8 @@ from flask import (Flask, Response, flash, jsonify, redirect, render_template, from flask_sqlalchemy import SQLAlchemy from numpy import array -nltk.download('punkt') +# nltk.download('punkt') -- let's not just download data + import pickle from collections import Counter from datetime import datetime diff --git a/static/style.css b/static/style.css index d4cc2ee..47b0e22 100644 --- a/static/style.css +++ b/static/style.css @@ -72,3 +72,36 @@ a:active { ul { margin-left:40px; } + +.main { + flex: 1; + padding: 30px 0; +} + +body +{ + display: flex; + min-height: 80vh; + flex-direction: column; + padding-bottom: 40px; +} + +footer { + color: white; + font-size: small; + padding: 3px 0; + position: absolute; + left: 0; + bottom: 0; + width: 100%; +} + +.footer a { + color: yellow; + text-decoration: none; + transition: color 0.3s ease; +} + +.footer a:hover { + color: #adb5bd; +} diff --git a/templates/layout.html b/templates/layout.html index fafbae9..ba064e1 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -91,30 +91,24 @@ {% endwith %}
-
+
{% block content %}{% endblock %}
- -- cgit v1.2.3