Frontend/src/app/page.tsx

38 lines
1009 B
TypeScript
Raw Normal View History

2024-04-14 18:01:57 +00:00
import Link from "next/link";
type Button = {
title: string;
url: string;
};
const buttons: Button[] = [
{ title: "Get Started", url: "/player" },
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-14 16:45:04 +00:00
export default function Home() {
return (
2024-04-14 18:01:57 +00:00
<div className="text-center flex flex-col justify-center">
<h1 className="text-4xl">Minecraft Utilities</h1>
<p className="text-lg">
We provide a convenient API for Minecraft, simplifying the usage for players and developers.
</p>
<div className="mt-4 flex flex-row gap-2 justify-center">
{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
);
}