16 lines
458 B
TypeScript
16 lines
458 B
TypeScript
import React from 'react';
|
|
import { useRouter } from 'next/navigation';
|
|
|
|
export default function MainPage() {
|
|
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<div className="flex flex-col items-center justify-center h-screen">
|
|
<h1 className="text-4xl font-bold">주루마블!</h1>
|
|
<button className="bg-blue-500 text-white px-4 py-2 rounded-md" onClick={() => {
|
|
router.push('/game/page');
|
|
}}>시작하기</button>
|
|
</div>
|
|
);
|
|
} |