change page navigation buttons
This commit is contained in:
@@ -1,32 +1,38 @@
|
||||
<template>
|
||||
<nav class="page-navigation">
|
||||
<div class="page-navigation__previous">
|
||||
<g-link
|
||||
class="page-navigation__link"
|
||||
exact
|
||||
<btn
|
||||
type="secondary"
|
||||
icon="arrow-left"
|
||||
icon-position="before"
|
||||
:to="previousPage.link"
|
||||
v-if="previousPage"
|
||||
>
|
||||
← {{ previousPage.title }}
|
||||
</g-link>
|
||||
{{ previousPage.title }}
|
||||
</btn>
|
||||
</div>
|
||||
<div class="page-navigation__next">
|
||||
<g-link
|
||||
class="page-navigation__link"
|
||||
exact
|
||||
<btn
|
||||
type="secondary"
|
||||
icon="arrow-right"
|
||||
:to="nextPage.redirect || nextPage.link"
|
||||
v-if="nextPage"
|
||||
>
|
||||
{{ nextPage.title }} →
|
||||
</g-link>
|
||||
{{ nextPage.title }}
|
||||
</btn>
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import linkGroups from '@/links.yaml'
|
||||
import Btn from '~/components/Btn'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Btn,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
linkGroups,
|
||||
|
||||
@@ -1,16 +1,4 @@
|
||||
.page-navigation {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 1.5rem 0;
|
||||
|
||||
&__link {
|
||||
color: rgba($colorBlack, 0.6);
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: 5px;
|
||||
|
||||
&:hover {
|
||||
color: $colorBlack;
|
||||
background-color: rgba($colorBlack, 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user