找回404,文章动画调整

This commit is contained in:
tangly1024
2021-10-19 16:46:46 +08:00
parent 31c229a3c5
commit 1d6473eac1
4 changed files with 23 additions and 25 deletions

View File

@@ -5,7 +5,7 @@ import Link from 'next/link'
const BlogPost = ({ post }) => {
return (
<article key={post.id}
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'>
className='animate__animated animate__slideInUp animate__faster 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 && (
<Link href={`${BLOG.path}/article/${post.slug}`} className='md:flex-shrink-0 md:w-52 md:h-52 rounded-lg'>

View File

@@ -1,5 +1,6 @@
import React from 'react'
import { useLocale } from '@/lib/locale'
import Link from 'next/link'
const MenuButtonGroup = ({ allowCollapse = false }) => {
const locale = useLocale()
@@ -20,17 +21,14 @@ const MenuButtonGroup = ({ allowCollapse = false }) => {
{links.map(
link =>
link.show && (
<a
key={link.id + link.icon}
title={link.to}
href={link.to}
className='py-2 px-5 hover:bg-gray-100 cursor-pointer dark:hover:bg-black duration-100 flex flex-nowrap align-middle'
>
<Link key={link.id + link.icon} title={link.to} href={link.to} >
<a className='py-2 px-5 hover:bg-gray-100 cursor-pointer dark:hover:bg-black duration-100 flex flex-nowrap align-middle' >
<div className='my-auto w-5 text-2xl justify-center flex'>
<i className={'fa ' + link.icon} />
</div>
<div className={'ml-4 w-32'}>{link.name}</div>
</a>
</a>
</Link>
)
)}
</div>