重构文件结构,调整 Header 和 Footer 组件的导入路径
This commit is contained in:
22
src/app/(home)/layout.tsx
Normal file
22
src/app/(home)/layout.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user