From 75eef410b06c4e80b9c8dd5d32a3adbc302215f8 Mon Sep 17 00:00:00 2001 From: Samuel Zielke Date: Mon, 9 Sep 2024 17:26:23 +0200 Subject: [PATCH] Create Dashboard and Link all Sites --- app/static/app/css/custom.css | 20 +++++++++ app/templates/app/base.html | 4 +- app/templates/app/home.html | 85 ++++++++++++++++++++++++++++++++++- app/urls.py | 2 +- 4 files changed, 107 insertions(+), 4 deletions(-) diff --git a/app/static/app/css/custom.css b/app/static/app/css/custom.css index ed716d4..9d124b6 100644 --- a/app/static/app/css/custom.css +++ b/app/static/app/css/custom.css @@ -58,4 +58,24 @@ a { a:hover { color: rgb(105, 150, 76); +} + +/* BEGINN DES LADEBALKEN VERSUCHS */ + +.progress-bar { + width: 100%; + background-color: #e0e0e0; /* Hellgrauer Hintergrund für die gesamte Leiste */ + border-radius: 25px; + overflow: hidden; + height: 30px; +} + +.progress { + background-color: #FFD700; /* Gelb für den Fortschritt */ + height: 100%; + text-align: center; + color: black; + line-height: 30px; + font-weight: bold; + border-radius: 25px 0 0 25px; /* Runde Ecken auf der linken Seite */ } \ No newline at end of file diff --git a/app/templates/app/base.html b/app/templates/app/base.html index 597e31c..1a8fb66 100644 --- a/app/templates/app/base.html +++ b/app/templates/app/base.html @@ -17,12 +17,12 @@
- +
-
+
{% block content %} {% endblock %}
diff --git a/app/templates/app/home.html b/app/templates/app/home.html index f745025..c867dbe 100644 --- a/app/templates/app/home.html +++ b/app/templates/app/home.html @@ -1,5 +1,88 @@ {% extends 'app/base.html' %} {% block content %} -

Home

+ + +
+

Wilkommen!

+

Schön das du hier bist! +
Ich wünsche dir viel Freude mit der App. +
Sollten Fragen oder Probleme auftauchen, fühl dich frei in der Community piomint.de/feedback einen Eintrag da zu lassen. +
+
Hinweis: +
Diese App ist für Pioniere optimiert und deshalb für den normalen Dienst oder Hilfspionierdienst nicht so gut geeignet. +
Eine Ausnahme ist der "Dauer-Hippi" - Dieser ist in den Einstellung auswählbar. +

+
+ + + +
+ +
+
+
+

Monat

+
+
+
+

12h

+
+
+

Jahr

+
+
+
+

310h

+
+
+
+
+

Timer

+

00:00h

+
+
+
+
+

Aktivitäten

+ + + + + + + + + + + + + + + + + + + + + + + + + +
DauerDatumTyp
01:3012.09.24Dienst
03:3013.09.24LDC
03:0008.09.24Dienst
+
+
+
+ {% endblock %} diff --git a/app/urls.py b/app/urls.py index 7d5e2c3..5dc70a7 100644 --- a/app/urls.py +++ b/app/urls.py @@ -3,7 +3,7 @@ from django.views.generic import TemplateView from . import views urlpatterns = [ - path("", views.login), + path("", views.login), # NORMAL login - NUR FÜR DEV TIME path("login", views.login), path("home/", views.home), path('offline/', TemplateView.as_view(template_name="offline.html")),