From e199866baa34f2c56a9669c0d417c3c93291fde6 Mon Sep 17 00:00:00 2001 From: real-jacket <1762982273@qq.com> Date: Sun, 3 Sep 2023 23:12:22 +0800 Subject: [PATCH 1/2] style(heo): fix heo style --- themes/heo/components/Hero.js | 342 +++++++++++++------- themes/heo/index.js | 593 ++++++++++++++++++++-------------- themes/heo/style.js | 69 ++-- 3 files changed, 618 insertions(+), 386 deletions(-) diff --git a/themes/heo/components/Hero.js b/themes/heo/components/Hero.js index b9269561..14cad8b0 100644 --- a/themes/heo/components/Hero.js +++ b/themes/heo/components/Hero.js @@ -17,18 +17,24 @@ import CONFIG from '../config' */ const Hero = props => { return ( -
+
+
+ {/* 左侧banner组 */} + -
- - {/* 左侧banner组 */} - - - {/* 右侧置顶文章组 */} - - -
-
+ {/* 右侧置顶文章组 */} + +
+
) } @@ -38,13 +44,16 @@ const Hero = props => { */ function BannerGroup(props) { return ( - // 左侧英雄区 -
- {/* 动图 */} - - {/* 导航分类 */} - -
+ // 左侧英雄区 +
+ {/* 动图 */} + + {/* 导航分类 */} + +
) } @@ -64,25 +73,43 @@ function Banner(props) { router.push(`${BLOG.SUB_PATH}/${randomPost?.slug}`) } - return
- -