mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
38 lines
1.7 KiB
JavaScript
38 lines
1.7 KiB
JavaScript
import BLOG from '@/blog.config'
|
|
import Link from 'next/link'
|
|
import CONFIG_SIMPLE from '../config_simple'
|
|
// import CONFIG_SIMPLE from '../config_simple'
|
|
|
|
/**
|
|
* 网站顶部
|
|
* @returns
|
|
*/
|
|
export const Header = (props) => {
|
|
const { siteInfo } = props
|
|
|
|
return (
|
|
<header className="text-center justify-between items-center px-6 bg-white h-80 dark:bg-black relative z-10">
|
|
<div className="float-none inline-block py-12">
|
|
<Link href='/'>
|
|
{/* 可使用一张单图作为logo */}
|
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
|
{/* <img className='max-h-48 hover:opacity-60 duration-200 transition-all cursor-pointer' src={CONFIG_SIMPLE.LOGO_IMG}/> */}
|
|
<div className='flex space-x-6'>
|
|
<div className='hover:rotate-45 hover:scale-125 transform duration-200 cursor-pointer'>
|
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
|
<img src={siteInfo?.icon} className='rounded-full' width={160} alt={BLOG.AUTHOR} />
|
|
</div>
|
|
|
|
<div>
|
|
<div className='text-3xl font-serif dark:text-white py-2 hover:scale-105 transform duration-200'>{BLOG.AUTHOR}</div>
|
|
<div className='font-light dark:text-white py-2 hover:scale-105 transform duration-200 text-center' dangerouslySetInnerHTML={{ __html: CONFIG_SIMPLE.LOGO_DESCRIPTION }}/>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
|
|
<div className='text-xs mt-4 text-gray-500 dark:text-gray-300'>{siteInfo?.description}</div>
|
|
</div>
|
|
</header>
|
|
)
|
|
}
|