2024-04-14 18:01:57 +00:00
|
|
|
import Link from "next/link";
|
|
|
|
|
|
|
|
type Button = {
|
|
|
|
title: string;
|
|
|
|
url: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
const buttons: Button[] = [
|
2024-04-16 18:12:26 +00:00
|
|
|
{ title: "Get Started", url: "/player/Notch" },
|
2024-04-14 18:08:24 +00:00
|
|
|
{ title: "Documentation", url: "https://api.mcutils.xyz/swagger-ui.html" },
|
2024-04-14 18:01:57 +00:00
|
|
|
];
|
|
|
|
|
2024-04-16 20:18:08 +00:00
|
|
|
export default function Home(): JSX.Element {
|
2024-04-14 16:45:04 +00:00
|
|
|
return (
|
2024-04-14 18:01:57 +00:00
|
|
|
<div className="text-center flex flex-col justify-center">
|
2024-04-15 11:12:24 +00:00
|
|
|
<h1 className="text-4xl mb-2">Minecraft Utilities</h1>
|
2024-04-14 18:55:07 +00:00
|
|
|
<div className="text-lg">
|
|
|
|
<p>Minecraft Utilities offers you many endpoints to get information about a minecraft server or a player.</p>
|
2024-04-16 21:05:36 +00:00
|
|
|
<p>We offer you a simple and easy to use API.</p>
|
2024-04-14 18:55:07 +00:00
|
|
|
</div>
|
2024-04-14 18:01:57 +00:00
|
|
|
|
2024-04-14 18:55:07 +00:00
|
|
|
<div className="mt-6 flex flex-row gap-2 justify-center">
|
2024-04-14 18:01:57 +00:00
|
|
|
{buttons.map((button, index) => {
|
|
|
|
return (
|
|
|
|
<Link
|
|
|
|
key={index}
|
|
|
|
href={button.url}
|
2024-04-14 18:08:24 +00:00
|
|
|
target="_blank"
|
2024-04-14 18:01:57 +00:00
|
|
|
className="w-fit p-2 rounded-lg hover:text-primary transition-all cursor-pointer bg-secondary"
|
|
|
|
>
|
|
|
|
<p>{button.title}</p>
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
</div>
|
2024-04-14 17:46:37 +00:00
|
|
|
</div>
|
2024-04-14 16:45:04 +00:00
|
|
|
);
|
|
|
|
}
|