Loheide-eu-mitarbeiterplatt.../resources/js/widgets/Quote.vue
Friederich Loheide 4332b02efb
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m56s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m54s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m20s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m11s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m15s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m4s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m40s
CI / Build-Artefakte aktuell (pull_request) Successful in 52s
Allgemeine Kachel „Spruch/Zitat“ (core::Quote) für Kunden-Plugins
Kunden-Plugins ohne eigene Oberfläche können damit Startseiten-Kacheln
füllen – erstes Beispiel: Plugin „Monatsspruch“ (eigenes Repository).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 16:58:49 +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 hover:underline">{{ link.label }}</a>
</p>
</section>
</template>