From f5203f97423a2cd1854a5722f456e939e539d1ef Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 17 Apr 2024 23:29:11 +0100 Subject: [PATCH] make mojang status card the whole width of the screen on mobile --- src/app/(pages)/mojang/status/page.tsx | 68 +++++++++---------- src/app/(pages)/page.tsx | 2 +- .../[platform]/[[...hostname]]/page.tsx | 2 +- src/app/components/container.tsx | 4 +- src/app/components/navbar.tsx | 2 +- src/app/components/player/lookup-player.tsx | 2 + src/app/components/server/lookup-server.tsx | 10 ++- 7 files changed, 49 insertions(+), 41 deletions(-) diff --git a/src/app/(pages)/mojang/status/page.tsx b/src/app/(pages)/mojang/status/page.tsx index 4e20337..8604bb7 100644 --- a/src/app/(pages)/mojang/status/page.tsx +++ b/src/app/(pages)/mojang/status/page.tsx @@ -63,41 +63,39 @@ export default async function Page(): Promise { const endpointsSize = Object.entries(endpoints).length; return ( -
- -

Mojang Status

-

The current status of Mojang Services

+ +

Mojang Status

+

The current status of Mojang Services

-
- {endpointsSize === 0 &&

Unable to fetch endpoint statuses

} - {endpointsSize > 0 && ( - - - - Service - Status - - - - {Object.entries(endpoints).map(([url, status]) => { - return ( - - - - {url} - - - - {formatStatus(status)} - - - ); - })} - -
- )} -
-
-
+
+ {endpointsSize === 0 &&

Unable to fetch endpoint statuses

} + {endpointsSize > 0 && ( + + + + Service + Status + + + + {Object.entries(endpoints).map(([url, status]) => { + return ( + + + + {url} + + + + {formatStatus(status)} + + + ); + })} + +
+ )} +
+ ); } diff --git a/src/app/(pages)/page.tsx b/src/app/(pages)/page.tsx index d1243a3..61dde20 100644 --- a/src/app/(pages)/page.tsx +++ b/src/app/(pages)/page.tsx @@ -37,7 +37,7 @@ export default function Home(): JSX.Element { {buttons.map((button, index) => { return ( - +