Layout nach Intranet-Vorbild: einzeiliger Header, Begrüßungskarte, Schnellzugriff-Leiste
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

- 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>
This commit is contained in:
Friederich Loheide 2026-09-25 20:58:21 +00:00
parent 5a3f1f34c7
commit f813a0fff3
48 changed files with 518 additions and 165 deletions

View file

@ -1,6 +1,6 @@
<script setup>
import { Link } from '@inertiajs/vue3';
import { Building2, MapPin } from '@lucide/vue';
import { LogOut, Settings, UserRound, UserRoundPen } from '@lucide/vue';
import PersonAvatar from '@/components/PersonAvatar.vue';
defineProps({
@ -11,22 +11,34 @@ defineProps({
</script>
<template>
<section class="overflow-hidden rounded-lg bg-brand text-brand-foreground">
<div class="flex items-center gap-4 p-5">
<PersonAvatar :person="user" class="size-[72px] ring-2 ring-white/40" />
<section class="overflow-hidden rounded-lg border bg-card">
<div class="flex items-center justify-between gap-4 bg-brand px-6 py-6 text-brand-foreground">
<div class="min-w-0">
<div class="text-[13px] opacity-80">{{ greeting }},</div>
<div class="truncate text-lg font-semibold">{{ user.name }}</div>
<div v-if="profile.job_title" class="truncate text-[13px] opacity-85">{{ profile.job_title }}</div>
<div class="text-sm opacity-85">{{ greeting }},</div>
<div class="mt-0.5 truncate text-[22px] leading-tight font-semibold tracking-tight">{{ user.name }}</div>
<div class="mt-1.5 truncate text-[13px] opacity-85">
{{ profile.job_title || 'Schön, dass Sie da sind!' }}
</div>
</div>
<PersonAvatar :person="user" class="size-20 shrink-0 text-xl ring-4 ring-white/25" />
</div>
<div class="flex flex-wrap gap-x-5 gap-y-1 px-5 pb-4 text-[13px] opacity-85">
<span v-if="profile.department" class="inline-flex items-center gap-1.5"><Building2 class="size-3.5" />{{ profile.department }}</span>
<span v-if="profile.location" class="inline-flex items-center gap-1.5"><MapPin class="size-3.5" />{{ profile.location }}</span>
</div>
<div class="grid grid-cols-2 border-t border-white/15 text-[13px] font-medium">
<Link :href="`/personen/${user.id}`" class="px-5 py-3 hover:bg-white/10">Mein Profil</Link>
<Link href="/profil/bearbeiten" class="border-l border-white/15 px-5 py-3 hover:bg-white/10">Profil bearbeiten</Link>
</div>
<nav class="grid grid-cols-3 divide-x" aria-label="Mein Bereich">
<Link :href="`/personen/${user.id}`" class="flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
<UserRound class="size-5 text-brand-text" :stroke-width="1.75" />
Mein Profil
</Link>
<Link href="/profil/bearbeiten" class="flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
<UserRoundPen class="size-5 text-brand-text" :stroke-width="1.75" />
Profil bearbeiten
</Link>
<a v-if="user.is_admin" href="/admin" class="flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
<Settings class="size-5 text-brand-text" :stroke-width="1.75" />
Administration
</a>
<Link v-else href="/logout" method="post" as="button" class="flex flex-col items-center gap-2 px-2 py-4 text-xs font-medium text-foreground/80 hover:bg-accent hover:text-foreground">
<LogOut class="size-5 text-brand-text" :stroke-width="1.75" />
Abmelden
</Link>
</nav>
</section>
</template>