mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
medium-bg-color
This commit is contained in:
@@ -27,45 +27,48 @@ const LayoutBase = props => {
|
||||
const [tocVisible, changeTocVisible] = useState(false)
|
||||
|
||||
return (
|
||||
<ThemeGlobalMedium.Provider value={{ tocVisible, changeTocVisible }} className='bg-white dark:bg-hexo-black-gray w-full h-full min-h-screen justify-center dark:text-gray-300'>
|
||||
<CommonHead meta={meta} />
|
||||
<main id='wrapper' className={(BLOG.LAYOUT_SIDEBAR_REVERSE ? 'flex-row-reverse' : '') + 'relative flex justify-between w-full h-full mx-auto'}>
|
||||
{/* 桌面端左侧菜单 */}
|
||||
{/* <LeftMenuBar/> */}
|
||||
<ThemeGlobalMedium.Provider value={{ tocVisible, changeTocVisible }}>
|
||||
<div className='bg-white dark:bg-hexo-black-gray w-full h-full min-h-screen justify-center dark:text-gray-300'>
|
||||
<CommonHead meta={meta} />
|
||||
|
||||
<div id='container-inner' className='w-full relative z-10'>
|
||||
{/* 移动端顶部菜单 */}
|
||||
<TopNavBar {...props}/>
|
||||
<div className='px-7 max-w-5xl justify-center mx-auto min-h-screen'>
|
||||
{slotTop}
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
<main id='wrapper' className={(BLOG.LAYOUT_SIDEBAR_REVERSE ? 'flex-row-reverse' : '') + 'relative flex justify-between w-full h-full mx-auto'}>
|
||||
{/* 桌面端左侧菜单 */}
|
||||
{/* <LeftMenuBar/> */}
|
||||
|
||||
{/* 桌面端右侧 */}
|
||||
<div className='hidden xl:block border-l dark:border-transparent w-96 relative z-10'>
|
||||
<div className='py-14 px-6 sticky top-0'>
|
||||
<Tabs>
|
||||
{slotRight}
|
||||
<div key={locale.NAV.ABOUT}>
|
||||
{router.pathname !== '/search' && <SearchInput className='mt-6 mb-12' />}
|
||||
{showInfoCard && <InfoCard {...props} />}
|
||||
{CONFIG_MEDIUM.WIDGET_REVOLVER_MAPS === 'true' && <RevolverMaps />}
|
||||
<div id='container-inner' className='w-full relative z-10'>
|
||||
{/* 移动端顶部菜单 */}
|
||||
<TopNavBar {...props} />
|
||||
<div className='px-7 max-w-5xl justify-center mx-auto min-h-screen'>
|
||||
{slotTop}
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 桌面端右侧 */}
|
||||
<div className='hidden xl:block border-l dark:border-transparent w-96 relative z-10'>
|
||||
<div className='py-14 px-6 sticky top-0'>
|
||||
<Tabs>
|
||||
{slotRight}
|
||||
<div key={locale.NAV.ABOUT}>
|
||||
{router.pathname !== '/search' && <SearchInput className='mt-6 mb-12' />}
|
||||
{showInfoCard && <InfoCard {...props} />}
|
||||
{CONFIG_MEDIUM.WIDGET_REVOLVER_MAPS === 'true' && <RevolverMaps />}
|
||||
</div>
|
||||
</Tabs>
|
||||
<Live2D />
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div className='fixed right-0 bottom-0 hidden md:block lg:mr-6 z-20'>
|
||||
|
||||
</div>
|
||||
|
||||
{/* 移动端底部 */}
|
||||
<Footer title={siteInfo?.title} />
|
||||
<BottomMenuBar {...props} className='block md:hidden' />
|
||||
</div>
|
||||
</Tabs>
|
||||
<Live2D/>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div className='fixed right-0 bottom-0 hidden md:block lg:mr-6 z-20'>
|
||||
|
||||
</div>
|
||||
|
||||
{/* 移动端底部 */}
|
||||
<Footer title={siteInfo?.title}/>
|
||||
<BottomMenuBar {...props} className='block md:hidden' />
|
||||
</ThemeGlobalMedium.Provider>
|
||||
</ThemeGlobalMedium.Provider>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user