mastermind/web/app/page.js

28 lines
961 B
JavaScript
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Link from 'next/link';
export default function Home() {
return (
<main className="flex flex-col items-center gap-8 sm:gap-10 p-4 sm:p-8 h-screen w-full max-w-2xl text-center justify-center">
<h1 className="text-3xl sm:text-4xl font-bold mt-4">Welcome to Mastermind Game</h1>
<div className="flex flex-col gap-4 sm:gap-6 w-full text-lg sm:text-2xl">
<Link
href="/single-player"
className="block py-3 sm:py-4 rounded-lg bg-blue-600 hover:bg-blue-700 transition"
>
Single Player
</Link>
<Link
href="/multiplayer"
className="block py-3 sm:py-4 rounded-lg bg-purple-600 hover:bg-purple-700 transition"
>
Multiplayer
</Link>
</div>
<footer className="absolute bottom-4 left-0 w-full text-center text-sm text-neutral-500">
&copy; 2025 Mehmet Kılıç. All rights reserved. V0.3
</footer>
</main>
);
}