Use the Minecraft font for the server response
This commit is contained in:
parent
9a78a6988b
commit
ab05ad8a3e
@ -6,6 +6,7 @@ import {
|
|||||||
CachedJavaMinecraftServer,
|
CachedJavaMinecraftServer,
|
||||||
} from "restfulmc-lib";
|
} from "restfulmc-lib";
|
||||||
import config from "@/config";
|
import config from "@/config";
|
||||||
|
import { minecraft } from "@/font/fonts";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The props for a server result.
|
* The props for a server result.
|
||||||
@ -30,7 +31,7 @@ const ServerResult = ({ server }: ServerResultProps): ReactElement => {
|
|||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-[29rem] relative p-2 flex gap-2 rounded-lg pointer-events-none",
|
"w-[29rem] relative p-2 flex gap-2 rounded-lg pointer-events-none",
|
||||||
'bg-[url("/media/server-background.png")]'
|
`bg-[url("/media/server-background.png")] ${minecraft.className}`
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{/* Favicon */}
|
{/* Favicon */}
|
||||||
|
BIN
Frontend/src/app/font/Minecraft.otf
Normal file
BIN
Frontend/src/app/font/Minecraft.otf
Normal file
Binary file not shown.
@ -13,3 +13,7 @@ export const notoSans: NextFont = Noto_Sans({ subsets: ["latin"] });
|
|||||||
export const minecrafter: NextFont = localFont({
|
export const minecrafter: NextFont = localFont({
|
||||||
src: "../font/Minecrafter.ttf",
|
src: "../font/Minecrafter.ttf",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const minecraft: NextFont = localFont({
|
||||||
|
src: "../font/Minecraft.otf",
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user