Files
cstb-next/src/app/page.tsx

21 lines
486 B
TypeScript
Raw Normal View History

2024-09-20 23:15:42 +08:00
"use client";
import { useRouter } from "next/navigation";
const Home = () => {
const router = useRouter();
return (
<main className="bg-[#f1f0f2] h-screen w-full flex flex-col gap-6 items-center justify-center">
<h1 className="text-4xl font-bold text-zinc-800">CS </h1>
<button
onClick={() => router.push("/home")}
className="px-4 py-1 rounded bg-zinc-200"
>
</button>
</main>
);
};
export default Home;