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>
81 lines
3.2 KiB
Vue
81 lines
3.2 KiB
Vue
<script setup>
|
|
import { ref } from 'vue';
|
|
import { Link, useForm } from '@inertiajs/vue3';
|
|
import { Eye, EyeOff, LoaderCircle } from '@lucide/vue';
|
|
import { Button } from '@/components/ui/button';
|
|
import { Checkbox } from '@/components/ui/checkbox';
|
|
import { Input } from '@/components/ui/input';
|
|
import { Label } from '@/components/ui/label';
|
|
import FormField from '@/components/FormField.vue';
|
|
import GuestLayout from '@/layouts/GuestLayout.vue';
|
|
|
|
defineProps({
|
|
canResetPassword: { type: Boolean, default: false },
|
|
status: { type: String, default: null },
|
|
});
|
|
|
|
const showPassword = ref(false);
|
|
|
|
const form = useForm({
|
|
email: '',
|
|
password: '',
|
|
remember: false,
|
|
});
|
|
|
|
function submit() {
|
|
form.post('/login', {
|
|
onFinish: () => form.reset('password'),
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<GuestLayout title="Anmelden" description="Melden Sie sich mit Ihrer dienstlichen E-Mail-Adresse an.">
|
|
<div v-if="status" class="mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground">
|
|
{{ status }}
|
|
</div>
|
|
|
|
<form class="grid gap-5" @submit.prevent="submit">
|
|
<FormField id="email" label="E-Mail-Adresse" :error="form.errors.email">
|
|
<Input id="email" v-model="form.email" type="email" autocomplete="username" autofocus class="h-10" :aria-invalid="!!form.errors.email" />
|
|
</FormField>
|
|
|
|
<FormField id="password" label="Passwort" :error="form.errors.password">
|
|
<div class="relative">
|
|
<Input
|
|
id="password"
|
|
v-model="form.password"
|
|
:type="showPassword ? 'text' : 'password'"
|
|
autocomplete="current-password"
|
|
class="h-10 pr-10"
|
|
:aria-invalid="!!form.errors.password"
|
|
/>
|
|
<button
|
|
type="button"
|
|
class="absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground"
|
|
:aria-label="showPassword ? 'Passwort verbergen' : 'Passwort anzeigen'"
|
|
@click="showPassword = !showPassword"
|
|
>
|
|
<EyeOff v-if="showPassword" class="size-4" />
|
|
<Eye v-else class="size-4" />
|
|
</button>
|
|
</div>
|
|
</FormField>
|
|
|
|
<div class="flex items-center justify-between">
|
|
<Label class="flex items-center gap-2 text-sm font-normal">
|
|
<Checkbox v-model="form.remember" />
|
|
Angemeldet bleiben
|
|
</Label>
|
|
<Link v-if="canResetPassword" href="/forgot-password" class="text-sm font-medium text-brand-text hover:underline">
|
|
Passwort vergessen?
|
|
</Link>
|
|
</div>
|
|
|
|
<Button type="submit" size="lg" class="mt-2 h-10 w-full" :disabled="form.processing">
|
|
<LoaderCircle v-if="form.processing" class="animate-spin" />
|
|
Anmelden
|
|
</Button>
|
|
</form>
|
|
</GuestLayout>
|
|
</template>
|