From 38f099ae6ec7e7ae7338402a03654ee6378e4274 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 25 Jul 2025 16:35:33 +0200 Subject: Finally happy with the work --- app/static/custom.css | 12 ++++++++++-- app/templates/controls.j2 | 46 ++++++++++++++++++++++------------------------ app/templates/games.j2 | 42 ++++++++++++++++++++---------------------- 3 files changed, 52 insertions(+), 48 deletions(-) diff --git a/app/static/custom.css b/app/static/custom.css index 8aa5b57..a5ca36f 100644 --- a/app/static/custom.css +++ b/app/static/custom.css @@ -12,15 +12,23 @@ td { footer { text-align: center; } -.parent { +.parent, .timer { display: grid; grid-column-gap: 20px; grid-row-gap: 20px; margin-top: 20px; margin-bottom: 20px; + grid-auto-columns: 1fr; + grid-auto-rows: 1fr; } -@media (min-width: 800px) { +@media (min-width: 900px) { + table { + font-size: xx-large; + } .parent { grid-template-columns: repeat(4, 1fr); } + .timer { + grid-template-columns: 4fr repeat(2, 1fr); + } } diff --git a/app/templates/controls.j2 b/app/templates/controls.j2 index 8e7440e..97351bf 100644 --- a/app/templates/controls.j2 +++ b/app/templates/controls.j2 @@ -1,5 +1,27 @@ {% from "macros.j2" import court_button %} +

Timer

+
+
+ + + +
+ + +

Generation

+
+ + + +
-
- - - -
-

Timer

-
-
- - - -
-
-
- - -

Courts

{% for court in courts %} diff --git a/app/templates/games.j2 b/app/templates/games.j2 index 5041ce1..00ffb71 100644 --- a/app/templates/games.j2 +++ b/app/templates/games.j2 @@ -1,23 +1,21 @@ -
- - - - - - - - - - -{% for game in games %} - - - -{% endfor %} - -
{{ title }}
Court Team 1 Team 2
{{ game.court.id }}{{ game.team_1[0].first_name }}{{ " " + game.team_1[0].last_name }} - {{ game.team_1[1].first_name }}{{ " " + game.team_1[1].last_name }} - {{ game.team_2[0].first_name }}{{ " " + game.team_2[0].last_name }} - {{ game.team_2[1].first_name }}{{ " " + game.team_2[1].last_name }} -
+
+

{{ title }}

+ + + + + + + + {% for game in games %} + + + {% endfor %} + +
Court Team 1 Team 2
{{ game.court.id }} + {{ game.team_1[0].first_name }}{{ " " + game.team_1[0].last_name }} + {{ game.team_1[1].first_name }}{{ " " + game.team_1[1].last_name }} + {{ game.team_2[0].first_name }}{{ " " + game.team_2[0].last_name }} + {{ game.team_2[1].first_name }}{{ " " + game.team_2[1].last_name }} +
\ No newline at end of file -- cgit v1.3.1