From 4bcc7f0b0c411103bbebf651026ae5f4e7cef3f7 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 14 Jul 2023 17:12:56 +0800 Subject: [PATCH] group-category-button-icon --- themes/heo/components/Hero.js | 42 ++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/themes/heo/components/Hero.js b/themes/heo/components/Hero.js index 59e7c278..892f7052 100644 --- a/themes/heo/components/Hero.js +++ b/themes/heo/components/Hero.js @@ -108,30 +108,40 @@ function TagsGroupBar() { } /** - * 英雄区左下角3个分类 + * 英雄区左下角3个分类按钮 * @returns */ function GroupMenu() { return (
- -
+ +
必看精选
+
+ +
- -
+ +
热门文章
+
+ +
{/* 第三个标签在小屏上不显示 */} - -
+ +
实用教程
+
+ +
+
) @@ -176,8 +186,8 @@ function TodayCard({ cRef }) { const [isCoverUp, setIsCoverUp] = useState(true) /** - * 外部可以调用此方法 - */ + * 外部可以调用此方法 + */ useImperativeHandle(cRef, () => { return { coverUp: () => { @@ -187,18 +197,18 @@ function TodayCard({ cRef }) { }) /** - * 点击更多 - * @param {*} e - */ + * 点击更多 + * @param {*} e + */ function handleClickMore(e) { e.stopPropagation() setIsCoverUp(false) } /** - * 点击卡片跳转的链接 - * @param {*} e - */ + * 点击卡片跳转的链接 + * @param {*} e + */ function handleCardClick(e) { router.push('https://tangly1024.com') } @@ -210,7 +220,7 @@ function TodayCard({ cRef }) {
新版上线
NotionNext4.0 轻松定制主题
-
+
更多推荐