mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 23:16:48 +00:00
@@ -58,7 +58,6 @@ const LayoutBase = props => {
|
|||||||
// 全屏模式下的最大宽度
|
// 全屏模式下的最大宽度
|
||||||
const { fullWidth } = useGlobal()
|
const { fullWidth } = useGlobal()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
console.log(router)
|
|
||||||
|
|
||||||
const headerSlot = (
|
const headerSlot = (
|
||||||
<header>
|
<header>
|
||||||
@@ -81,7 +80,7 @@ const LayoutBase = props => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// 右侧栏 用户信息+标签列表
|
// 右侧栏 用户信息+标签列表
|
||||||
const slotRight = fullWidth ? null : <SideRight {...props} />
|
const slotRight = (router.route === '/404' || fullWidth) ? null : <SideRight {...props} />
|
||||||
|
|
||||||
const maxWidth = fullWidth ? 'max-w-[96rem] mx-auto' : 'max-w-[86rem]' // 普通最大宽度是86rem和顶部菜单栏对齐,留空则与窗口对齐
|
const maxWidth = fullWidth ? 'max-w-[96rem] mx-auto' : 'max-w-[86rem]' // 普通最大宽度是86rem和顶部菜单栏对齐,留空则与窗口对齐
|
||||||
|
|
||||||
@@ -349,26 +348,11 @@ const LayoutSlug = props => {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
const Layout404 = props => {
|
const Layout404 = props => {
|
||||||
const { meta, siteInfo } = props
|
// const { meta, siteInfo } = props
|
||||||
const { onLoading, fullWidth } = useGlobal()
|
const { onLoading, fullWidth } = useGlobal()
|
||||||
return (
|
return (
|
||||||
<div
|
<>
|
||||||
id="theme-heo"
|
{/* 主区块 */}
|
||||||
className="bg-[#f7f9fe] dark:bg-[#18171d] h-full min-h-screen flex flex-col"
|
|
||||||
>
|
|
||||||
{/* 网页SEO */}
|
|
||||||
<CommonHead meta={meta} siteInfo={siteInfo} />
|
|
||||||
<Style />
|
|
||||||
|
|
||||||
{/* 顶部嵌入 导航栏,首页放hero,文章页放文章详情 */}
|
|
||||||
<header>
|
|
||||||
{/* 顶部导航 */}
|
|
||||||
<div id="nav-bar-wrapper" className="h-16">
|
|
||||||
<NavBar {...props} />
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{/* 主区块 */}
|
|
||||||
<main
|
<main
|
||||||
id="wrapper-outer"
|
id="wrapper-outer"
|
||||||
className={`flex-grow ${fullWidth ? '' : 'max-w-4xl'} w-screen mx-auto px-5`}
|
className={`flex-grow ${fullWidth ? '' : 'max-w-4xl'} w-screen mx-auto px-5`}
|
||||||
@@ -414,7 +398,7 @@ const Layout404 = props => {
|
|||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user