From d9dd4c6cb9524a062830b9709b4a7ed5cd5f9717 Mon Sep 17 00:00:00 2001 From: brausjonas Date: Tue, 2 May 2023 23:08:41 +0200 Subject: [PATCH] Status Bar Active Element Highlighted --- anwendung/src/components/StatusBar.jsx | 9 ++++++--- anwendung/src/styles/globals.css | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/anwendung/src/components/StatusBar.jsx b/anwendung/src/components/StatusBar.jsx index 86ca929..9100f52 100644 --- a/anwendung/src/components/StatusBar.jsx +++ b/anwendung/src/components/StatusBar.jsx @@ -6,12 +6,15 @@ export default function StatusBar(p) let classNames = ["not-started", "started", "finished"]; let index = p.progress / 50; + let actives = ["", "", ""] + actives[index] = "active"; + return (
- 1 - 2 - 3 + 1 + 2 + 3