From b45aa135b5a49a70e6c80df6ed53a1444c58fae0 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Mon, 5 Oct 2015 13:52:19 +0100 Subject: [PATCH] Added footer to homepage. Moved common html components to template. --- static/style.css | 4 ++++ templates/layout.html | 46 ++++++++++++++++++++++++++++++++++++++++++ templates/quiz.html | 39 +++-------------------------------- templates/welcome.html | 38 +++------------------------------- 4 files changed, 56 insertions(+), 71 deletions(-) create mode 100644 templates/layout.html diff --git a/static/style.css b/static/style.css index 1ae8da8..f453081 100644 --- a/static/style.css +++ b/static/style.css @@ -41,4 +41,8 @@ body{ .hidden{ display: none; +} + +.navbar-text > a > img{ + max-height: 26px; } \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..ef5146f --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + 炎の亀 + + + + + + + + + + {% block head %} + {% endblock %} + + +{% block content %} +{% endblock %} + + + \ No newline at end of file diff --git a/templates/quiz.html b/templates/quiz.html index 000b0b7..bcd5691 100644 --- a/templates/quiz.html +++ b/templates/quiz.html @@ -1,37 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - 炎の亀 - - - - - - - - - - - - +{% extends "layout.html" %} +{% block content %}