From 1c7f7ec1d3acbc38332f9bb8ca66837eee02a479 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 24 Sep 2024 20:49:44 +0200 Subject: [PATCH] Icons from Figma as svg --- app/dashboard/page.jsx | 158 +++++++++++++++++++--------------- public/images/IEC.svg | 9 ++ public/images/IP-icon.svg | 10 +++ public/images/gateway.svg | 3 + public/images/subnet-mask.svg | 3 + 5 files changed, 115 insertions(+), 68 deletions(-) create mode 100644 public/images/IEC.svg create mode 100644 public/images/IP-icon.svg create mode 100644 public/images/gateway.svg create mode 100644 public/images/subnet-mask.svg diff --git a/app/dashboard/page.jsx b/app/dashboard/page.jsx index 6d3af6d..98f9a7b 100644 --- a/app/dashboard/page.jsx +++ b/app/dashboard/page.jsx @@ -101,77 +101,99 @@ function Dashboard() { }, []); return ( -
-
- {/* Hauptinhalt */} -
-

Letzten 20 Meldungen:

-
-

Gerätedaten

- +
+ {/* Letzte Meldungen */} +
+

Letzten 20 Meldungen

+ +
+ +
+ {/* Meldungen Liste */} +
+ + + + + + + + + + {/* Beispiel-Daten */} + + + + + + {/* Weitere Zeilen nach Bedarf */} + +
ZeitstempelModulMeldung
10.11.23 07:10:12KUE 04Isowert 2
+
+ + {/* Sidebar mit Informationen */} +
+ {/* Versionsinformationen */} +
+

+ Versionsinformationen +

+

+ Applikationsversion: 5.1.1.8 + C-24-KA +

+

+ Webserverversion: 5.3.4.1 +

- {loading &&

Lade Gerätedaten...

} - {error &&

Fehler: {error.message}

} - {/* Gerätedaten anzeigen */} - {deviceData && ( -
-

Gerätedaten

-

- Device Name: {deviceData.deviceName} -

-

- IP: {deviceData.ip} -

-

- MAC1: {deviceData.mac1} -

-

- MAC2: {deviceData.mac2} -

-

- Subnet: {deviceData.subnet} -

-

- Gateway: {deviceData.gateway} -

-

- Datetime: {deviceData.datetime} -

-
- )} + {/* Beispiel für Geräteanzeige */} +
+

Geräte Status

+ {/* Hier könntest du die Daten von "deviceData" verwenden */} +

Server: Online

+

Access 1: Online

+ {/* Weitere Geräteinformationen */} +
+
+
- {/* Digitale Eingänge anzeigen */} - {digitalInputs && ( -
-

Digitale Eingänge

- {digitalInputs.inputs.map((input, index) => ( -
-

- Eingang {index + 1}: Zustand: {input} | - Zähler: {digitalInputs.counters[index]} | Flatter:{" "} - {digitalInputs.flutters[index]} -

-
- ))} -
- )} - - {/* Kabelüberwachungsdaten anzeigen */} - {cableMonitoring && ( -
-

Kabelüberwachung

- {cableMonitoring.cableAddress.map((address, index) => ( -
-

- Kabel {index + 1}: Adresse: {address} | - Status: {cableMonitoring.status[index]} -

-
- ))} -
- )} -
+ {/* Footer Informationen */} +
+
+ IP Address +
+

IP-Adresse

+

192.168.10.147

+
+
+
+ subnet mask +
+

Subnet-Maske

+

255.255.255.0

+
+
+
+ gateway +
+

Gateway

+

192.168.10.1

+
+
+
+ IEC +
+

IEC-Adresse

+

223

+
+
); diff --git a/public/images/IEC.svg b/public/images/IEC.svg new file mode 100644 index 0000000..2a2b6d4 --- /dev/null +++ b/public/images/IEC.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/public/images/IP-icon.svg b/public/images/IP-icon.svg new file mode 100644 index 0000000..ae64a71 --- /dev/null +++ b/public/images/IP-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/public/images/gateway.svg b/public/images/gateway.svg new file mode 100644 index 0000000..87e624b --- /dev/null +++ b/public/images/gateway.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/images/subnet-mask.svg b/public/images/subnet-mask.svg new file mode 100644 index 0000000..67eca94 --- /dev/null +++ b/public/images/subnet-mask.svg @@ -0,0 +1,3 @@ + + +