0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-05 00:50:25 +03:00

Refactor Pagination component and add Next and Prev components

This commit is contained in:
2024-09-12 22:38:34 +00:00
parent fd054f0fa4
commit 65ee69c645
3 changed files with 43 additions and 29 deletions

View File

@ -0,0 +1,18 @@
---
type Props = {
readonly url: string;
};
const { url } = Astro.props;
---
<style lang="scss">
span {
float: right;
max-width: 40%;
}
</style>
<span>
<a href={url}>Next &gt;</a>
</span>

View File

@ -0,0 +1,18 @@
---
type Props = {
readonly url: string;
};
const { url } = Astro.props;
---
<style lang="scss">
span {
float: left;
max-width: 40%;
}
</style>
<span>
<a href={url}>&lt; Prev</a>
</span>