diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 4be3d6f..35c7bea 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,15 +1,13 @@ +import { Fonts } from "@/common/fonts"; import Container from "@/components/container"; import ThemeProvider from "@/components/theme-provider"; import { Metadata, Viewport } from "next"; import { ToastContainer } from "react-toastify"; -import Config from "../../config.json"; - -import { Inter } from "next/font/google"; import "react-toastify/dist/ReactToastify.css"; import "./globals.css"; -const inter = Inter({ subsets: ["latin"] }); +import Config from "../../config.json"; export const viewport: Viewport = { themeColor: "#3498DB", @@ -39,7 +37,7 @@ export default function RootLayout({ }>) { return ( <> - +
Minecraft Utilities offers you many endpoints to get information about a minecraft server or a player.
diff --git a/src/common/fonts.ts b/src/common/fonts.ts
new file mode 100644
index 0000000..a6aa953
--- /dev/null
+++ b/src/common/fonts.ts
@@ -0,0 +1,7 @@
+import { Inter } from "next/font/google";
+
+const inter = Inter({ subsets: ["latin"] });
+
+export const Fonts = {
+ inter: inter,
+};
diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx
index 7caea27..aab6c5a 100644
--- a/src/components/navbar.tsx
+++ b/src/components/navbar.tsx
@@ -7,7 +7,6 @@ type Page = {
};
const pages: Page[] = [
- { title: "Home", url: "/" },
{ title: "Player", url: "/player" },
{ title: "Server", url: "/server" },
];
diff --git a/src/components/player-search.tsx b/src/components/player-search.tsx
index db660a2..d9abb30 100644
--- a/src/components/player-search.tsx
+++ b/src/components/player-search.tsx
@@ -1,6 +1,7 @@
"use client";
import { getPlayer } from "mcutils-library";
+import { Player } from "mcutils-library/dist/types/player/player";
import Image from "next/image";
import Link from "next/link";
import { useState } from "react";
@@ -13,7 +14,7 @@ const defaultPlayerId = "Notch";
export default function PlayerSearch() {
const [playerId, setPlayerId] = useState
- Unique ID: {player.uniqueId}
-
- Name: {player.username}
- Skin Parts
-
- {part}
-
-
+ UUID: {player.uniqueId}
+
+ Name: {player.username}
+ Skin Parts
+
+ {part}
+
+