diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 23:57:24 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 23:57:24 +0200 |
| commit | a355423ff7566ff1d38bfa1627ec5b7ffa4b6bdc (patch) | |
| tree | a1d9ae0e6dd81238a0e3cb142b13cb8d68d3699b /templates/index.j2 | |
| parent | 36cc7d82a55cbd8167e1f52637dd1938497dd8cc (diff) | |
Cleaned up the layout a bit
Diffstat (limited to 'templates/index.j2')
| -rw-r--r-- | templates/index.j2 | 35 |
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> |
