From 9c9b556124a0aff45dbc3244e16afe4ec337f9fa Mon Sep 17 00:00:00 2001 From: headlessdev Date: Tue, 15 Apr 2025 14:49:07 +0200 Subject: [PATCH] Dashboard Update --- app/dashboard/Dashboard.tsx | 131 +++++++++++++++++++++++------------- 1 file changed, 86 insertions(+), 45 deletions(-) diff --git a/app/dashboard/Dashboard.tsx b/app/dashboard/Dashboard.tsx index ef5fc5b..30e29cf 100644 --- a/app/dashboard/Dashboard.tsx +++ b/app/dashboard/Dashboard.tsx @@ -15,13 +15,17 @@ import { } from "@/components/ui/sidebar"; import { useEffect, useState } from "react"; import axios from "axios"; // Korrekter Import -import { Card, CardHeader } from "@/components/ui/card"; +import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card" +import { Activity, Layers, Network, Server } from "lucide-react"; +import { Button } from "@/components/ui/button"; interface StatsResponse { serverCount: number; applicationCount: number; onlineApplicationsCount: number; } +import Link from "next/link"; + export default function Dashboard() { const [serverCount, setServerCount] = useState(0); @@ -67,50 +71,87 @@ export default function Dashboard() {
-
- - -
-
- {serverCount} - Servers -
-
-
-
- - -
-
- {applicationCount} - Applications -
-
-
-
- - -
-
- - {onlineApplicationsCount}/{applicationCount} - - Applications are online -
-
-
-
-
-
- COMING SOON -
-
-
- COMING SOON -
-
+

Dashboard

+ +
+ + +
+ Servers + +
+ Manage your server infrastructure +
+ +
{serverCount}
+

Active servers

+
+ + + +
+ + + +
+ Applications + +
+ Manage your deployed applications +
+ +
{applicationCount}
+

Running applications

+
+ + + +
+ + + +
+ Uptime + +
+ Monitor your service availability +
+ +
{onlineApplicationsCount}/{applicationCount}
+

online Applications

+
+ + + +
+ + + +
+ Network + +
+ Manage network configuration +
+ +
{serverCount + applicationCount}
+

Active connections

+
+ + + +
+
- ); -} \ No newline at end of file + ) +}