Updating templates and style

This commit is contained in:
Denis-Cosmin Nutiu 2017-04-13 00:10:15 +03:00
parent 5a5af4c538
commit f06925d827
3 changed files with 30 additions and 2 deletions

View file

@ -20,6 +20,23 @@ header {
text-align: center; text-align: center;
} }
footer { footer {
text-align: center; 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;
} }

View file

@ -5,7 +5,7 @@
<meta name="author" content="Metonymy"> <meta name="author" content="Metonymy">
<meta name="description" content="The scoreboard for the benchmarks!"> <meta name="description" content="The scoreboard for the benchmarks!">
<meta name="keywords" content="flask python metonymyqt benchmark scoreboard"> <meta name="keywords" content="flask python metonymyqt benchmark scoreboard">
<link rel="stylesheet" href="../static/style.css"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css')}}">
<title>Scoreboard!</title> <title>Scoreboard!</title>
</head> </head>
<body> <body>
@ -13,7 +13,18 @@
<h1>The Scoreboard!</h1> <h1>The Scoreboard!</h1>
</header> </header>
<main> <main>
<table>
<tr>
<th>Text</th>
<th>Score</th>
</tr>
{% for item in results %}
<tr>
<td>Text: {{ item.text }} </td>
<td>Score: {{ item.score }}</td>
</tr>
{% endfor %}
</table>
</main> </main>
<footer> <footer>
Copyright 2017 Fellowship of the Bits Copyright 2017 Fellowship of the Bits