From 325fe625699c729a78cd039b44eefe390240eefc Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 20 Apr 2024 21:26:27 +0100 Subject: [PATCH] use the new server preview --- src/app/components/player/lookup-player.tsx | 1 - src/app/components/server/server-view.tsx | 36 ++++---------------- src/app/font/Minecraft.otf | Bin 11424 -> 0 bytes src/app/font/fonts.ts | 10 ------ 4 files changed, 6 insertions(+), 41 deletions(-) delete mode 100644 src/app/font/Minecraft.otf diff --git a/src/app/components/player/lookup-player.tsx b/src/app/components/player/lookup-player.tsx index 65a7817..cb156da 100644 --- a/src/app/components/player/lookup-player.tsx +++ b/src/app/components/player/lookup-player.tsx @@ -24,7 +24,6 @@ export function LookupPlayer({ currentPlayer }: PlayerLookupProps): ReactElement /** * Lookup a server based on the platform * - * @param platform the server platform * @param query the query to lookup */ const lookupPlayer = async (query: string) => { diff --git a/src/app/components/server/server-view.tsx b/src/app/components/server/server-view.tsx index 82b7f26..af7bd20 100644 --- a/src/app/components/server/server-view.tsx +++ b/src/app/components/server/server-view.tsx @@ -3,9 +3,6 @@ import Image from "next/image"; import { ReactElement } from "react"; import { CodeDialog } from "../code-dialog"; import { Button } from "../ui/button"; -import config from "@root/config.json"; -import { cn } from "@/app/common/utils"; -import { minecraft } from "@/app/font/fonts"; import { CacheInformation } from "@/app/components/cache-information"; type ServerViewProps = { @@ -23,35 +20,14 @@ type ServerViewProps = { export function ServerView({ server, favicon }: ServerViewProps): ReactElement { return (
-
- {/* Favicon */} +
{`${server.hostname}'s - - {/* Name & MOTD */} -
-

{server.hostname}

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

; - })} -
- - {/* Ping */} -
-

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

- Ping! -
HKjXHJ|MXUoI`XJ(R~@4x@OZ>g>( zIZ4%d_3pd(zyI?6%e}X%R;*gJg34$wMXBxTB}uvWC zO@4rgny$TO@e;a(J|vp33eT-8Zk#&p^uK*AO=LCWdEJK1?b|-uS~EZtorAuvO&#qU zxxb2!2A!;{td3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#alIkv{jv`}xs^jNEc=!??3YbDC?4Th_k zC#v|;#b=&MzNUJzueIl05$dgF+z(ULuuKRnP6{_mMP{pO{mPIdYZN^#5HVGQNckyjRHI^V4hDBBq$(Z z%Y6YFAe}S`<$Uc@<{|!)@CXCLV{E%NqaX>@Uvx4 z7+?G^K>kY+;jcXWZ$Arv;R#=+pU2EN_c5Kh7tR^(nd$i|)AP-}Qa=wjkNb`63(@=` zV}_5p^PI#m@{N8>V{GNV;pmP0AaB!W?mWi4_|A6of5{AQrm4oochkpo+{bbaPKL(l z$M>LKOlM^9d^4Blnak)??4AN$v3}+iyo^4@X#bSH;p8*!d>I}7SQ$odgJUy%p!4C~ O>;L=L{1E*A?*9XkawR|j diff --git a/src/app/font/fonts.ts b/src/app/font/fonts.ts index a67e6bc..a97737c 100644 --- a/src/app/font/fonts.ts +++ b/src/app/font/fonts.ts @@ -1,16 +1,6 @@ import { Inter } from "next/font/google"; -import localFont from "next/font/local"; -import { NextFont } from "next/dist/compiled/@next/font"; - /** * The default font to use for the site. */ export const inter = Inter({ subsets: ["latin"] }); - -/** - * The Minecraft font to use for the site. - */ -export const minecraft: NextFont = localFont({ - src: "../font/Minecraft.otf", -});