From 8aa2e58c36712cc1f2b34d13daa7d4af5b11fd10 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Fri, 25 Aug 2023 15:51:51 +0800 Subject: [PATCH 1/4] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/next/components/ArticleDetail.js | 4 ++-- themes/next/style.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/next/components/ArticleDetail.js b/themes/next/components/ArticleDetail.js index a4f575ec..f26b6691 100644 --- a/themes/next/components/ArticleDetail.js +++ b/themes/next/components/ArticleDetail.js @@ -34,7 +34,7 @@ export default function ArticleDetail(props) { data-aos-duration="300" data-aos-once="true" data-aos-anchor-placement="top-bottom" - className="subpixel-antialiased overflow-y-hidden py-10 px-5 lg:pt-24 md:px-24 dark:border-gray-700 bg-white dark:bg-hexo-black-gray" + className="subpixel-antialiased overflow-y-hidden py-10 px-5 lg:pt-24 md:px-24 dark:border-gray-700 bg-white dark:bg-hexo-black-gray article-padding" > {showArticleInfo &&
@@ -78,7 +78,7 @@ export default function ArticleDetail(props) {
} {/* Notion内容主体 */} -
+
{post && ()}
diff --git a/themes/next/style.js b/themes/next/style.js index d01b13b3..aaf580ad 100644 --- a/themes/next/style.js +++ b/themes/next/style.js @@ -15,6 +15,10 @@ const Style = () => { background-color: black; } + .article-padding { + padding: 40px; + } + `} } From 9a23443375929d4a9c090d2f70d52dcdcbf1c2bd Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Fri, 25 Aug 2023 16:02:58 +0800 Subject: [PATCH 2/4] =?UTF-8?q?style:=20=E7=BB=9F=E4=B8=80=E5=8F=B3?= =?UTF-8?q?=E4=BE=A7=E5=88=86=E7=B1=BB=E5=92=8C=E6=A0=87=E7=AD=BE=E7=9A=84?= =?UTF-8?q?=E6=9B=B4=E5=A4=9Atag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/next/components/SideAreaRight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/next/components/SideAreaRight.js b/themes/next/components/SideAreaRight.js index e23759c4..ee694d35 100644 --- a/themes/next/components/SideAreaRight.js +++ b/themes/next/components/SideAreaRight.js @@ -62,7 +62,7 @@ const SideAreaRight = (props) => { passHref className='text-gray-400 hover:text-black dark:text-gray-400 dark:hover:text-white hover:underline cursor-pointer'> - {locale.COMMON.MORE} + {locale.COMMON.MORE} From 718da30c50224cc84d7ec69d62142c490a20378c Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Fri, 25 Aug 2023 17:11:55 +0800 Subject: [PATCH 3/4] =?UTF-8?q?style:=20=E8=8F=9C=E5=8D=95=E4=B8=8B?= =?UTF-8?q?=E5=88=92=E7=BA=BF=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/next/components/BlogPostCard.js | 12 ++++++------ themes/next/style.js | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/themes/next/components/BlogPostCard.js b/themes/next/components/BlogPostCard.js index 050b33c2..90224ecd 100644 --- a/themes/next/components/BlogPostCard.js +++ b/themes/next/components/BlogPostCard.js @@ -28,10 +28,10 @@ const BlogPostCard = ({ post, showSummary }) => { data-aos-duration="500" data-aos-once="true" data-aos-anchor-placement="top-bottom" - className={`cursor-pointer hover:underline text-3xl ${showPreview ? 'text-center' : '' + className={`cursor-pointer text-3xl ${showPreview ? 'text-center' : '' } leading-tight text-gray-700 dark:text-gray-100 hover:text-blue-500 dark:hover:text-blue-400`}> - {post.title} + {post.title} @@ -48,10 +48,10 @@ const BlogPostCard = ({ post, showSummary }) => { + className="hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer font-light text-sm transform"> - {post.category} + {post.category} | @@ -60,8 +60,8 @@ const BlogPostCard = ({ post, showSummary }) => { - {post.date?.start_date} + className="hover:text-blue-500 dark:hover:text-blue-400 font-light cursor-pointer text-sm leading-4 mr-3"> + {post.date?.start_date} diff --git a/themes/next/style.js b/themes/next/style.js index aaf580ad..daf6af46 100644 --- a/themes/next/style.js +++ b/themes/next/style.js @@ -19,6 +19,20 @@ const Style = () => { padding: 40px; } + // 菜单下划线动画 + #theme-next .menu-link { + text-decoration: none; + background-image: linear-gradient(#4e80ee, #4e80ee); + background-repeat: no-repeat; + background-position: bottom center; + background-size: 0 2px; + transition: background-size 100ms ease-in-out; + } + #theme-next .menu-link:hover { + background-size: 100% 2px; + color: #4e80ee; + } + `} } From 5d6de069f3d1dcd6e38ee5c0d60ea6078ca7d419 Mon Sep 17 00:00:00 2001 From: LooseLi <1329307562@qq.com> Date: Fri, 25 Aug 2023 17:41:31 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20eslint=E4=B8=8D=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E7=BB=93=E5=B0=BE=E5=88=86=E5=8F=B7=E4=BB=A5=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index bab5ea27..9836da77 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { } }, rules: { + semi: 0, 'react/no-unknown-property': 'off', //