From 42565021a41d14162714082c239fcf54e97ffae1 Mon Sep 17 00:00:00 2001
From: Razmig Sarkissian
Date: Tue, 25 Jul 2023 16:56:24 +0200
Subject: [PATCH] update html
---
scores/static/scores/style.css | 28 +++++++-
scores/templates/scores/index.html | 8 +--
scores/templates/scores/match.html | 87 ++++++++++---------------
scores/templates/scores/tournament.html | 22 ++++---
4 files changed, 74 insertions(+), 71 deletions(-)
diff --git a/scores/static/scores/style.css b/scores/static/scores/style.css
index 111f1b5..74be8a1 100644
--- a/scores/static/scores/style.css
+++ b/scores/static/scores/style.css
@@ -7,7 +7,7 @@ html, body {
/*font-family: Helvetica, sans-serif;*/
background-color: white;
color: black;
-
+ font-size: 100%;
box-sizing: border-box;
height: 100%;
@@ -53,12 +53,17 @@ table, th, td {
border-collapse: collapse;
}
+table {
+ width: 100%;
+ border-collapse: collapse;
+}
+
tr {
- height: 60px;
+ height: 80px;
}
td {
- padding: 0px 10px;
+ padding: 8px 16px;
}
.big {
@@ -66,8 +71,13 @@ td {
font-weight: 600;
}
+.sbig {
+ font-size: 30px;
+ font-weight: 600;
+}
.score {
width: 60px;
+ font-size: 150%;
text-align: center;
vertical-align: middle;
}
@@ -77,6 +87,12 @@ td {
margin: 0 auto;
}
+.scenter {
+ text-align: center;
+ font-size: 200%;
+ margin: 0 auto;
+}
+
.match {
/* display: inline-block; */
display:inline-block;
@@ -103,6 +119,12 @@ td {
}
.teamname {
width: 100%;
+ font-size: 120%;
+}
+
+.steamname {
+ width: 100%;
+ font-size: 200%;
}
.smatch {
diff --git a/scores/templates/scores/index.html b/scores/templates/scores/index.html
index d72a672..bfcc549 100644
--- a/scores/templates/scores/index.html
+++ b/scores/templates/scores/index.html
@@ -85,8 +85,8 @@
-
{{ match.durationPrefix }}
- {{ match.duration }}
+ {{ match.durationPrefix }}
+ {{ match.duration }}
@@ -154,8 +154,8 @@
-
{{ match.durationPrefix }}
- {{ match.duration }}
+ {{ match.durationPrefix }}
+ {{ match.duration }}
diff --git a/scores/templates/scores/match.html b/scores/templates/scores/match.html
index 10ea699..9ed2a7e 100644
--- a/scores/templates/scores/match.html
+++ b/scores/templates/scores/match.html
@@ -2,80 +2,56 @@
{% load static %}
-
-
- Padel - {{ match.title }} - COURS {{ match.court }}
+ Padel
-
-
{% if match.tournament.club.header %}
-
{{ match.tournament.club.header }}
+
{{ match.tournament.club.header }}
{% endif %}
+ {% autoescape off %}
- {% if match %}
-
COURS {{ match.court }}
-
{{ match.title }}
+
{{ match.title }}
+
+
{% if match.team3 %}
- | {{ match.team1|linebreaksbr }} |
+
| {{ match.team1|linebreaksbr }} |
{% if match.team1scorecolumn1 %}{{ match.team1scorecolumn1 }} | {% endif %}
+ {% if match.team2scorecolumn1 %}{{ match.team2scorecolumn1 }} | {% endif %}
- | {{ match.team2|linebreaksbr }} |
+
| {{ match.team2|linebreaksbr }} |
{% if match.team1scorecolumn2 %}{{ match.team1scorecolumn2 }} | {% endif %}
+ {% if match.team2scorecolumn2 %}{{ match.team2scorecolumn2 }} | {% endif %}
- | {{ match.team3|linebreaksbr }} |
+
| {{ match.team3|linebreaksbr }} |
{% if match.team1scorecolumn3 %}{{ match.team1scorecolumn3 }} | {% endif %}
+ {% if match.team2scorecolumn3 %}{{ match.team2scorecolumn3 }} | {% endif %}
- | {{ match.team4|linebreaksbr }} |
+
| {{ match.team4|linebreaksbr }} |
{% if match.team1scorecolumn4 %}{{ match.team1scorecolumn4 }} | {% endif %}
+ {% if match.team2scorecolumn4 %}{{ match.team2scorecolumn4 }} | {% endif %}
-
{% if match.team5 %}
- | {{ match.team5|linebreaksbr }} |
+
+
| {{ match.team5|linebreaksbr }} |
{% if match.team1scorecolumn5 %}{{ match.team1scorecolumn5 }} | {% endif %}
+ {% if match.team2scorecolumn5 %}{{ match.team2scorecolumn5 }} | {% endif %}
{% endif %}
@@ -84,7 +60,7 @@ document.getElementById("demo").innerHTML = "EXPIRED";
- | {{ match.team1|linebreaksbr }} |
+ {{ match.team1|linebreaksbr }} |
{% if match.team1scorecolumn1 %}{{ match.team1scorecolumn1 }} | {% endif %}
{% if match.team1scorecolumn2 %}{{ match.team1scorecolumn2 }} | {% endif %}
{% if match.team1scorecolumn3 %}{{ match.team1scorecolumn3 }} | {% endif %}
@@ -92,7 +68,7 @@ document.getElementById("demo").innerHTML = "EXPIRED";
{% if match.team1scorecolumn5 %}{{ match.team1scorecolumn5 }} | {% endif %}
- | {{ match.team2|linebreaksbr }} |
+ {{ match.team2|linebreaksbr }} |
{% if match.team2scorecolumn1 %}{{ match.team2scorecolumn1 }} | {% endif %}
{% if match.team2scorecolumn2 %}{{ match.team2scorecolumn2 }} | {% endif %}
{% if match.team2scorecolumn3 %}{{ match.team2scorecolumn3 }} | {% endif %}
@@ -103,19 +79,22 @@ document.getElementById("demo").innerHTML = "EXPIRED";
{% endif %}
- {{ match.duration }}
+
+
+
{{ match.durationPrefix }}
+ {{ match.duration }}
+
- {% else %}
- No matches at the moment...
- {% endif %}
-
+
+ {% endautoescape %}
- {% if match.club.footer %}
-
+ {% if club.footer %}
+
{% endif %}
+
-