add: preparation page setup
This commit is contained in:
3
src/app/(main)/users/page.tsx
Normal file
3
src/app/(main)/users/page.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function Page() {
|
||||
return <div>Users</div>
|
||||
}
|
||||
@@ -5,16 +5,16 @@ 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"
|
||||
>
|
||||
<main
|
||||
className="bg-[#f1f0f2] h-screen w-full flex flex-col gap-6 items-center justify-center"
|
||||
data-tauri-drag-region
|
||||
>
|
||||
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">CS 工具箱</h1>
|
||||
<button onClick={() => router.push("/home")} className="px-4 py-1 rounded bg-zinc-200">
|
||||
进入
|
||||
</button>
|
||||
</main>
|
||||
);
|
||||
)
|
||||
};
|
||||
|
||||
export default Home;
|
||||
|
||||
18
src/app/prepare/layout.tsx
Normal file
18
src/app/prepare/layout.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import Nav from "@/components/window/Nav"
|
||||
|
||||
export default function BaseLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div className="bg-[#f1f0f2] h-full w-full">
|
||||
<Nav />
|
||||
|
||||
<div className="flex flex-col w-full h-full">
|
||||
<main
|
||||
className="bg-[#f1f0f2] h-screen w-full flex flex-col gap-6 p-6 items-center justify-center"
|
||||
data-tauri-drag-region
|
||||
>
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
11
src/app/prepare/page.tsx
Normal file
11
src/app/prepare/page.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
export default function Page() {
|
||||
return (
|
||||
<div
|
||||
className="bg-[#f1f0f2] h-screen w-full flex flex-col gap-6 items-center justify-center"
|
||||
data-tauri-drag-region
|
||||
>
|
||||
<h1 className="text-4xl font-bold tracking-wide text-zinc-800">CS工具箱</h1>
|
||||
<p>准备环节</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user