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