From 08e4a27c0db7fc2867cce3eb6f80799148c03ba6 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 25 Jul 2025 15:30:07 +0200 Subject: Moved to a mobile friendly CSS framework --- app/templates/controls.j2 | 83 +++++++++++++++++++++++------------------------ app/templates/games.j2 | 6 ++-- app/templates/index.j2 | 11 ++++--- app/templates/login.html | 8 ++--- app/templates/macros.j2 | 54 ++++++++---------------------- app/templates/players.j2 | 59 ++++++++++++++++----------------- 6 files changed, 100 insertions(+), 121 deletions(-) (limited to 'app/templates') diff --git a/app/templates/controls.j2 b/app/templates/controls.j2 index f67f745..a8cba89 100644 --- a/app/templates/controls.j2 +++ b/app/templates/controls.j2 @@ -1,47 +1,46 @@ {% from "macros.j2" import court_button %} -
-
- {% for court in courts %} - {{ court_button(court) }} - {% endfor %} -
+

Courts

+
+{% for court in courts %} + {{ court_button(court) }} +{% endfor %}
-
-
-
- -
-
-
-
- -
-
-
- +

Generation

+
+
+
-
-
- -
-
- +
+
+
+
+ + + +
+

Timer

+
+ + + + +
\ No newline at end of file diff --git a/app/templates/games.j2 b/app/templates/games.j2 index dff1e0f..ce2a412 100644 --- a/app/templates/games.j2 +++ b/app/templates/games.j2 @@ -1,4 +1,5 @@ - +
+
@@ -18,4 +19,5 @@ {% endfor %} -
{{ title }}
\ No newline at end of file + +
\ No newline at end of file diff --git a/app/templates/index.j2 b/app/templates/index.j2 index ce0d531..8a13fa0 100644 --- a/app/templates/index.j2 +++ b/app/templates/index.j2 @@ -3,11 +3,14 @@ {{ header(url_for) }} -
- {{ navbar(url_for) }} +
{{ navbar(url_for) }}
+
+

Games

+

Controls

- {{ footer() }} -
+ +
{{ footer() }}
+ diff --git a/app/templates/login.html b/app/templates/login.html index a42f2c5..e3109b6 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -3,8 +3,8 @@ {{ header(url_for) }} -
- {{ navbar(url_for) }} +
{{ navbar(url_for) }}
+
{{ form.csrf_token }} @@ -16,8 +16,8 @@ - {{ footer() }} -
+ +
{{ footer() }}
\ No newline at end of file diff --git a/app/templates/macros.j2 b/app/templates/macros.j2 index 4fe35f0..17a2940 100644 --- a/app/templates/macros.j2 +++ b/app/templates/macros.j2 @@ -1,11 +1,11 @@ {% macro court_button(court) -%} - {%- endmacro %} {% macro player_button(player) -%} - {%- endmacro %} @@ -16,56 +16,30 @@ Match Up! - + - {%- endmacro %} {% macro footer() -%} -
Made by Karan using Flask, HTMX, Notyf and Bulma
+
Made by Karan with
{%- endmacro %} + {% macro navbar(url_for) -%} -