From f06925d8279a440c36bf3f8f57fa22c193f336c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nut=CC=A6iu?= Date: Thu, 13 Apr 2017 00:10:15 +0300 Subject: [PATCH] Updating templates and style --- src/models/{result.py => __init__.py} | 0 src/static/style.css | 17 +++++++++++++++++ src/templates/index.html | 15 +++++++++++++-- 3 files changed, 30 insertions(+), 2 deletions(-) rename src/models/{result.py => __init__.py} (100%) diff --git a/src/models/result.py b/src/models/__init__.py similarity index 100% rename from src/models/result.py rename to src/models/__init__.py diff --git a/src/static/style.css b/src/static/style.css index 7e9204a..8042fa7 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -20,6 +20,23 @@ header { text-align: center; } + footer { text-align: center; +} + +main table { + font-family: arial, sans-serif; + border-collapse: collapse; + width: 100%; +} + +main td, main th { + border: 1px solid #dddddd; + text-align: left; + padding: 8px; +} + +main tr:nth-child(even) { + background-color: #dddddd; } \ No newline at end of file diff --git a/src/templates/index.html b/src/templates/index.html index c8f1f44..eb3f614 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -5,7 +5,7 @@ - + Scoreboard! @@ -13,7 +13,18 @@

The Scoreboard!

- + + + + + + {% for item in results %} + + + + + {% endfor %} +
TextScore
Text: {{ item.text }} Score: {{ item.score }}