Neues Design: Tailwind + shadcn-vue statt Vuetify/Material 3
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
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>
This commit is contained in:
parent
9c0f8de791
commit
5a3f1f34c7
141 changed files with 3873 additions and 974 deletions
|
|
@ -1,51 +1,105 @@
|
|||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { Head, usePage } from '@inertiajs/vue3';
|
||||
import { mdiAccountEditOutline, mdiNewspaperVariantOutline, mdiPuzzleOutline } from '@mdi/js';
|
||||
import AppLayout from '../layouts/AppLayout.vue';
|
||||
import { Link, usePage } from '@inertiajs/vue3';
|
||||
import { ArrowRight, Search, UserRoundPen } from '@lucide/vue';
|
||||
import GreetingCard from '@/components/GreetingCard.vue';
|
||||
import Panel from '@/components/Panel.vue';
|
||||
import PersonAvatar from '@/components/PersonAvatar.vue';
|
||||
import AppLayout from '@/layouts/AppLayout.vue';
|
||||
import { quickLinkIcons } from '@/lib/icons';
|
||||
|
||||
const props = defineProps({
|
||||
profile: { type: Object, required: true },
|
||||
quickLinks: { type: Array, required: true },
|
||||
newColleagues: { type: Object, required: true },
|
||||
peopleCount: { type: Number, required: true },
|
||||
});
|
||||
|
||||
const page = usePage();
|
||||
const user = computed(() => page.props.auth.user);
|
||||
const firstName = computed(() => user.value.name.split(' ')[0]);
|
||||
const me = computed(() => ({ ...user.value, avatar_url: props.profile.avatar_url }));
|
||||
|
||||
const greeting = computed(() => {
|
||||
const hour = new Date().getHours();
|
||||
|
||||
if (hour < 11) return 'Guten Morgen';
|
||||
if (hour < 18) return 'Hallo';
|
||||
if (hour < 18) return 'Guten Tag';
|
||||
|
||||
return 'Guten Abend';
|
||||
});
|
||||
|
||||
const profileIncomplete = computed(() => !props.profile.avatar_url || !props.profile.job_title);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Head title="Start" />
|
||||
<AppLayout title="Startseite">
|
||||
<div class="grid gap-6 lg:grid-cols-12">
|
||||
<div class="grid content-start gap-6 lg:col-span-8">
|
||||
<GreetingCard :user="me" :profile="profile" :greeting="greeting" class="lg:hidden" />
|
||||
|
||||
<AppLayout>
|
||||
<div class="mb-8">
|
||||
<h1 class="text-headline-large">{{ greeting }}, {{ firstName }}!</h1>
|
||||
<p class="text-body-large text-medium-emphasis mt-1">Willkommen in {{ page.props.branding.portal_name }}.</p>
|
||||
<Panel title="Schnellzugriffe">
|
||||
<div class="grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6">
|
||||
<component
|
||||
:is="link.url.startsWith('/') && !link.new_tab ? Link : 'a'"
|
||||
v-for="link in quickLinks"
|
||||
:key="link.label + link.url"
|
||||
:href="link.url"
|
||||
:target="link.new_tab ? '_blank' : undefined"
|
||||
:rel="link.new_tab ? 'noopener' : undefined"
|
||||
class="group flex flex-col items-center gap-2.5 rounded-lg border bg-card px-3 py-4 text-center transition-colors hover:border-brand-200 hover:bg-brand-soft"
|
||||
>
|
||||
<component :is="quickLinkIcons[link.icon] ?? quickLinkIcons.link" class="size-6 text-brand-text" :stroke-width="1.75" />
|
||||
<span class="text-[13px] leading-tight font-medium">{{ link.label }}</span>
|
||||
</component>
|
||||
</div>
|
||||
</Panel>
|
||||
|
||||
<Panel v-if="newColleagues.data.length" title="Neu im Team" action-label="Alle Personen" action-href="/personen">
|
||||
<ul class="grid gap-3 sm:grid-cols-2 xl:grid-cols-3">
|
||||
<li v-for="person in newColleagues.data" :key="person.id">
|
||||
<Link :href="`/personen/${person.id}`" class="flex items-center gap-3 rounded-lg border p-3 transition-colors hover:bg-accent">
|
||||
<PersonAvatar :person="person" class="size-11" />
|
||||
<div class="min-w-0">
|
||||
<div class="truncate text-sm font-semibold">{{ person.name }}</div>
|
||||
<div class="truncate text-[13px] text-muted-foreground">{{ person.job_title || person.department }}</div>
|
||||
</div>
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</Panel>
|
||||
</div>
|
||||
|
||||
<aside class="grid content-start gap-6 lg:col-span-4">
|
||||
<GreetingCard :user="me" :profile="profile" :greeting="greeting" class="hidden lg:block" />
|
||||
|
||||
<Link
|
||||
v-if="profileIncomplete"
|
||||
href="/profil/bearbeiten"
|
||||
class="flex items-start gap-3 rounded-lg border border-dashed border-brand-300 bg-card p-4 transition-colors hover:bg-brand-soft"
|
||||
>
|
||||
<UserRoundPen class="mt-0.5 size-5 shrink-0 text-brand-text" />
|
||||
<div>
|
||||
<div class="text-sm font-semibold">Profil vervollständigen</div>
|
||||
<p class="mt-0.5 text-[13px] text-muted-foreground">Mit Foto und Funktion finden Kolleginnen und Kollegen Sie schneller.</p>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
<Panel title="Personen finden">
|
||||
<form action="/personen" method="get" class="relative" role="search">
|
||||
<Search class="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />
|
||||
<input
|
||||
name="q"
|
||||
type="search"
|
||||
placeholder="Name, Funktion, Abteilung …"
|
||||
class="h-10 w-full rounded-md border border-input bg-background pr-3 pl-9 text-sm placeholder:text-muted-foreground focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none"
|
||||
/>
|
||||
</form>
|
||||
<Link href="/personen" class="mt-4 flex items-center justify-between text-[13px] text-muted-foreground hover:text-foreground">
|
||||
{{ peopleCount.toLocaleString('de-DE') }} Kolleginnen und Kollegen im Verzeichnis
|
||||
<ArrowRight class="size-4" />
|
||||
</Link>
|
||||
</Panel>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
<v-row>
|
||||
<v-col cols="12" md="4">
|
||||
<v-card class="h-100" rounded="xl" href="/profil/bearbeiten">
|
||||
<v-card-item :prepend-icon="mdiAccountEditOutline" title="Ihr Profil" />
|
||||
<v-card-text>Profilbild, Funktion und Kontaktdaten helfen Kolleginnen und Kollegen, Sie zu finden.</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" md="4">
|
||||
<v-card class="h-100" rounded="xl" color="secondary-container">
|
||||
<v-card-item :prepend-icon="mdiNewspaperVariantOutline" title="Neuigkeiten" />
|
||||
<v-card-text>Hier erscheinen bald Beiträge aus Ihren Kategorien.</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col cols="12" md="4">
|
||||
<v-card class="h-100" rounded="xl" color="tertiary-container">
|
||||
<v-card-item :prepend-icon="mdiPuzzleOutline" title="Module" />
|
||||
<v-card-text>Weitere Funktionen kommen als Plugins hinzu und lassen sich einzeln aktivieren.</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</AppLayout>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue