优化主页,提供通用页面模板组件

This commit is contained in:
2025-12-15 14:09:17 +08:00
parent fd2afe5e01
commit c16bd76821
10 changed files with 509 additions and 475 deletions

View File

@@ -0,0 +1,16 @@
import {Children} from '@/lib/utils'
import Wrap from '../wrap'
import BreadCrumb, {BreadCrumbItem} from '../bread-crumb'
export default function HomePage(props: Children & {
path: BreadCrumbItem[]
}) {
return (
<main className="mt-20 flex flex-col gap-3 py-6">
<Wrap>
<BreadCrumb items={props.path}/>
</Wrap>
{props.children}
</main>
)
}