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;
+ }
+
`}
}