Loheide-eu-mitarbeiterplatt.../resources/js/widgets/Quote.vue
Friederich Loheide f8f6a4ba2b
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 5m58s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m45s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m4s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 6m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 14m39s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 14m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 10m45s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m52s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m16s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m49s
Barrierefreiheit nach WCAG 2.1 AA (0.37.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 15:35:34 +00:00

31 lines
1.4 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
import { Quote } from '@lucide/vue';
/**
* Allgemeine Kachel „Spruch/Zitat“ – für Plugins ohne eigene Oberfläche
* (z. B. separat installierte Kunden-Plugins): Widgets::add(…, 'core::Quote', …)
* mit den Eigenschaften unten.
*/
defineProps({
title: { type: String, default: '' }, // z. B. „Monatsspruch Oktober“
text: { type: String, required: true },
source: { type: String, default: '' }, // z. B. „Galater 5,1“
note: { type: String, default: '' }, // z. B. Übersetzung, Quelle
link: { type: Object, default: null }, // { label, url }
});
</script>
<template>
<section class="relative overflow-hidden rounded-lg border bg-card p-5">
<Quote class="absolute -top-1 -right-1 size-20 rotate-180 text-brand/10" aria-hidden="true" />
<p v-if="title" class="text-xs font-semibold tracking-wide text-brand-text uppercase">{{ title }}</p>
<blockquote class="relative mt-2">
<p class="text-[15px] leading-relaxed text-pretty">„{{ text }}“</p>
<footer v-if="source" class="mt-2 text-sm font-semibold">{{ source }}</footer>
</blockquote>
<p v-if="note || link" class="mt-3 border-t pt-2 text-xs text-muted-foreground">
{{ note }}
<a v-if="link" :href="link.url" target="_blank" rel="noopener" class="text-brand-text underline underline-offset-2 hover:decoration-2">{{ link.label }}</a>
</p>
</section>
</template>