From 7f12cb59d85201c5590143f51d98d307f6be83ca Mon Sep 17 00:00:00 2001 From: Darius Schefer Date: Wed, 27 Aug 2025 23:43:40 +0200 Subject: [PATCH] HomeAssistant update --- src/components/HomeAssistant/HomeAssistant.tsx | 15 +++++++++++++-- src/components/HomeAssistant/style.module.css | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/components/HomeAssistant/style.module.css diff --git a/src/components/HomeAssistant/HomeAssistant.tsx b/src/components/HomeAssistant/HomeAssistant.tsx index 472a8a1..8efd805 100644 --- a/src/components/HomeAssistant/HomeAssistant.tsx +++ b/src/components/HomeAssistant/HomeAssistant.tsx @@ -1,6 +1,8 @@ import { useEffect } from "react"; import { useHomeAssistantStore } from "@/store/homeAssistant"; +import style from "./style.module.css"; + export default function Timetable() { const fetchHomeAssistantData = useHomeAssistantStore( (state) => state.fetch, @@ -21,8 +23,17 @@ export default function Timetable() { return (

Tent

-

Temperature: {tentTemperature}°C

-

Humidity: {tentHumidity}%

+
+
+

Temperature

+

{tentTemperature}°C

+
+ +
+

Humidity

+

{tentHumidity}%

+
+
); } diff --git a/src/components/HomeAssistant/style.module.css b/src/components/HomeAssistant/style.module.css new file mode 100644 index 0000000..44f61b0 --- /dev/null +++ b/src/components/HomeAssistant/style.module.css @@ -0,0 +1,18 @@ +.cardContainer { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + gap: 20px; +} + +.card { + height: 150px; + width: 150px; + display: flex; + flex-direction: column; + align-items: stretch; + border: 1px solid rgba(220, 220, 220, 0.4); + box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5); + border-radius: 10px; +}