add prev & next article buttons (#3)
solution inspired by https://github.com/markhorn-dev/astro-sphere
This commit is contained in:
parent
93d8c4f67d
commit
3aa7ca486b
9 changed files with 212 additions and 753 deletions
|
@ -16,7 +16,7 @@ const { content, CONSTS } = Astro.props;
|
|||
{CONSTS.TITLE}
|
||||
</h1>
|
||||
<div
|
||||
class="mt-16 grid animate-reveal grid-cols-1 gap-6 opacity-0 [animation-delay:0.4s] md:grid-cols-3 md:[&>*:nth-child(4n+2)]:col-span-2 md:[&>*:nth-child(4n+3)]:col-span-2 md:[&>*:only-child]:col-span-3"
|
||||
class="mt-16 grid animate-reveal grid-cols-1 gap-6 opacity-0 [animation-delay:0.1s] md:grid-cols-3 md:[&>*:nth-child(4n+2)]:col-span-2 md:[&>*:nth-child(4n+3)]:col-span-2 md:[&>*:only-child]:col-span-3"
|
||||
>
|
||||
{content.map((article: any) => <Showcase collection={article} />)}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue