This commit is contained in:
2026-04-05 20:14:30 +00:00
parent 22ac0aa781
commit 1606778518
12 changed files with 130 additions and 57 deletions

View File

@@ -5,34 +5,31 @@
<p class="text-gray-500 text-sm mt-1">Accedi per continuare</p>
</div>
<form wire:submit="login" class="space-y-5">
<form method="POST" action="{{ route('login.store') }}" class="space-y-5">
@csrf
<div>
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
<input wire:model="email" type="email" id="email" autocomplete="email"
<input name="email" value="{{ old('email') }}" type="email" id="email" autocomplete="email"
class="mt-1 block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm px-4 py-2.5">
@error('email') <p class="mt-1 text-sm text-red-600">{{ $message }}</p> @enderror
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700">Password</label>
<input wire:model="password" type="password" id="password" autocomplete="current-password"
<input name="password" type="password" id="password" autocomplete="current-password"
class="mt-1 block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 text-sm px-4 py-2.5">
@error('password') <p class="mt-1 text-sm text-red-600">{{ $message }}</p> @enderror
</div>
<div class="flex items-center">
<input wire:model="remember" type="checkbox" id="remember"
<input name="remember" value="1" {{ old('remember') ? 'checked' : '' }} type="checkbox" id="remember"
class="h-4 w-4 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500">
<label for="remember" class="ml-2 text-sm text-gray-600">Ricordami</label>
</div>
<button type="submit"
class="w-full flex justify-center py-2.5 px-4 border border-transparent rounded-lg shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
<span wire:loading.remove>Accedi</span>
<span wire:loading class="flex items-center gap-2">
<svg class="animate-spin h-4 w-4" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none"/><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"/></svg>
Accesso in corso...
</span>
<span>Accedi</span>
</button>
</form>
</div>