mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
29 lines
808 B
JavaScript
29 lines
808 B
JavaScript
import { siteConfig } from '@/lib/config'
|
|
import SmartLink from '@/components/SmartLink'
|
|
import { MenuList } from './MenuList'
|
|
|
|
/**
|
|
* 网站顶部
|
|
* LOGO 和 菜单
|
|
* @returns
|
|
*/
|
|
export const Header = props => {
|
|
return (
|
|
<header className='w-full px-6 bg-white dark:bg-black relative z-20'>
|
|
<div className='mx-auto max-w-4xl md:flex justify-between items-center'>
|
|
<SmartLink
|
|
href='/'
|
|
className='logo py-6 w-full text-center md:text-left md:w-auto text-gray-dark no-underline flex justify-center items-center'>
|
|
{siteConfig('TITLE')}
|
|
</SmartLink>
|
|
<div className='w-full md:w-auto text-center md:text-right'>
|
|
{/* 右侧文字 */}
|
|
</div>
|
|
</div>
|
|
|
|
{/* 菜单 */}
|
|
<MenuList {...props} />
|
|
</header>
|
|
)
|
|
}
|