mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 15:10:23 +00:00
gitbook 改版
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import Link from 'next/link'
|
||||
|
||||
/**
|
||||
@@ -9,21 +10,29 @@ export default function ArticleAround({ prev, next }) {
|
||||
if (!prev || !next) {
|
||||
return <></>
|
||||
}
|
||||
const { locale } = useGlobal()
|
||||
return (
|
||||
<section className='text-gray-800 dark:text-gray-400 h-12 flex items-center justify-between space-x-5 my-4'>
|
||||
<section className='text-gray-800 dark:text-gray-400 flex items-center justify-between gap-x-3 my-4'>
|
||||
<Link
|
||||
href={prev.href}
|
||||
passHref
|
||||
className='text-sm cursor-pointer justify-start items-center flex hover:underline duration-300'>
|
||||
<i className='mr-1 fas fa-angle-double-left' />
|
||||
{prev.title}
|
||||
className='rounded border w-full h-20 px-3 cursor-pointer justify-between items-center flex hover:text-green-500 duration-300'>
|
||||
<i className='mr-1 fas fa-angle-left' />
|
||||
<div>
|
||||
<div>{locale.COMMON.PREV_POST}</div>
|
||||
<div>{prev.title}</div>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
href={next.href}
|
||||
passHref
|
||||
className='text-sm cursor-pointer justify-end items-center flex hover:underline duration-300'>
|
||||
{next.title}
|
||||
<i className='ml-1 my-1 fas fa-angle-double-right' />
|
||||
className='rounded border w-full h-20 px-3 cursor-pointer justify-between items-center flex hover:text-green-500 duration-300'>
|
||||
<div>
|
||||
<div>{locale.COMMON.NEXT_POST}</div>
|
||||
<div> {next.title}</div>
|
||||
</div>
|
||||
<i className='ml-1 my-1 fas fa-angle-right' />
|
||||
</Link>
|
||||
</section>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user