加入滚动分页组件,页面微调

This commit is contained in:
tangly1024
2021-10-15 13:02:31 +08:00
parent fb4b93d5f1
commit 4452d39e06
7 changed files with 199 additions and 117 deletions

View File

@@ -4,7 +4,7 @@ import TagItemMini from '@/components/TagItemMini'
const BlogPost = ({ post }) => {
return (
<article key={post.id}
className='inline-block border dark:border-gray-600 my-2 w-full md:max-w-md bg-white dark:bg-gray-700 dark:hover:bg-gray-600 overflow-hidden'>
className='animate__animated animate__fadeIn inline-block border dark:border-gray-600 my-2 w-full md:max-w-md bg-white dark:bg-gray-700 dark:hover:bg-gray-600 overflow-hidden'>
{/* 封面图 */}
{post.page_cover && post.page_cover.length > 1 && (
<a href={`${BLOG.path}/article/${post.slug}`} className='md:flex-shrink-0 md:w-52 md:h-52 rounded-lg'>