diff options
Diffstat (limited to 'templates/index.j2')
| -rw-r--r-- | templates/index.j2 | 68 |
1 files changed, 30 insertions, 38 deletions
diff --git a/templates/index.j2 b/templates/index.j2 index a9c451f..ac6ddf3 100644 --- a/templates/index.j2 +++ b/templates/index.j2 @@ -2,54 +2,46 @@ <html lang="en"> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="viewport" content="width=device-width, initial-scale=1"> <title>🏸Match Up!</title> - <link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css"> + <link rel="icon" type="image/x-icon" href="/images/favicon.ico"> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css"> <script src="https://unpkg.com/htmx.org@2.0.0/dist/htmx.min.js"></script> <style> button { - height: 50px; - width: 200px; - } - .active { - background-color: #27ae60; - } - .dormant { - background-color: #a93226; - } - .grid-container { - display: grid; - grid-template-columns: auto auto auto; - row-gap: 20px; - column-gap: 20px; - } - hr { - margin-top: 1cm; + width: 100%; } </style> </head> <body> - <header> - <h4>🏸The Smashing Fellows </h4> - </header> - <hr> - <div> - <h2>Games</h2> - <div class="games" hx-get="/game-list" hx-swap="outerHTML" hx-trigger="revealed"></div> - </div> - <button hx-post="/new-games" hx-trigger="click" hx-target=".games" hx-swap="outerHTML"> New Games </button> - <div class="players"> - <h2>Courts</h2> + <section class="hero"> + <div class="hero-body"> + <p class="title">🏸The Smashing Fellows </p> + </div> + </section> + <section class="section"> + <p class="title">Games</p> + <div class="columns"> + <div class="column"></div> + <div class="column"><button class="button is-success" hx-post="/new-games" hx-trigger="click" hx-target="#games">New Games</button></div> + <div class="column"></div> + <div class="column"><button class="button is-danger" hx-post="/clear-games" hx-trigger="click" hx-target="#games">Clear</button></div> + <div class="column"></div> + </div> + <div hx-get="/game-list" hx-swap="outerHTML" hx-trigger="revealed"></div> + </section> + <section class="section"> + <h2 class="title">Courts</h2> <div hx-get="/court-list" hx-swap="outerHTML" hx-trigger="revealed"></div> - </div> - <hr> - <div class="players"> - <h2>Players</h2> + </section> + <section class="section"> + <h2 class="title">Players</h2> <div hx-get="/player-list" hx-swap="outerHTML" hx-trigger="revealed"></div> - </div> - <hr> - <footer> - Made by <a href="https://karanjayachandra.com/">K. Jayachandra</a> using <a href="https://htmx.org/">HTMX</a> and <a href="https://flask.palletsprojects.com">Flask</a> + </section> + <footer class="footer"> + <div class="content has-text-centered"> + Made by <a href="https://karanjayachandra.com/">K. Jayachandra</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 |
