medium-bg-color

This commit is contained in:
tangly1024.com
2023-02-08 17:21:22 +08:00
parent d20a97b07c
commit 9d9e5e37e8

View File

@@ -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>
)
}