From 7bea3eb5941736705f749b6a4266bf8b3c27a936 Mon Sep 17 00:00:00 2001 From: csehviktor Date: Thu, 3 Jul 2025 07:50:29 +0200 Subject: [PATCH] add basic home page + header --- ui/src/components/Header.tsx | 42 ++++++++++++++++++++++++++++++++++++ ui/src/index.css | 2 +- ui/src/pages/home.tsx | 16 ++++++++++++-- 3 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 ui/src/components/Header.tsx diff --git a/ui/src/components/Header.tsx b/ui/src/components/Header.tsx new file mode 100644 index 0000000..f19a3ca --- /dev/null +++ b/ui/src/components/Header.tsx @@ -0,0 +1,42 @@ +export type HeaderProps = { + title: string; + subtitle: string; + hasBackButton: boolean; + rightComponent?: React.ReactNode; +}; + +export function Header({ props }: { props: HeaderProps }) { + return ( +
+
+
+
+ + + + + +
+
+

{props.title}

+

+ {props.subtitle} +

+
+
+
+ {props.rightComponent} +
+
+
+ ); +} diff --git a/ui/src/index.css b/ui/src/index.css index 7cfc7ff..9e99382 100644 --- a/ui/src/index.css +++ b/ui/src/index.css @@ -1,5 +1,5 @@ @import "tailwindcss"; body { - @apply bg-gray-950 text-gray-300; + @apply bg-[#0a0a0a] text-gray-300; } diff --git a/ui/src/pages/home.tsx b/ui/src/pages/home.tsx index c886cb8..519f210 100644 --- a/ui/src/pages/home.tsx +++ b/ui/src/pages/home.tsx @@ -1,8 +1,20 @@ +import { Header } from "@/components/Header"; + export function HomePage() { return (
-

Welcome to Status Monitor

-

This is the home page.

+
+
+
+

helo vilag

+
+
); }