diff --git a/Frontend/src/app/(pages)/mojang/page.tsx b/Frontend/src/app/(pages)/mojang/page.tsx index fba0e69..917f6e9 100644 --- a/Frontend/src/app/(pages)/mojang/page.tsx +++ b/Frontend/src/app/(pages)/mojang/page.tsx @@ -5,6 +5,7 @@ import Link from "next/link"; import { ReactElement } from "react"; import { getMojangServerStatus, + MojangServer, MojangServerStatus, MojangServerStatusResponse, } from "restfulmc-lib"; @@ -46,42 +47,44 @@ const MojangStatusPage = async (): Promise => { {/* Server Statuses */}
- {servers.map((server, index) => { - const status: MojangServerStatus = server.status; // The status of the server - return ( -
0 && "pt-2" - )} - > -
-

- {server.name} -

- - {server.endpoint} - -
- - {/* Status */} -

{ + const status: MojangServerStatus = server.status; // The status of the server + return ( +
0 && "pt-2" )} > - {status} -

-
- ); - })} +
+

+ {server.name} +

+ + {server.endpoint} + +
+ + {/* Status */} +

+ {status} +

+
+ ); + } + )} ); @@ -90,7 +93,9 @@ const MojangStatusPage = async (): Promise => { /** * The styles for each status. */ -const statusStyles: any = { +const statusStyles: { + [status: string]: string; +} = { ONLINE: "text-green-500", DEGRADED: "text-yellow-500", OFFLINE: "text-red-500", diff --git a/Frontend/src/app/(pages)/page.tsx b/Frontend/src/app/(pages)/page.tsx index a3dba86..24b5898 100644 --- a/Frontend/src/app/(pages)/page.tsx +++ b/Frontend/src/app/(pages)/page.tsx @@ -2,7 +2,7 @@ import FeaturedContent from "@/components/landing/featured-content"; import Hero from "@/components/landing/hero"; import StatisticCounters from "@/components/landing/statistic-counters"; import { ReactElement } from "react"; -import HeroBackground from "../components/landing/background"; +import HeroBackground from "@/components/landing/background"; /** * The landing page. diff --git a/Frontend/src/app/components/embed.tsx b/Frontend/src/app/components/embed.tsx index c82d51f..62595a0 100644 --- a/Frontend/src/app/components/embed.tsx +++ b/Frontend/src/app/components/embed.tsx @@ -12,6 +12,7 @@ type EmbedProps = { /** * The color of this embed, undefined * for no custom color. + * // TODO: make this work lol */ color?: string | undefined; @@ -52,7 +53,6 @@ const Embed = ({ twitter: { card: "summary", }, - themeColor: color, }; }; export default Embed; diff --git a/Frontend/src/app/components/footer.tsx b/Frontend/src/app/components/footer.tsx index 5fd1cd0..01671e9 100644 --- a/Frontend/src/app/components/footer.tsx +++ b/Frontend/src/app/components/footer.tsx @@ -6,6 +6,11 @@ import { minecrafter } from "@/font/fonts"; import { cn } from "@/lib/utils"; import { FooterLinks } from "@/types/config"; +/** + * The footer for the site. + * + * @returns the footer jsx + */ const Footer = (): ReactElement => (