From 372a785af6e63583f64e2fe4c65e11da65de00b5 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 27 Sep 2024 10:59:33 +0200 Subject: [PATCH] feat: Header- und Navigationskomponenten angepasst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Header-Layout optimiert, um Temperatur und Icons korrekt anzuzeigen. - Anpassungen in der Navigation Abstand zwischen die Elemente. - Verbesserte Ausrichtung und Abstände für Header-Elemente. - Farbanpassungen und Styling-Optimierungen in der Header. -Auf verschiedene Bildschirm Auflösungen getestet (Full-HD und 2K/QHD) --- app/dashboard/page.jsx | 30 +++++++++++-------- components/Header.jsx | 27 ++++++++--------- components/Navigation.jsx | 6 ++-- .../{ => modulesStatus}/Access1Status.jsx | 0 .../{ => modulesStatus}/Access2Status.jsx | 0 components/{ => modulesStatus}/CPLStatus.jsx | 0 components/modulesStatus/Kue705_FO.jsx | 20 +++++++++++++ 7 files changed, 53 insertions(+), 30 deletions(-) rename components/{ => modulesStatus}/Access1Status.jsx (100%) rename components/{ => modulesStatus}/Access2Status.jsx (100%) rename components/{ => modulesStatus}/CPLStatus.jsx (100%) create mode 100644 components/modulesStatus/Kue705_FO.jsx diff --git a/app/dashboard/page.jsx b/app/dashboard/page.jsx index 9c31b85..51dc230 100644 --- a/app/dashboard/page.jsx +++ b/app/dashboard/page.jsx @@ -4,9 +4,10 @@ import "tailwindcss/tailwind.css"; import "@fontsource/roboto"; import "bootstrap-icons/font/bootstrap-icons.css"; import { loadWindowVariables } from "../../utils/loadWindowVariables"; -import CPLStatus from "../../components/CPLStatus"; -import Access1Status from "../../components/Access1Status"; -import Access2Status from "../../components/Access2Status"; +import CPLStatus from "../../components/modulesStatus/CPLStatus"; +import Access1Status from "../../components/modulesStatus/Access1Status"; +import Access2Status from "../../components/modulesStatus/Access2Status"; +import Kue705_FO from "../../components/modulesStatus/Kue705_FO"; function Dashboard() { const apiUrl = process.env.NEXT_PUBLIC_API_BASE_URL; @@ -60,7 +61,7 @@ function Dashboard() { }; return ( -
+
{/* Letzte Meldungen */}

@@ -73,7 +74,7 @@ function Dashboard() {
{/* Meldungen Liste */} -
+
@@ -94,18 +95,18 @@ function Dashboard() { - + {last20Messages.length > 0 ? ( last20Messages.map((columns, index) => ( - - - - - + + + + + )) ) : ( @@ -136,12 +137,15 @@ function Dashboard() { {/* Beispiel für Geräteanzeige */} -
-
+
+
+
+ +
diff --git a/components/Header.jsx b/components/Header.jsx index 5d79b36..98cfb45 100644 --- a/components/Header.jsx +++ b/components/Header.jsx @@ -24,7 +24,7 @@ function Header() { }, [apiUrl]); return ( -
+
{/* Logo - Vergrößert und verschoben */}
-
+
{/* CPL Status und Stationsname */}
-
+
{/* Text immer linksbündig */} -

Stationsname

-

{stationsname}

+

Stationsname

+

{stationsname}

- +
{/* Temperatur und Icons */} -
+
{/* Temperatur und Luftfeuchtigkeit */} -
-
+
+

20.5 °C

-
+

60%

{/* Toggle Switch light and dark mode */} -
+
{/* Toggle Switch */}
- {/* Leer div für flexiblen Abstand */}
{/* User Icon */} -
- +
+
diff --git a/components/Navigation.jsx b/components/Navigation.jsx index 94c930a..bb4b034 100644 --- a/components/Navigation.jsx +++ b/components/Navigation.jsx @@ -23,12 +23,12 @@ function Navigation() { ]; return ( -
{columns[0]}{columns[1]}{columns[2]}{columns[3]}{columns[4]}{columns[0]}{columns[1]}{columns[2]}{columns[3]}{columns[4]}