From 4a5083d11421dd37e5a616644bbf7bec0c322160 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 15 Nov 2021 13:53:11 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E5=8D=A1=E7=89=8C=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BlogPostCard.js | 6 +++--- components/BlogPostListScroll.js | 32 +++++++++++--------------------- 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 54e18c71..b30cb5db 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -6,11 +6,11 @@ import React from 'react' const BlogPostCard = ({ post }) => { return (
+ className='animate__animated animate__fadeIn animate__faster xl:flex shadow-card border dark:border-gray-600 mb-6 w-full bg-white bg-opacity-80 dark:bg-gray-800 dark:hover:bg-gray-700 overflow-hidden'> {/* 封面图 */} {post.page_cover && post.page_cover.length > 1 && ( - {post.title} )} @@ -18,7 +18,7 @@ const BlogPostCard = ({ post }) => {
{post.title}
+ className='cursor-pointer my-3 text-xl leading-tight font-bold text-black dark:text-gray-100 hover:underline'>{post.title}

{post.summary}

diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js index 3755f663..f62f2983 100644 --- a/components/BlogPostListScroll.js +++ b/components/BlogPostListScroll.js @@ -53,27 +53,17 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory, } else { return
- {currentCategory && ( -
-
{currentCategory}
-
- )} - - {currentSearch && ( -
-
关键字:{currentSearch}
-
- )} - - {currentTag && ( -
-
- {currentTag}
-
- )} +
+ {currentCategory && ( +
{currentCategory}
+ )} + {currentSearch && ( +
关键字:{currentSearch}
+ )} + {currentTag && ( +
{currentTag}
+ )} +
{/* 文章列表 */}