检查build

This commit is contained in:
tangly1024.com
2023-07-05 12:50:57 +08:00
parent a2b593d9db
commit 705e15a202
14 changed files with 36 additions and 276 deletions

View File

@@ -13,7 +13,7 @@ const PaginationSimple = ({ page, totalPage }) => {
const currentPage = +page
const showNext = currentPage < totalPage
const pagePrefix = router.asPath.split('?')[0].replace(/\/page\/[1-9]\d*/, '').replace(/\/$/, '')
console.log(currentPage, showNext)
return (
<div className="my-10 mx-6 flex justify-between font-medium text-black dark:text-gray-100 space-x-2">
<Link
@@ -29,7 +29,7 @@ const PaginationSimple = ({ page, totalPage }) => {
<button
rel="prev"
className={`${
currentPage === 1 ? ' bg-gray-300 text-gray-500 pointer-events-none ' : 'block text-white bg-indigo-700'
currentPage === 1 ? 'opacity-20 bg-gray-200 text-gray-500 pointer-events-none ' : 'block text-white bg-indigo-700'
} duration-200 px-3.5 py-2 hover:border-black rounded-full`} >
<i className='fas fa-angle-left text-2xl'/>
</button>
@@ -44,7 +44,7 @@ const PaginationSimple = ({ page, totalPage }) => {
<button
rel="next"
className={`${
+showNext ? 'text-white bg-indigo-700 ' : ' bg-gray-300 text-gray-500 pointer-events-none '
+showNext ? 'text-white bg-indigo-700 ' : ' opacity-20 bg-gray-200 text-gray-500 pointer-events-none '
} duration-200 px-4 py-2 hover:border-black rounded-full`}
>
<i className='fas fa-angle-right text-2xl'/>