From ffa8511439d3dab582ee4241383529a53353d6f3 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 30 Aug 2024 18:15:23 +0800 Subject: [PATCH] =?UTF-8?q?heo=20=E5=8A=A8=E7=94=BB=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/LoadingCover.js | 4 +-- themes/heo/components/Announcement.js | 16 +++++---- themes/heo/components/CategoryBar.js | 4 +-- themes/heo/components/InfoCard.js | 7 ++-- themes/heo/components/SideRight.js | 10 +++--- themes/heo/components/TouchMeCard.js | 49 ++++++++++++++++----------- 6 files changed, 51 insertions(+), 39 deletions(-) diff --git a/components/LoadingCover.js b/components/LoadingCover.js index ca0198f2b1a..b53fa36c58d 100644 --- a/components/LoadingCover.js +++ b/components/LoadingCover.js @@ -13,7 +13,7 @@ export default function LoadingCover() { if (onLoading) { setIsVisible(true) } else { - const timeout = setTimeout(() => setIsVisible(false), 1000) // 等待淡出动画结束 + const timeout = setTimeout(() => setIsVisible(false), 1500) // 等待淡出动画结束 return () => clearTimeout(timeout) } }, [onLoading]) @@ -30,7 +30,7 @@ export default function LoadingCover() {
diff --git a/themes/heo/components/Announcement.js b/themes/heo/components/Announcement.js index 6c3feb2a42b..04955554bbc 100644 --- a/themes/heo/components/Announcement.js +++ b/themes/heo/components/Announcement.js @@ -4,13 +4,15 @@ const NotionPage = dynamic(() => import('@/components/NotionPage')) const Announcement = ({ post, className }) => { if (post?.blockMap) { - return
- {post && ( -
- -
- )} -
+ return ( +
+ {post && ( +
+ +
+ )} +
+ ) } else { return <> } diff --git a/themes/heo/components/CategoryBar.js b/themes/heo/components/CategoryBar.js index 9879d8a78cd..d5548f9d913 100644 --- a/themes/heo/components/CategoryBar.js +++ b/themes/heo/components/CategoryBar.js @@ -32,8 +32,8 @@ export default function CategoryBar(props) { return (
+ className={`wow fadeInUp flex flex-nowrap justify-between items-center h-12 mb-4 space-x-2 w-full lg:bg-white dark:lg:bg-[#1e1e1e] + ${border ? 'lg:border lg:hover:border dark:lg:border-gray-800 hover:border-indigo-600 dark:hover:border-yellow-600 ' : ''} py-2 lg:px-2 rounded-xl transition-colors duration-200`}>
+ {/* 信息卡牌第一行 */}
{/* 问候语 */} + {/* 头像 */}
{siteConfig('AUTHOR')} {/* 公告栏 */} -
- -
+
diff --git a/themes/heo/components/SideRight.js b/themes/heo/components/SideRight.js index c4dbffd7943..464e2081068 100644 --- a/themes/heo/components/SideRight.js +++ b/themes/heo/components/SideRight.js @@ -34,23 +34,25 @@ export default function SideRight(props) { return (
- +
{/* 文章页显示目录 */} {post && post.toc && post.toc.length > 0 && ( - + )} {/* 联系交流群 */} - +
+ +
{/* 最新文章列表 */} diff --git a/themes/heo/components/TouchMeCard.js b/themes/heo/components/TouchMeCard.js index 2388a9a56f5..42129ae0fe4 100644 --- a/themes/heo/components/TouchMeCard.js +++ b/themes/heo/components/TouchMeCard.js @@ -1,8 +1,7 @@ - import FlipCard from '@/components/FlipCard' +import { siteConfig } from '@/lib/config' import Link from 'next/link' import CONFIG from '../config' -import { siteConfig } from '@/lib/config' /** * 交流频道 @@ -13,23 +12,33 @@ export default function TouchMeCard() { return <> } return ( -
- - -

{siteConfig('HEO_SOCIAL_CARD_TITLE_1', null, CONFIG)}

-

{siteConfig('HEO_SOCIAL_CARD_TITLE_2', null, CONFIG)}

-
-
} - backContent={ -
- {siteConfig('HEO_SOCIAL_CARD_TITLE_3', null, CONFIG)} -
- } - /> - -
+
+ +

+ {siteConfig('HEO_SOCIAL_CARD_TITLE_1', null, CONFIG)} +

+

+ {siteConfig('HEO_SOCIAL_CARD_TITLE_2', null, CONFIG)} +

+
+
+ } + backContent={ + +
+ {siteConfig('HEO_SOCIAL_CARD_TITLE_3', null, CONFIG)} +
+ + } + /> +
) }