From 8b12b52d7986e127cf5a0262643d919c73cc29a2 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 2 Mar 2026 22:46:22 +0100 Subject: [PATCH] add legend section and update styles for clarity and consistency --- backend/templates/directeur.html | 39 ++++++++++++++++++- backend/templates/leerkracht.html | 62 ++++++++++++++++++++++++++++++- 2 files changed, 98 insertions(+), 3 deletions(-) diff --git a/backend/templates/directeur.html b/backend/templates/directeur.html index cd2ffad..9705e34 100644 --- a/backend/templates/directeur.html +++ b/backend/templates/directeur.html @@ -211,7 +211,12 @@ /* Footer */ .footer { color: #64748b !important; } - .status-legend { background: #162032 !important; border-color: #334155 !important; color: #94a3b8 !important; } + /* Legend container */ + .legend-container { background: #1e293b !important; } + .legend-title { color: #94a3b8 !important; } + .legend-divider { background: #334155 !important; } + .status-selector.status-none { background: #1e293b !important; border-color: #475569 !important; color: #64748b !important; } + .status-legend { background: #162032 !important; border-color: #334155 !important; color: #94a3b8 !important; } /* Scrollbar (webkit) */ ::-webkit-scrollbar { width: 8px; height: 8px; } @@ -269,6 +274,38 @@
+ + +
+
Legenda
+
+
+
+
+ Doen we al +
+
+
+ Doen we ongeveer +
+
+
+ Nieuw (doen we nog niet) +
+
+
+ Niet beoordeeld +
+
+
+
+
Groen = consensus
+
Oranje = gedeeltelijk
+
Roze = nog te doen
+
+
+
+
diff --git a/backend/templates/leerkracht.html b/backend/templates/leerkracht.html index 02d58bb..c34c2c8 100644 --- a/backend/templates/leerkracht.html +++ b/backend/templates/leerkracht.html @@ -28,9 +28,9 @@ .btn-secondary { background: var(--gray-100); color: var(--gray-700); } .btn-secondary:hover { background: var(--gray-200); } .btn-danger { background: var(--danger); color: white; } - .vak-selector { background: white; border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; } + .vak-selector { background: white; border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; transition: background 0.2s; } .vak-selector label { font-weight: 600; color: var(--gray-700); font-size: 0.9rem; } - .vak-selector select { padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.95rem; min-width: 250px; cursor: pointer; } + .vak-selector select { padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.95rem; min-width: 250px; cursor: pointer; background: white; color: var(--gray-800); } .vak-selector select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); } .stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; } .stat-card { background: white; border-radius: 8px; padding: 0.75rem 1rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } @@ -71,6 +71,13 @@ .ebg-engageren { background: var(--kleur-engageren); color: white; } .ebg-begrijpen { background: var(--kleur-begrijpen); color: var(--gray-800); } .ebg-gebruiken { background: var(--kleur-gebruiken); color: white; } + .legend-container { background: white; border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.1); } + .legend-title { font-weight: 600; color: var(--gray-700); margin-bottom: .75rem; font-size: .9rem; } + .legend-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; } + .legend-section { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; } + .legend-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; } + .legend-color { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; } + .legend-divider { width: 1px; height: 24px; background: var(--gray-300); } .leeftijden { display: flex; flex-wrap: wrap; gap: 0.25rem; } .leeftijd-badge { font-size: 0.7rem; padding: 0.15rem 0.35rem; background: var(--gray-200); border-radius: 3px; color: var(--gray-600); } .beschrijving-cell { max-width: 400px; } @@ -194,6 +201,16 @@ /* Vak indicator */ /* .vak-indicator — stijl via inline op het element */ + /* Legend container */ + .legend-container { background: #1e293b !important; border-color: #334155 !important; } + .legend-title { color: #94a3b8 !important; } + .legend-divider { background: #334155 !important; } + + /* Vak selector balk */ + .vak-selector { background: #1e293b !important; } + .vak-selector label { color: #94a3b8 !important; } + .vak-selector select { background: #0f172a !important; color: #e2e8f0 !important; border-color: #334155 !important; } + /* Progress bars achtergrond */ .progress-bar { background: #334155 !important; } @@ -276,6 +293,47 @@
-
Beoordeeld
+ + +
+
Legenda
+
+
+
+
+ Doen we al +
+
+
+ Doen we ongeveer +
+
+
+ Nieuw (doen we nog niet) +
+
+
+ Nog geen status +
+
+
+
+
+
+ Engageren +
+
+
+ Begrijpen +
+
+
+ Gebruiken +
+
+
+
+