Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m8s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m12s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m5s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m6s
CI / Build-Artefakte aktuell (pull_request) Failing after 43s
- Neuigkeiten mit Kategorien, Titelbild (WebP-Varianten), Lesezeit, geplanter Veröffentlichung und Hervorhebung; Text wird beim Speichern bereinigt - Termine mit Ort, Online-Link, ganztägigen Terminen und .ics-Export - Startseite nach Intranet-Vorbild: Slider, Neuigkeiten, Termine, Aktuelles aus den Bereichen; mobil in sinnvoller Reihenfolge - Admin: Beiträge, Kategorien und Termine - Bildverarbeitung für Shared Hosting: nur eine Vollbild-Kopie im Speicher, Speicherlimit bei Bedarf auf 256 MB angehoben (wie WordPress) - Demo-Inhalte für die Entwicklung Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
66 lines
3.3 KiB
Vue
66 lines
3.3 KiB
Vue
<script setup>
|
|
import { Link } from '@inertiajs/vue3';
|
|
import { ArrowLeft, CalendarPlus, Clock, MapPin, Video } from '@lucide/vue';
|
|
import { Button } from '@/components/ui/button';
|
|
import EventDateBlock from '@/components/EventDateBlock.vue';
|
|
import Panel from '@/components/Panel.vue';
|
|
import AppLayout from '@/layouts/AppLayout.vue';
|
|
import { formatEventRange } from '@/lib/format';
|
|
|
|
defineProps({
|
|
event: { type: Object, required: true },
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<AppLayout :title="event.title">
|
|
<div class="mx-auto max-w-4xl">
|
|
<Link href="/termine" class="mb-6 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground">
|
|
<ArrowLeft class="size-4" /> Alle Termine
|
|
</Link>
|
|
|
|
<div class="flex items-start gap-4">
|
|
<EventDateBlock :date="event.starts_at" class="w-16 py-2" />
|
|
<h1 class="pt-1 text-2xl leading-tight font-semibold tracking-tight sm:text-3xl">{{ event.title }}</h1>
|
|
</div>
|
|
|
|
<img v-if="event.image_url" :src="event.image_url" :alt="event.title" class="mt-6 aspect-video w-full rounded-lg object-cover" />
|
|
|
|
<div class="mt-6 grid gap-6 lg:grid-cols-3">
|
|
<Panel title="Beschreibung" class="lg:col-span-2">
|
|
<div v-if="event.description_html" class="prose prose-neutral max-w-none text-[15px]" v-html="event.description_html" />
|
|
<p v-else class="text-sm text-muted-foreground">Keine weiteren Informationen.</p>
|
|
</Panel>
|
|
|
|
<Panel title="Details" class="content-start">
|
|
<dl class="grid gap-4 text-sm">
|
|
<div class="flex gap-3">
|
|
<Clock class="mt-0.5 size-4 shrink-0 text-muted-foreground" />
|
|
<div>
|
|
<dt class="text-xs text-muted-foreground">Wann</dt>
|
|
<dd>{{ formatEventRange(event) }}</dd>
|
|
</div>
|
|
</div>
|
|
<div v-if="event.location" class="flex gap-3">
|
|
<MapPin class="mt-0.5 size-4 shrink-0 text-muted-foreground" />
|
|
<div>
|
|
<dt class="text-xs text-muted-foreground">Ort</dt>
|
|
<dd>{{ event.location }}</dd>
|
|
</div>
|
|
</div>
|
|
<div v-if="event.online_url" class="flex gap-3">
|
|
<Video class="mt-0.5 size-4 shrink-0 text-muted-foreground" />
|
|
<div class="min-w-0">
|
|
<dt class="text-xs text-muted-foreground">Online</dt>
|
|
<dd class="truncate"><a :href="event.online_url" target="_blank" rel="noopener" class="text-brand-text hover:underline">Zur Teilnahme</a></dd>
|
|
</div>
|
|
</div>
|
|
</dl>
|
|
<Button variant="outline" class="mt-5 w-full" as-child>
|
|
<a :href="`/termine/${event.id}/kalender.ics`"><CalendarPlus /> In meinen Kalender</a>
|
|
</Button>
|
|
</Panel>
|
|
</div>
|
|
</div>
|
|
</AppLayout>
|
|
</template>
|