mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 23:16:54 +00:00
主题配置文件Notion化
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
import FlipCard from '@/components/FlipCard'
|
||||
import Link from 'next/link'
|
||||
import CONFIG from '../config'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
* 交流频道
|
||||
* @returns
|
||||
*/
|
||||
export default function TouchMeCard() {
|
||||
if (!JSON.parse(CONFIG.SOCIAL_CARD)) {
|
||||
if (!JSON.parse(siteConfig('HEO_SOCIAL_CARD', null, CONFIG))) {
|
||||
return <></>
|
||||
}
|
||||
return (
|
||||
@@ -18,13 +19,13 @@ export default function TouchMeCard() {
|
||||
className='cursor-pointer lg:p-6 p-4 border rounded-xl bg-[#4f65f0] dark:bg-yellow-600 dark:border-gray-600'
|
||||
frontContent={
|
||||
<div className='h-full'>
|
||||
<h2 className='font-[1000] text-3xl'>{CONFIG.SOCIAL_CARD_TITLE_1}</h2>
|
||||
<h3 className='pt-2'>{CONFIG.SOCIAL_CARD_TITLE_2}</h3>
|
||||
<h2 className='font-[1000] text-3xl'>{siteConfig('HEO_SOCIAL_CARD_TITLE_1', null, CONFIG)}</h2>
|
||||
<h3 className='pt-2'>{siteConfig('HEO_SOCIAL_CARD_TITLE_2', null, CONFIG)}</h3>
|
||||
<div className='absolute left-0 top-0 w-full h-full' style={{ background: 'url(https://bu.dusays.com/2023/05/16/64633c4cd36a9.png) center center no-repeat' }}></div>
|
||||
</div>}
|
||||
backContent={<Link href={CONFIG.SOCIAL_CARD_URL}>
|
||||
backContent={<Link href={siteConfig('HEO_SOCIAL_CARD_URL', null, CONFIG)}>
|
||||
<div className='font-[1000] text-xl h-full'>
|
||||
{CONFIG.SOCIAL_CARD_TITLE_3}
|
||||
{siteConfig('HEO_SOCIAL_CARD_TITLE_3', null, CONFIG)}
|
||||
</div>
|
||||
</Link>}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user