diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2024-10-17 09:05:57 +0000 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2024-10-17 09:05:57 +0000 |
| commit | 5c3689a711e18cfc3b6a4c699af688753179e007 (patch) | |
| tree | 2dc84648312607378ec5ef7d087c578907bb8dc5 /templates/players.j2 | |
| parent | 7643486d7122b322a052bfca8ec83326c48053d0 (diff) | |
| parent | 299d89197fa4edad742b0ca1838a7b98242b13ce (diff) | |
Merge branch 'develop' into 'main'
Full functionality and documentation for first version
See merge request KaranJayachandra/match_up!5
Diffstat (limited to 'templates/players.j2')
| -rw-r--r-- | templates/players.j2 | 58 |
1 files changed, 50 insertions, 8 deletions
diff --git a/templates/players.j2 b/templates/players.j2 index 4eedc54..0e851ab 100644 --- a/templates/players.j2 +++ b/templates/players.j2 @@ -1,9 +1,51 @@ {% from "macros.j2" import player %} -<div class="fixed-grid has-5-cols"> -<div class="grid"> -{% for id, value in players.items() %} - <div class="cell"> - {{ player(id, value.status, value.name) }} - </div> -{% endfor %} -</div>
\ No newline at end of file +<!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> + <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> + <p class="level-item has-text-centered"> + <a class="title link is-info" href="/">Games</a> + </p> + <div class="level-item has-text-centered"> + <p class="title is-1">Match Up!</p> + </div> + <p class="level-item has-text-centered"> + <a class="title link is-info is-underlined" href="/players">Players</a> + </p> + <div class="level-right"> + <div hx-get="/time" hx-swap="outerHTML" hx-trigger="load"></div> + </div> + </nav> + <div class="fixed-grid has-5-cols"> + <div class="grid"> + {% for id, value in players.items() %} + <div class="cell"> + {{ player(id, value.status, value.name) }} + </div> + {% endfor %} + </div> + </section> + <footer class="footer"> + <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> + </body> +</html>
\ No newline at end of file |
