mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
Merge branch 'main' of https://github.com/tangly1024/NotionNext
This commit is contained in:
@@ -46,7 +46,7 @@ export function InfoCard(props) {
|
||||
<Link href='/about'><GlobeAlt className={'w-6 h-6'} /></Link>
|
||||
</div>
|
||||
<div className='bg-indigo-400 p-2 rounded-full w-10 items-center flex justify-center transition-colors duration-200 dark:bg-yellow-500 dark:hover:bg-black hover:bg-white'>
|
||||
<Link href='https://github.com/tangly1024/NotionNext'><i className='fab fa-github text-xl' />
|
||||
<Link href={CONFIG.INFO_CARD_URL}><i className='fab fa-github text-xl' />
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
|
||||
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'}>
|
||||
|
||||
@@ -14,13 +18,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'>交流频道</h2>
|
||||
<h3 className='pt-2'>加入我们的社群讨论分享</h3>
|
||||
<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={<div className='font-[1000] text-xl h-full'>
|
||||
<Link href='https://docs.tangly1024.com/article/how-to-question'>
|
||||
点击加入社群
|
||||
<Link href={CONFIG.SOCIAL_CARD_URL}>
|
||||
{CONFIG.SOCIAL_CARD_TITLE_3}
|
||||
</Link>
|
||||
</div>}
|
||||
/>
|
||||
|
||||
@@ -32,6 +32,7 @@ const CONFIG = {
|
||||
'🤖️ 数码科技爱好者',
|
||||
'🧱 团队小组发动机'
|
||||
],
|
||||
INFO_CARD_URL: 'https://github.com/tangly1024/NotionNext', // 个人资料底部按钮链接
|
||||
|
||||
// 用户技能图标
|
||||
GROUP_ICONS: [
|
||||
@@ -93,6 +94,12 @@ const CONFIG = {
|
||||
}
|
||||
],
|
||||
|
||||
SOCIAL_CARD: true, // 是否显示右侧,点击加入社群按钮
|
||||
SOCIAL_CARD_TITLE_1: '交流频道',
|
||||
SOCIAL_CARD_TITLE_2: '加入我们的社群讨论分享',
|
||||
SOCIAL_CARD_TITLE_3: '点击加入社群',
|
||||
SOCIAL_CARD_URL: 'https://docs.tangly1024.com/article/how-to-question',
|
||||
|
||||
// ***** 以下配置无效,只是预留开发 ****
|
||||
// 菜单配置
|
||||
MENU_INDEX: true, // 显示首页
|
||||
|
||||
Reference in New Issue
Block a user