Intégration fonctionnalites V1
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<script setup>
|
||||
import Checkbox from '@/Components/Checkbox.vue';
|
||||
import InputError from '@/Components/InputError.vue';
|
||||
import InputLabel from '@/Components/InputLabel.vue';
|
||||
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
||||
import TextInput from '@/Components/TextInput.vue';
|
||||
import LaverieLogo from '@/Components/LaverieLogo.vue';
|
||||
import { inputClass, labelClass } from '@/Components/Supervisor/ui.js';
|
||||
import { Head, useForm } from '@inertiajs/vue3';
|
||||
|
||||
defineProps({
|
||||
@@ -29,65 +29,60 @@ const submit = () => {
|
||||
<template>
|
||||
<Head title="Connexion superviseur" />
|
||||
|
||||
<div class="flex min-h-screen flex-col items-center justify-center bg-gray-100 px-4">
|
||||
<div class="flex min-h-screen flex-col items-center justify-center bg-gradient-to-br from-slate-900 via-slate-900 to-indigo-950 px-4 py-12">
|
||||
<div class="mb-8 text-center">
|
||||
<h1 class="text-2xl font-bold text-gray-900">Laverie — Back-office</h1>
|
||||
<p class="mt-1 text-sm text-gray-600">Connexion exploitant</p>
|
||||
<div class="mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-white/10 ring-1 ring-white/20">
|
||||
<LaverieLogo class="h-8 w-8 text-white" />
|
||||
</div>
|
||||
<h1 class="text-2xl font-bold tracking-tight text-white">Laverie</h1>
|
||||
<p class="mt-1 text-sm text-indigo-200/80">Back-office — Connexion exploitant</p>
|
||||
</div>
|
||||
|
||||
<div class="w-full max-w-md overflow-hidden rounded-lg bg-white px-6 py-8 shadow-md">
|
||||
<div v-if="status" class="mb-4 text-sm font-medium text-green-600">
|
||||
<div class="w-full max-w-md overflow-hidden rounded-2xl border border-white/10 bg-white p-8 shadow-2xl">
|
||||
<div v-if="status" class="mb-4 rounded-xl bg-emerald-50 px-4 py-3 text-sm font-medium text-emerald-700">
|
||||
{{ status }}
|
||||
</div>
|
||||
|
||||
<form @submit.prevent="submit">
|
||||
<form @submit.prevent="submit" class="space-y-5">
|
||||
<div>
|
||||
<InputLabel for="email" value="Adresse e-mail" />
|
||||
|
||||
<TextInput
|
||||
<label for="email" :class="labelClass">Adresse e-mail</label>
|
||||
<input
|
||||
id="email"
|
||||
type="email"
|
||||
class="mt-1 block w-full"
|
||||
v-model="form.email"
|
||||
type="email"
|
||||
required
|
||||
autofocus
|
||||
autocomplete="username"
|
||||
:class="inputClass"
|
||||
/>
|
||||
|
||||
<InputError class="mt-2" :message="form.errors.email" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<InputLabel for="password" value="Mot de passe" />
|
||||
|
||||
<TextInput
|
||||
<div>
|
||||
<label for="password" :class="labelClass">Mot de passe</label>
|
||||
<input
|
||||
id="password"
|
||||
type="password"
|
||||
class="mt-1 block w-full"
|
||||
v-model="form.password"
|
||||
type="password"
|
||||
required
|
||||
autocomplete="current-password"
|
||||
:class="inputClass"
|
||||
/>
|
||||
|
||||
<InputError class="mt-2" :message="form.errors.password" />
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<label class="flex items-center">
|
||||
<Checkbox name="remember" v-model:checked="form.remember" />
|
||||
<span class="ms-2 text-sm text-gray-600">Se souvenir de moi</span>
|
||||
</label>
|
||||
</div>
|
||||
<label class="flex items-center gap-2">
|
||||
<Checkbox name="remember" v-model:checked="form.remember" />
|
||||
<span class="text-sm text-slate-600">Se souvenir de moi</span>
|
||||
</label>
|
||||
|
||||
<div class="mt-6">
|
||||
<PrimaryButton
|
||||
class="w-full justify-center"
|
||||
:class="{ 'opacity-25': form.processing }"
|
||||
:disabled="form.processing"
|
||||
>
|
||||
Se connecter
|
||||
</PrimaryButton>
|
||||
</div>
|
||||
<PrimaryButton
|
||||
class="w-full justify-center"
|
||||
:class="{ 'opacity-50': form.processing }"
|
||||
:disabled="form.processing"
|
||||
>
|
||||
Se connecter
|
||||
</PrimaryButton>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user