mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-15 07:26:48 +00:00
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
|
|
import FlipCard from '@/components/FlipCard'
|
|
import Link from 'next/link'
|
|
import CONFIG from '../config'
|
|
|
|
/**
|
|
* 交流频道
|
|
* @returns
|
|
*/
|
|
export default function TouchMeCard() {
|
|
if (!JSON.parse(CONFIG.SOCIAL_CARD)) {
|
|
return <></>
|
|
}
|
|
return (
|
|
<div className={'relative h-28 text-white flex flex-col'}>
|
|
|
|
<FlipCard
|
|
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>
|
|
<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}>
|
|
<div className='font-[1000] text-xl h-full'>
|
|
{CONFIG.SOCIAL_CARD_TITLE_3}
|
|
</div>
|
|
</Link>}
|
|
/>
|
|
|
|
</div>
|
|
)
|
|
}
|