Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 1m3s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 1m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 1m20s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m29s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m33s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 1m28s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m33s
CI / Build-Artefakte aktuell (pull_request) Failing after 52s
- Nüchterne, professionelle Optik: neutrale Flächen, Markenfarbe nur als Akzent, Inter-Schrift (lokal) - Zweizeiliger Header mit Suche, Hauptnavigation und Avatar-Menü - Startseite mit Begrüßungskarte, Schnellzugriffen und „Neu im Team“ - Personenverzeichnis mit Suche, Abteilungsfilter und Seitenaufteilung - Markenfarbe exakt übernommen, Abstufungen serverseitig in OKLCH (ColorPalette) – gemeinsam für Portal und Admin, keine Farbberechnung im Browser - Schnellzugriffe im Admin pflegbar - Filament-Avatare lokal statt über ui-avatars.com (DSGVO) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
32 lines
1.6 KiB
Vue
32 lines
1.6 KiB
Vue
<script setup>
|
|
import { Link } from '@inertiajs/vue3';
|
|
import { Building2, MapPin } from '@lucide/vue';
|
|
import PersonAvatar from '@/components/PersonAvatar.vue';
|
|
|
|
defineProps({
|
|
user: { type: Object, required: true },
|
|
profile: { type: Object, required: true },
|
|
greeting: { type: String, required: true },
|
|
});
|
|
</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" />
|
|
<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>
|
|
</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>
|
|
</section>
|
|
</template>
|