重构文件结构,调整 Header 和 Footer 组件的导入路径

This commit is contained in:
2025-04-25 09:19:31 +08:00
parent 28c17a2be6
commit 8b742bdc34
12 changed files with 7 additions and 7 deletions

22
src/app/(home)/layout.tsx Normal file
View File

@@ -0,0 +1,22 @@
import Header from '@/app/(home)/@header/page'
import Footer from '@/app/(home)/@footer/page'
import {ReactNode} from 'react'
export type HomeLayoutProps = {
children: ReactNode
}
export default function HomeLayout(props: HomeLayoutProps) {
return (
<div className={`overflow-auto bg-blue-50 flex flex-col items-stretch relative`}>
{/* 页头 */}
<Header/>
{/* 正文 */}
{props.children}
{/* 页脚 */}
<Footer/>
</div>
)
}