样式微调、加入背景色,加入Tidio在线聊天

This commit is contained in:
tangly1024
2021-10-29 17:50:41 +08:00
parent b0164e1e39
commit 634ea6c389
10 changed files with 29 additions and 16 deletions

View File

@@ -8,6 +8,7 @@ import TopNav from '@/components/TopNav'
import Footer from '@/components/Footer'
import SideBar from '@/components/SideBar'
import JumpToTop from '@/components/JumpToTop'
import ReactCanvasNest from 'react-canvas-nest'
const BaseLayout = ({ children, layout, fullWidth, tags, meta, post, ...customMeta }) => {
let windowTop = 0
@@ -36,15 +37,16 @@ const BaseLayout = ({ children, layout, fullWidth, tags, meta, post, ...customMe
return (
<div id='wrapper' className={[BLOG.font, theme].join(' ')}>
<CommonHead meta={meta} />
<ReactCanvasNest style = {{ zIndex: 0, position: 'fixed' }} />
<TopNav tags={tags} post={post} />
{/* Middle Wrapper */}
<main className='flex bg-gray-100'>
<SideBar tags={tags} post={post} />
<div className='flex flex-grow' ref={targetRef}>
{children}
<JumpToTop targetRef={targetRef} showPercent={true} />
{children}
</div>
<JumpToTop targetRef={targetRef} showPercent={true} />
</main>
<Footer />