News hub: add working pagination that respects the type filter

Client-side paginator (9 per page) reusing the site's pagination styling; page numbers with dots for long lists, Previous/Next with disabled states, resets to page 1 on filter change and hides when a single page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
popovskikandClaude Opus 4.8 committed 2026-07-31 23:56:42 +02:00
1 parent ea9acc4968
commit 5b14cc2189
8 files changed
+105 -10

No files matched your search

+9
View File
@@ -94,6 +94,15 @@
.newshub-card h3 a:hover { color: #2D738C; }
.newshub-excerpt { margin: 0; font-size: 14px; line-height: 22px; color: #667085; }
/* Pagination reuses the shared .pagination look; reset button chrome */
.newshub-pagination { margin-top: 44px; }
.newshub-pagination .pagination-arrow,
.newshub-pagination .page-number {
background: transparent;
border: none;
font-family: inherit;
}
@media (max-width: 768px) {
.newshub-hero { padding: 92px 20px 32px; }
.newshub-hero h1 { font-size: 30px; }