summaryrefslogtreecommitdiff
path: root/templates/index.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.j2')
-rw-r--r--templates/index.j248
1 files changed, 22 insertions, 26 deletions
diff --git a/templates/index.j2 b/templates/index.j2
index fcea4e3..764eae8 100644
--- a/templates/index.j2
+++ b/templates/index.j2
@@ -11,33 +11,29 @@
</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>
+ <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>
- <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">
- <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>
- </section>
- <section class="section">
- <h2 class="title">Players</h2>
- <div hx-get="/players" hx-swap="outerHTML" hx-trigger="revealed"></div>
+ <p class="level-item has-text-centered">
+ <a class="title link is-info is-underlined" 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" href="/players">Players</a>
+ </p>
+ <div class="level-right">
+ <div hx-get="/time" hx-swap="outerHTML" hx-trigger="load"></div>
+ </div>
+ </nav>
+ <div hx-post="/clear" hx-swap="outerHTML" hx-trigger="load"></div>
+ <div hx-get="/control" hx-swap="outerHTML" hx-trigger="load"></div>
</section>
<footer class="footer">
<div class="content has-text-centered">