Loheide-eu-mitarbeiterplatt.../resources/js/components/Panel.vue
Friederich Loheide f813a0fff3
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 58s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m4s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m3s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m10s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m8s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m5s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m4s
CI / Build-Artefakte aktuell (pull_request) Failing after 41s
Layout nach Intranet-Vorbild: einzeiliger Header, Begrüßungskarte, Schnellzugriff-Leiste
- Header einzeilig mit Navigation neben dem Logo, Suche rechts, mobil als Menü (Sheet)
- Begrüßungskarte mit Foto rechts und Aktionsleiste darunter
- Schnellzugriffe als blätterbare Kachelreihe
- Raster auf Mobilgeräten repariert (Spalten wuchsen mit breitem Inhalt mit)
- Telefonnummern im Admin: übliche deutsche Schreibweisen wie „+49 (0) 30 …“ werden akzeptiert

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 20:58:21 +00:00

27 lines
1,009 B
Vue

<script setup>
import { Link } from '@inertiajs/vue3';
import { ChevronRight } from '@lucide/vue';
defineProps({
title: { type: String, default: '' },
actionLabel: { type: String, default: '' },
actionHref: { type: String, default: '' },
});
</script>
<template>
<section class="rounded-lg border bg-card text-card-foreground">
<header v-if="title || $slots.actions" class="flex items-center justify-between gap-4 px-5 pt-4 pb-3">
<h2 class="text-base font-semibold">{{ title }}</h2>
<slot name="actions">
<Link v-if="actionHref" :href="actionHref" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline">
{{ actionLabel }}
<ChevronRight class="size-3.5" />
</Link>
</slot>
</header>
<div class="px-5 pb-5" :class="{ 'pt-5': !title && !$slots.actions }">
<slot />
</div>
</section>
</template>