Startseite frei gestalten, Neuigkeiten-Block mit Kategorien-Filter (0.26.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 5m21s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m55s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m42s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m25s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m57s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m34s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 5m21s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m55s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m42s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m25s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m57s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m34s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6290e09074
commit
2c96fcce1c
151 changed files with 1515 additions and 317 deletions
|
|
@ -11,6 +11,7 @@ defineProps({
|
|||
posts: { type: Object, required: true },
|
||||
categories: { type: Array, required: true },
|
||||
activeCategory: { type: String, default: null },
|
||||
filter: { type: String, default: null },
|
||||
canWrite: { type: Boolean, default: false },
|
||||
});
|
||||
</script>
|
||||
|
|
@ -27,7 +28,7 @@ defineProps({
|
|||
<Link
|
||||
href="/neuigkeiten"
|
||||
class="rounded-pill border px-3.5 py-1.5 text-[13px] font-medium transition-colors"
|
||||
:class="!activeCategory ? 'border-brand bg-brand text-brand-foreground' : 'bg-card hover:bg-accent'"
|
||||
:class="!activeCategory && !filter ? 'border-brand bg-brand text-brand-foreground' : 'bg-card hover:bg-accent'"
|
||||
preserve-scroll
|
||||
>
|
||||
Alle
|
||||
|
|
@ -44,6 +45,11 @@ defineProps({
|
|||
</Link>
|
||||
</nav>
|
||||
|
||||
<p v-if="filter" class="-mt-3 mb-5 flex flex-wrap items-center gap-2 text-[13px] text-muted-foreground">
|
||||
<span class="rounded-pill border border-brand bg-brand-soft px-3 py-1 font-medium text-brand-soft-foreground">{{ filter }}</span>
|
||||
<Link href="/neuigkeiten" class="hover:text-foreground hover:underline">Filter entfernen</Link>
|
||||
</p>
|
||||
|
||||
<div v-if="posts.data.length" class="grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4">
|
||||
<NewsCard v-for="post in posts.data" :key="post.id" :post="post" />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue