From 132b3e031546bcba4c63e1103ec1c150a809360a Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Wed, 17 Apr 2024 10:55:10 -0400 Subject: [PATCH] Make the /player page responsive --- .../app/(pages)/player/[[...slug]]/page.tsx | 23 +++++++++++-------- .../app/components/player/player-result.tsx | 5 ++-- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx b/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx index e7e7787..3032867 100644 --- a/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx +++ b/Frontend/src/app/(pages)/player/[[...slug]]/page.tsx @@ -27,32 +27,35 @@ const PlayerPage = async ({ params }: PageProps): Promise => { // Render the page return ( -
-
- {/* Header */} +
+
+ {/* Banner */} Minecraft Players -
+ {/* Search */} +

Player Lookup

- {/* Error */} - {error &&

{error}

} +
+ {/* Error */} + {error &&

{error}

} - {/* Search */} - + {/* Search */} + +
{/* Player Result */} {result && } diff --git a/Frontend/src/app/components/player/player-result.tsx b/Frontend/src/app/components/player/player-result.tsx index c156a6b..57500ae 100644 --- a/Frontend/src/app/components/player/player-result.tsx +++ b/Frontend/src/app/components/player/player-result.tsx @@ -24,6 +24,7 @@ const PlayerResult = ({
{/* Player Head */} {`${username}'s

{username}

- {uniqueId} + {uniqueId} {/* Legacy Badge */} {legacy &&

Legacy

} @@ -57,7 +58,7 @@ const PlayerResult = ({ .map(([part, url], index) => ( {`${username}'s