diff --git a/src/app/dashboard/server/Box.tsx b/src/app/dashboard/server/Box.tsx index 2c9faec..158e387 100644 --- a/src/app/dashboard/server/Box.tsx +++ b/src/app/dashboard/server/Box.tsx @@ -1,10 +1,5 @@ "use client"; import { motion } from "framer-motion"; -import Image from "next/image"; -import serverIcon1 from "@/assets/images/server-1-icon.svg"; -import serverIcon2 from "@/assets/images/server-2-icon.svg"; -import serverIcon3 from "@/assets/images/server-3-icon.svg"; -import serverIcon4 from "@/assets/images/server-4-icon.svg"; export default function Box() { return ( @@ -22,91 +17,249 @@ export default function Box() { }} className="relative p-5 border border-white/5 bg-[#0E1618]/10 backdrop-blur-sm" > -

Live and preparing servers

+

All Systems Operational

-

List of our GPUs and their current status

+

+ Last updated on{" "} + {new Date(Date.now() - 3 * 60 * 1000) + .toLocaleString("en-US", { + month: "short", + day: "numeric", + hour: "numeric", + minute: "2-digit", + hour12: true, + timeZoneName: "short", + }) + .replace(",", "") + .replace("AM", "am") + .replace("PM", "pm")} +

-
-
- - -
-

GAMING GPUs

-

Total GPUs : 52

-
+
+
+

GPU Instance

+

99.960% uptime

-
-
-

Ready : 38

-
- -
-

PREPARING : 14

+ {/* uptime status */} +
+
+ {[ + { status: "operational", width: "60%", details: "No incident reported" }, + { + status: "degraded", + width: "0.5%", + details: "Resolved - Nvidia driver issue", + }, + { status: "operational", width: "39.5%", details: "No incident reported" }, + ].map((segment, index) => ( +
+
+ {segment.status === "operational" + ? "Fully Operational" + : segment.status === "degraded" + ? "Degraded Performance" + : "System Down"} +
+ Status: {segment.details} +
+
+ ))}
+
Last 30 days - Hover segments for more details
-
-
- - -
-

Datacenter GPUs

-

Total GPUs : 45

-
+
+
+

Console

+

99.890% uptime

-
-
-

Ready : 33

-
- -
-

PREPARING : 12

+ {/* uptime status */} +
+
+ {[ + { status: "operational", width: "10%", details: "No incident reported" }, + { + status: "downtime", + width: "0.5%", + details: "Service Unavailable", + }, + { status: "operational", width: "28%", details: "No incident reported" }, + { status: "degraded", width: "0.5%", details: "Updating SMTP" }, + { status: "operational", width: "61%", details: "No incident reported" }, + ].map((segment, index) => ( +
+
+ {segment.status === "operational" + ? "Fully Operational" + : segment.status === "degraded" + ? "Degraded Performance" + : "System Down"} +
+ Status: {segment.details} +
+
+ ))}
+
Last 30 days - Hover segments for more details
-
-
- - -
-

Integrated GPUs

-

Total GPUs : 17

-
+
+
+

Network

+

99.940% uptime

-
-
-

Ready : 12

-
- -
-

PREPARING : 5

+ {/* uptime status */} +
+
+ {[ + { status: "operational", width: "34%", details: "No incident reported" }, + { + status: "degraded", + width: "0.5%", + details: "Resolved - Unusual high latency on some regions", + }, + { status: "operational", width: "35%", details: "No incident reported" }, + { status: "downtime", width: "0.5%", details: "Service Unavailable" }, + { status: "operational", width: "30%", details: "No incident reported" }, + ].map((segment, index) => ( +
+
+ {segment.status === "operational" + ? "Fully Operational" + : segment.status === "degraded" + ? "Degraded Performance" + : "System Down"} +
+ Status: {segment.details} +
+
+ ))}
+
Last 30 days - Hover segments for more details
-
-
- - -
-

AI GPUs

-

Total GPUs : 61

-
+
+
+

Proxy

+

100% uptime

-
-
-

Ready : 44

+ {/* uptime status */} +
+
+ {[{ status: "operational", width: "100%", details: "No incident reported" }].map( + (segment, index) => ( +
+
+ {segment.status === "operational" + ? "Fully Operational" + : segment.status === "degraded" + ? "Degraded Performance" + : "System Down"} +
+ Status: {segment.details} +
+
+ ) + )}
+
Last 30 days - Hover segments for more details
+
+
-
-

PREPARING : 17

+
+
+

Database

+

99.910% uptime

+
+ + {/* uptime status */} +
+
+ {[ + { status: "operational", width: "90%", details: "No incident reported" }, + { + status: "degraded", + width: "0.5%", + details: "Resolved - Deprecated DB API", + }, + { status: "operational", width: "9%", details: "No incident reported" }, + ].map((segment, index) => ( +
+
+ {segment.status === "operational" + ? "Fully Operational" + : segment.status === "degraded" + ? "Degraded Performance" + : "System Down"} +
+ Status: {segment.details} +
+
+ ))}
+
Last 30 days - Hover segments for more details