blob: 0e851ab0fa7be78b6cc380b46d468332edb70f16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{% from "macros.j2" import player %}
<!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>
|