Improve race guesses frontend

This commit is contained in:
2024-02-15 16:32:06 +01:00
parent 46214514c8
commit 54ca61124a
3 changed files with 32 additions and 19 deletions

View File

@ -3,7 +3,8 @@
{# Easy nav-bar entries. When a page sets the active_page variable, the current entry will be underlined #}
{% macro nav_selector(page='', text='') %}
<a class="nav-link" href="/{{ page }}">{% if active_page == page %}<u>{% endif %} {{ text }} {% if active_page == page %}</u>{% endif %}</a>
<a class="nav-link" href="/{{ page }}">{% if active_page == page %}<u>{% endif %} {{ text }}
{% if active_page == page %}</u>{% endif %}</a>
{% endmacro %}
<head>
@ -20,14 +21,18 @@
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<nav class="navbar fixed-top navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img src="../static/image/f1_logo.svg" alt="Logo" width="120" height="30"
class="d-inline-block align-text-top">
Formula <i>10</i> - 2024
</a>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav">
{{ nav_selector("race", "Guess Race") }}
{{ nav_selector("season", "Guess Season") }}
@ -38,7 +43,10 @@
</div>
</nav>
{% block body %}{% endblock body %}
<div style="margin-top: 55px;">
{% block body %}{% endblock body %}
</div>
</body>
</html>