init structure

This commit is contained in:
2025-03-17 00:50:03 +08:00
parent 3c5a354db1
commit ffe351d14f
2 changed files with 99 additions and 35 deletions

View File

@@ -1,50 +1,19 @@
"use client"
import Nav from "@/components/window/Nav"
import { Button } from "@heroui/react"
// import { open } from "@tauri-apps/plugin-dialog"
import { useRouter } from "next/navigation"
import React from "react"
import { Prepare } from "@/components/cstb/Prepare"
const Home = () => {
const router = useRouter()
// const [file, setFile] = React.useState<string | null>("")
// const openFile = async () => {
// const filePath = await open({
// multiple: true,
// directory: false,
// })
// setFile(filePath?.join("\n") || " ")
// }
return (
<>
<Nav />
<main
className="flex flex-col items-center justify-center w-full h-screen gap-6"
data-tauri-drag-region
>
<main className="flex flex-col items-center justify-center w-full h-screen gap-6" data-tauri-drag-region>
<h1 className="text-4xl font-bold tracking-wide">CS </h1>
<Button
onPress={() => router.push("/home")}
variant="solid"
color="primary"
size="sm"
>
</Button>
{/* <button
type="button"
onClick={openFile}
className="px-4 py-1 text-white bg-blue-500 rounded"
>
选择文件
</button>
<p className="text-center bg-zinc-50">{file}</p> */}
<Prepare />
</main>
</>
)
}
export default Home
export default Home