summaryrefslogtreecommitdiff
path: root/templates/index.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.j2')
-rw-r--r--templates/index.j235
1 files changed, 15 insertions, 20 deletions
diff --git a/templates/index.j2 b/templates/index.j2
index fcea4e3..22c72a0 100644
--- a/templates/index.j2
+++ b/templates/index.j2
@@ -11,29 +11,24 @@
</head>
<body>
<section class="section">
- <nav class="level">
- <div class="level-left">
+ <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">
- <figure class="image container is-128x128">
- <img src="{{ url_for('static', filename='logo.png') }}"/>
- </figure>
+ <p class="title">Match Up!</p>
</div>
- </div>
- <div class="level-item">
- <p class="title">Match Up!</p>
- </div>
- <div class="level-right">
- <div hx-get="/time" hx-swap="outerHTML" hx-trigger="revealed"></div>
- </div>
- </nav>
- </section>
- <section class="section">
+ <div class="level-right">
+ <div hx-get="/time" hx-swap="outerHTML" hx-trigger="revealed"></div>
+ </div>
+ </nav>
+ <div hx-get="/control" hx-swap="outerHTML" hx-trigger="revealed"></div>
<p class="title">Games</p>
- {% include 'controls.j2' %}
- </section>
- <section class="section">
- <h2 class="title">Courts</h2>
- <div hx-get="/courts" hx-swap="outerHTML" hx-trigger="revealed"></div>
+ <div hx-post="/clear" hx-swap="outerHTML" hx-trigger="revealed"></div>
</section>
<section class="section">
<h2 class="title">Players</h2>