Files
NotionNext/themes/Fukasawa/components/AsideLeft.js
2022-02-27 22:04:06 +08:00

55 lines
1.4 KiB
JavaScript

import BLOG from '@/blog.config'
import Logo from './Logo'
import GroupCategory from './GroupCategory'
import GroupMenu from './GroupMenu'
import GroupTag from './GroupTag'
import SearchInput from './SearchInput'
import SiteInfo from './SiteInfo'
import Catalog from './Catalog'
function AsideLeft (props) {
const { tags, currentTag, categories, currentCategory, post } = props
console.log(post)
return <div className='w-72 bg-white min-h-screen px-10 py-14 hidden lg:block'>
<Logo />
<section className='flex flex-col text-gray-600'>
<hr className='w-12 my-8' />
<GroupMenu {...props}/>
</section>
<section className='flex flex-col text-gray-600'>
<hr className='w-12 my-8' />
<SearchInput/>
</section>
<section className='flex flex-col'>
<hr className='w-12 my-8 ' />
{ BLOG.DESCRIPTION }
</section>
<section className='flex flex-col'>
<hr className='w-12 my-8 ' />
<GroupTag tags={tags} currentTag={currentTag}/>
</section>
<section className='flex flex-col'>
<hr className='w-12 my-8 ' />
<GroupCategory categories={categories} currentCategory={currentCategory}/>
</section>
<section className='flex flex-col'>
<hr className='w-12 my-8 ' />
<SiteInfo/>
</section>
<section className='sticky top-0 pt-12'>
<Catalog toc={post?.toc}/>
</section>
</div>
}
export default AsideLeft