Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions src/components/PaginationControls.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<template>
<nav v-if="totalPages > 1" class="flex flex-wrap items-center justify-end gap-3 text-sm text-slate-500 dark:text-slate-400" :aria-label="ariaLabel">
<nav v-if="totalPages > 1" class="flex flex-wrap items-center justify-start gap-3 text-sm text-slate-500 dark:text-slate-400" :aria-label="ariaLabel">
<p class="font-medium">Page {{ currentPage }} of {{ totalPages }}</p>
<div class="flex items-center gap-2">
<button
type="button"
class="btn btn-sm border border-slate-200 dark:border-slate-700 text-slate-700 dark:text-slate-200 hover:border-fuchsia-400/70 hover:text-slate-800 dark:hover:text-slate-100 disabled:cursor-not-allowed disabled:opacity-50"
:disabled="isFirstPage"
@click="$emit('previous')"
>
<button type="button" class="btn paginatation-buttons" :disabled="isFirstPage" @click="$emit('previous')">
{{ previousLabel }}
</button>
<button
type="button"
class="btn btn-sm border border-slate-200 dark:border-slate-700 text-slate-700 dark:text-slate-200 hover:border-fuchsia-400/70 hover:text-slate-800 dark:hover:text-slate-100 disabled:cursor-not-allowed disabled:opacity-50"
:disabled="isLastPage"
@click="$emit('next')"
>
<button type="button" class="btn paginatation-buttons" :disabled="isLastPage" @click="$emit('next')">
{{ nextLabel }}
</button>
</div>
Expand Down
14 changes: 14 additions & 0 deletions src/css/support/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
@apply dark:text-teal-500 dark:hover:text-teal-600;
}

.paginatation-buttons {
@apply h-10 w-32 cursor-pointer border border-fuchsia-500 bg-fuchsia-500 text-white;
@apply transition-colors duration-150 ease-in-out hover:bg-fuchsia-500/90 hover:text-white;
@apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fuchsia-300;
@apply dark:border-teal-500 dark:bg-teal-600 dark:text-slate-900 dark:hover:bg-teal-500;
@apply disabled:cursor-not-allowed disabled:border-slate-200 disabled:bg-slate-200 disabled:text-slate-400;
@apply dark:disabled:border-slate-700 dark:disabled:bg-slate-700 dark:disabled:text-slate-500;
}

.recommendations-list {
@apply h-96 overflow-y-auto pr-2;
@apply scroll-smooth;
}

.blog-h1 {
@apply font-aspekta mb-5;
@apply text-slate-700 dark:text-slate-300;
Expand Down
2 changes: 1 addition & 1 deletion src/partials/RecommendationPartial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h2 class="h3 font-aspekta text-slate-800 dark:text-slate-100">Recommendations</h2>
<BackToTopLink :target="backToTopTarget" />
</div>
<ul class="space-y-8">
<ul class="recommendations-list space-y-8">
<!-- Item -->
<li v-for="item in paginatedRecommendations" :key="item.uuid" class="relative group">
<div class="flex items-start">
Expand Down
Loading