From c7e9d5de5a0597013140f7e38c820fa6673934a7 Mon Sep 17 00:00:00 2001 From: Namonay Date: Fri, 13 Sep 2024 01:56:28 +0200 Subject: [PATCH] wow --- main.py | 2 +- templates/home.html | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 9c15acd..0456726 100644 --- a/main.py +++ b/main.py @@ -27,7 +27,7 @@ def update(): @app.route("/", methods = ['GET']) def normal(): print(values.split(" ")) - return render_template('home.html', dates = wrap(values, 10)) + return render_template('home.html', dates = wrap(values, 10), total = len(values.split(' ')), days = values.split(' ')[-1]) if __name__ == '__main__': app.run(host='0.0.0.0', port=5000, debug=1) diff --git a/templates/home.html b/templates/home.html index 7e69954..e54caee 100644 --- a/templates/home.html +++ b/templates/home.html @@ -52,12 +52,14 @@ header { color: #fff; text-transform: uppercase; font-size: 30px; - background: #FF0000; + background: #B00000; border-bottom: solid #A20000 4px; cursor: pointer; user-select: none; } - +#incident-btn:hover { + background-color: #ff0000; +} .btn-text { text-align: center; padding-top: 15px; @@ -73,14 +75,14 @@ header {

Jours depuis le dernier problème:

-

+

{{days}}

-

Nombre total de problèmes :

+

Nombre total de problèmes : {{total}}

-
Incident
+
Incident

Note: Button doesn't actually work yet...

\ No newline at end of file