From 8bda7112151e779db695757ee513b3ff9cfb2a6e Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sat, 20 Apr 2024 13:34:47 -0400 Subject: [PATCH] Update the style of the server result --- .../app/(pages)/server/[[...slug]]/page.tsx | 2 +- .../app/components/server/server-result.tsx | 64 +++++++++++-------- 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx b/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx index 392ea38..5770ec4 100644 --- a/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx +++ b/Frontend/src/app/(pages)/server/[[...slug]]/page.tsx @@ -70,7 +70,7 @@ const ServerPage = async ({ params }: PageProps): Promise => { {/* Server Result */} {result && ( -
+
)} diff --git a/Frontend/src/app/components/server/server-result.tsx b/Frontend/src/app/components/server/server-result.tsx index 33eed76..2cd7450 100644 --- a/Frontend/src/app/components/server/server-result.tsx +++ b/Frontend/src/app/components/server/server-result.tsx @@ -30,45 +30,55 @@ const ServerResult = ({ server }: ServerResultProps): ReactElement => { return (
{/* Favicon */} {`${server.hostname}'s - {/* Name & MOTD */} -
-

{server.hostname}

- {server.motd.html.map( - (line: string, index: number): ReactElement => { - return ( -

- ); - } - )} -
+ {/* Content */} +
+ {/* Name & Ping */} +
+

{server.hostname}

- {/* Ping */} -
-

- {server.players.online}/{server.players.max} -

- Ping! + {/* Players & Ping */} +
+

+ {server.players.online} + / + {server.players.max} +

+ Ping! +
+
+ + {/* MOTD */} +
+ {server.motd.html.map( + (line: string, index: number): ReactElement => { + return ( +

+ ); + } + )} +
);