update: setup layouts and basic ui
This commit is contained in:
20
src/app/page.tsx
Normal file
20
src/app/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user