🌜 适配夜间模式

This commit is contained in:
tangly1024
2021-09-27 15:47:01 +08:00
parent 383f3dc089
commit 98bbc014a3
5 changed files with 8 additions and 8 deletions

View File

@@ -3,11 +3,11 @@ import BLOG from '@/blog.config'
const BlogPost = ({ post }) => {
return (
<article key={post.id}
className='md:mx-2 w-full md:max-w-md duration-200 transform hover:scale-105 hover:shadow-2xl bg-white dark:bg-gray-800 dark:hover:bg-gray-600 overflow-hidden'>
className='md:mx-2 w-full md:max-w-md duration-200 transform hover:scale-105 hover:shadow-2xl rounded-3xl bg-white dark:bg-gray-800 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'>
<img className='w-full max-h-60 object-cover p-3 cursor-pointer' src={post.page_cover} alt={post.title} />
<img className='w-full max-h-60 object-cover cursor-pointer' src={post.page_cover} alt={post.title} />
</a>
)}