55 lines
2.4 KiB
PHP
55 lines
2.4 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="mx-auto max-w-md">
|
|
<div class="rounded-lg border border-zinc-200 bg-white p-6 shadow-sm">
|
|
<h1 class="text-2xl font-semibold">Connexion</h1>
|
|
|
|
<form method="POST" action="{{ route('login') }}" class="mt-6 space-y-5">
|
|
@csrf
|
|
|
|
<div>
|
|
<label for="email" class="block text-sm font-medium text-zinc-700">Identifiant</label>
|
|
<input
|
|
id="email"
|
|
name="email"
|
|
type="text"
|
|
value="{{ old('email') }}"
|
|
autocomplete="username"
|
|
required
|
|
autofocus
|
|
class="mt-2 block w-full rounded-md border border-zinc-300 px-3 py-2 text-base shadow-sm outline-none focus:border-teal-600 focus:ring-2 focus:ring-teal-600/20"
|
|
>
|
|
@error('email')
|
|
<p class="mt-2 text-sm text-red-700">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password" class="block text-sm font-medium text-zinc-700">Mot de passe</label>
|
|
<input
|
|
id="password"
|
|
name="password"
|
|
type="password"
|
|
autocomplete="current-password"
|
|
required
|
|
class="mt-2 block w-full rounded-md border border-zinc-300 px-3 py-2 text-base shadow-sm outline-none focus:border-teal-600 focus:ring-2 focus:ring-teal-600/20"
|
|
>
|
|
@error('password')
|
|
<p class="mt-2 text-sm text-red-700">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<label class="flex items-center gap-2 text-sm text-zinc-700">
|
|
<input name="remember" type="checkbox" class="h-4 w-4 rounded border-zinc-300 text-teal-700 focus:ring-teal-600">
|
|
Rester connecte
|
|
</label>
|
|
|
|
<button type="submit" class="w-full rounded-md bg-teal-700 px-4 py-2.5 text-sm font-semibold text-white hover:bg-teal-800 focus:outline-none focus:ring-2 focus:ring-teal-600 focus:ring-offset-2">
|
|
Se connecter
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|