diff options
Diffstat (limited to 'templates/index.j2')
| -rw-r--r-- | templates/index.j2 | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/templates/index.j2 b/templates/index.j2 index ff8f37a..832dbfb 100644 --- a/templates/index.j2 +++ b/templates/index.j2 @@ -1,46 +1,13 @@ +{% from "macros.j2" import header, footer, navbar %} <!doctype html> <html lang="en"> - <head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>Match Up!</title> - <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}"> - <link rel="stylesheet" href="{{ url_for('static', filename='bulma.min.css') }}"> - <link rel="stylesheet" href="{{ url_for('static', filename='custom.css') }}"> - <script src="{{ url_for('static', filename='htmx.min.js') }}"></script> - </head> + {{ header() }} <body> <section class="section"> - <nav class="level"> - <div class="level-left"> - <div class="level-item"> - <figure class="image container is-128x128"> - <img src="{{ url_for('static', filename='logo.png') }}"/> - </figure> - </div> - </div> - <div class="level-item has-text-centered"></div> - <p class="level-item has-text-centered"> - <button class="button is-large is-link is-focused" onclick="location.href = '/';">Games</button> - </p> - <div class="level-item has-text-centered"></div> - <div class="level-item has-text-centered"> - <p class="title is-1">Match Up!</p> - </div> - <div class="level-item has-text-centered"></div> - <p class="level-item has-text-centered"> - <button class="button is-large is-link" onclick="location.href = '/players';">Players</button> - </p> - <div class="level-item has-text-centered"></div> - <div class="level-right"> - <div hx-get="/time" hx-swap="outerHTML" hx-trigger="load"></div> - </div> - </nav> + {{ navbar() }} <div hx-post="/clear" hx-swap="outerHTML" hx-trigger="load"></div> <div hx-get="/control" hx-swap="outerHTML" hx-trigger="load"></div> - <div class="content has-text-centered"> - Made by <a href="https://karanjayachandra.com/">Karan</a> using <a href="https://flask.palletsprojects.com">Flask</a>, <a href="https://htmx.org/">HTMX</a> and <a href="https://bulma.io">Bulma</a> - </div> + {{ footer() }} </section> </body> </html> |
