Frontend: Make the Mojang status page more responsive
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m13s
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m13s
This commit is contained in:
parent
b06cbdddda
commit
57dc61f745
@ -59,7 +59,7 @@ const MojangStatusPage = async (): Promise<ReactElement> => {
|
|||||||
const { servers }: MojangServerStatusResponse =
|
const { servers }: MojangServerStatusResponse =
|
||||||
await getMojangServerStatus(); // Get Mojang server statuses
|
await getMojangServerStatus(); // Get Mojang server statuses
|
||||||
return (
|
return (
|
||||||
<main className="mb-32 xl:mb-24 2xl:mb-12 h-screen flex flex-col gap-7 justify-center items-center transition-all transform-gpu">
|
<main className="mb-32 xl:mb-24 2xl:mb-12 xs:px-5 md:px-0 h-screen flex flex-col gap-7 justify-center items-center transition-all transform-gpu">
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<h1
|
<h1
|
||||||
className={cn(
|
className={cn(
|
||||||
@ -71,7 +71,7 @@ const MojangStatusPage = async (): Promise<ReactElement> => {
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
{/* Server Statuses */}
|
{/* Server Statuses */}
|
||||||
<div className="w-[21.5rem] xs:w-[29rem] sm:w-[33.5rem] px-5 py-3.5 flex flex-col gap-2.5 bg-muted rounded-xl divide-y-2 divide-zinc-700/40 transition-all transform-gpu">
|
<div className="w-full sm:w-[33.5rem] px-5 py-3.5 flex flex-col gap-2.5 bg-muted rounded-xl divide-y-2 divide-zinc-700/40 transition-all transform-gpu">
|
||||||
{servers.map(
|
{servers.map(
|
||||||
(server: MojangServer, index: number): ReactElement => {
|
(server: MojangServer, index: number): ReactElement => {
|
||||||
const status: MojangServerStatus = server.status; // The status of the server
|
const status: MojangServerStatus = server.status; // The status of the server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user