From c27316967b8685e600a3af9dd7698498f838bdda Mon Sep 17 00:00:00 2001 From: kunish Date: Mon, 28 Aug 2023 00:28:06 +0800 Subject: [PATCH] feat: add bg color and text color for stats --- src/pages/Overview.tsx | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/pages/Overview.tsx b/src/pages/Overview.tsx index d6e6fb1..a4af9ca 100644 --- a/src/pages/Overview.tsx +++ b/src/pages/Overview.tsx @@ -134,38 +134,44 @@ export const Overview = () => { return (
-
+
-
Upload
-
+
Upload
+
{byteSize(traffic()?.up || 0).toString()}/s
-
Download
-
+
Download
+
{byteSize(traffic()?.down || 0).toString()}/s
-
Upload Total
-
+
Upload Total
+
{byteSize(connection()?.uploadTotal || 0).toString()}
-
Download Total
-
+
Download Total
+
{byteSize(connection()?.downloadTotal || 0).toString()}
-
Active Connections
-
{connection()?.connections.length || 0}
+
+ Active Connections +
+
+ {connection()?.connections.length || 0} +
-
Memory Usage
-
{byteSize(memory() || 0).toString()}
+
Memory Usage
+
+ {byteSize(memory() || 0).toString()} +