slightly better buttons

This commit is contained in:
Gavin McDonald
2025-04-15 09:15:13 -04:00
parent 00e878282b
commit 46e56212e7
3 changed files with 10 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ export default function GamePage() {
cards: [], cards: [],
}); });
const isDM = !!dmID;
useEffect(() => { useEffect(() => {
if (gameIDParam) { if (gameIDParam) {
setGameID(Array.isArray(gameIDParam) ? gameIDParam[0] : gameIDParam); setGameID(Array.isArray(gameIDParam) ? gameIDParam[0] : gameIDParam);

View File

@@ -19,7 +19,7 @@ export default function Home() {
<main className="min-h-screen flex items-center justify-center bg-[url('/img/table3.png')] bg-cover bg-center"> <main className="min-h-screen flex items-center justify-center bg-[url('/img/table3.png')] bg-cover bg-center">
<button <button
onClick={handleCreateGame} onClick={handleCreateGame}
className="bg-blue-600 text-white text-lg px-6 py-3 rounded-xl shadow hover:bg-blue-700 transition" className="bg-gray-800 hover:bg-gray-700 text-white text-lg px-6 py-3 rounded-xl shadow transition cursor-pointer"
> >
Create New Game Create New Game
</button> </button>

View File

@@ -1,3 +1,5 @@
import Link from 'next/link';
export default function Custom404() { export default function Custom404() {
return ( return (
<main className="min-h-screen flex flex-col items-center justify-center text-center p-8 bg-[url('/img/table3.png')] bg-cover bg-center"> <main className="min-h-screen flex flex-col items-center justify-center text-center p-8 bg-[url('/img/table3.png')] bg-cover bg-center">
@@ -5,6 +7,11 @@ export default function Custom404() {
<p className="text-lg text-gray-400"> <p className="text-lg text-gray-400">
The game you're looking for doesn't exist or has expired. The game you're looking for doesn't exist or has expired.
</p> </p>
<Link href="/">
<button className="mt-4 px-4 py-2 bg-gray-800 hover:bg-gray-700 text-white rounded-xl transition cursor-pointer">
Return Home
</button>
</Link>
</main> </main>
); );
} }