fix: update drawer and nav for imprints

This commit is contained in:
Tim Rijkse
2026-01-16 11:58:43 +01:00
parent 7367127b50
commit 69c281b8bd
2 changed files with 11 additions and 13 deletions

View File

@@ -7,14 +7,11 @@ class HorizontalScrollNav extends HTMLElement {
super();
this.attachShadow({ mode: "open" });
this.categories = [
{ id: "all", label: "All", active: true },
{ id: "fiction", label: "Fiction", active: false },
{ id: "non-fiction", label: "Non-Fiction", active: false },
{ id: "mystery", label: "Mystery", active: false },
{ id: "romance", label: "Romance", active: false },
{ id: "sci-fi", label: "Sci-Fi", active: false },
{ id: "biography", label: "Biography", active: false },
{ id: "history", label: "History", active: false },
{ id: "asoka", label: "Asoka", active: true },
{ id: "synthese", label: "Synthese", active: false },
{ id: "de-driehoek", label: "De Driehoek", active: false },
{ id: "waerbeke", label: "Waerbeke", active: false },
{ id: "stuivenberg", label: "Stuivenberg", active: false },
];
}
@@ -110,7 +107,7 @@ class HorizontalScrollNav extends HTMLElement {
background-color: #7a1843;
}
</style>
<nav class="nav-container" role="navigation" aria-label="Boekcategorieën">
<nav class="nav-container" role="navigation" aria-label="Imprints">
${this.categories
.map(
(cat) => `