mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
@@ -73,6 +73,9 @@ function Banner(props) {
|
||||
router.push(`${siteConfig('SUB_PATH', '')}/${randomPost?.slug}`)
|
||||
}
|
||||
|
||||
// 遮罩文字
|
||||
const coverTitle = siteConfig('HEO_HERO_COVER_TITLE')
|
||||
|
||||
return (
|
||||
<div
|
||||
id='banners'
|
||||
@@ -99,10 +102,10 @@ function Banner(props) {
|
||||
id='banner-cover'
|
||||
style={{ backdropFilter: 'blur(15px)' }}
|
||||
className={
|
||||
'rounded-xl overflow-hidden opacity-0 group-hover:opacity-100 duration-300 transition-all bg-[#4259efdd] dark:bg-[#dca846] dark:text-white cursor-pointer absolute w-full h-full top-0 flex justify-start items-center'
|
||||
'z-20 rounded-xl overflow-hidden opacity-0 group-hover:opacity-100 duration-300 transition-all bg-[#4259efdd] dark:bg-[#dca846] dark:text-white cursor-pointer absolute w-full h-full top-0 flex justify-start items-center'
|
||||
}>
|
||||
<div className='ml-12 -translate-x-32 group-hover:translate-x-0 duration-300 transition-all ease-in'>
|
||||
<div className='text-7xl text-white font-extrabold'>随便逛逛</div>
|
||||
<div className='text-7xl text-white font-extrabold'>{coverTitle}</div>
|
||||
<div className='-ml-3 text-gray-300'>
|
||||
<ArrowSmallRight className={'w-24 h-24 stroke-2'} />
|
||||
</div>
|
||||
|
||||
@@ -24,6 +24,8 @@ const CONFIG = {
|
||||
HEO_HERO_TITLE_4: '新版上线',
|
||||
HEO_HERO_TITLE_5: 'NotionNext4.0 轻松定制主题',
|
||||
HEO_HERO_TITLE_LINK: 'https://tangly1024.com',
|
||||
// 英雄区遮罩文字
|
||||
HEO_HERO_COVER_TITLE: '随便逛逛',
|
||||
|
||||
// 英雄区显示三个置顶分类
|
||||
HEO_HERO_CATEGORY_1: { title: '必看精选', url: '/tag/必看精选' },
|
||||
|
||||
Reference in New Issue
Block a user