-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.tsx
23 lines (16 loc) · 922 Bytes
/
page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use client';
import Link from "next/link";
import { useRouter } from 'next/navigation'; // Import useRouter
export default function Home() {
const router = useRouter();
console.log(router);
return (
<div className="flex flex-col items-center justify-center min-h-screen py-2 bg-gray-900 text-white">
<h1 className="text-6xl font-bold text-green-400 align-middle text-nowrap text-center">Welcome to the Restaurant Reviews App</h1>
<p className="mt-3 text-2xl font-light">Get started by filling out the review form below</p>
{/* <button onClick={() => router.push('/form')} className="mt-6 text-lg bg-gray-800 hover:bg-gray-700 text-white font-medium py-2 px-4 rounded">Start Review</button> */}
<Link href="/form">
<p className="mt-6 text-lg bg-gray-800 hover:bg-gray-700 text-white font-medium py-2 px-4 rounded">Start Review</p></Link>
</div>
);
}