feat(ui) : create unified catalog+category pages under /catalogues/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 17:10:19 +02:00
parent 72c10ced40
commit 8a355aad11
4 changed files with 774 additions and 6 deletions

View File

@@ -2,12 +2,14 @@
<main
class="mx-auto flex w-full max-w-6xl flex-col gap-8 px-4 py-8 sm:px-6 lg:px-8"
>
<header class="space-y-2">
<h1 class="text-3xl font-bold text-base-content">{{ headingText }}</h1>
<p class="text-base text-base-content/70">
{{ descriptionText }}
</p>
</header>
<template v-if="!hideHeading">
<header class="space-y-2">
<h1 class="text-3xl font-bold text-base-content">{{ headingText }}</h1>
<p class="text-base text-base-content/70">
{{ descriptionText }}
</p>
</header>
</template>
<nav
v-if="allowCategorySwitch"
@@ -144,9 +146,11 @@ const props = withDefaults(
heading: string
description?: string
allowCategorySwitch?: boolean
hideHeading?: boolean
}>(),
{
allowCategorySwitch: false,
hideHeading: false,
},
)