Skip to content

Commit 50bc180

Browse files
authored
Merge pull request #36 from javaistic/next-prev-link
Update ContentsLayout.js
2 parents 29aa46d + dff5e21 commit 50bc180

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/layouts/ContentsLayout.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,20 +191,20 @@ export function ContentsLayout({ children, meta, classes, tableOfContents }) {
191191
<div className="mt-16 flex leading-6 font-medium">
192192
{prev && (
193193
<Link href={prev.href}>
194-
<a className="flex mr-8 transition-colors duration-200 hover:text-gray-900">
194+
<a className="flex mr-8 px-2 py-1 border-2 border-blue-500 rounded-md hover:shadow-md transition-colors duration-200 hover:text-gray-900">
195195
<span aria-hidden="true" className="mr-2">
196-
196+
&larr;
197197
</span>
198198
{prev.shortTitle || prev.title}
199199
</a>
200200
</Link>
201201
)}
202202
{next && (
203203
<Link href={next.href}>
204-
<a className="flex text-right ml-auto transition-colors duration-200 hover:text-gray-900">
204+
<a className="flex text-right ml-auto px-2 py-1 border-2 border-blue-500 rounded-md hover:shadow-md transition-colors duration-200 hover:text-gray-900">
205205
{next.shortTitle || next.title}
206206
<span aria-hidden="true" className="ml-2">
207-
207+
&rarr;
208208
</span>
209209
</a>
210210
</Link>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy