|
1 | 1 | <x-guest-layout> |
2 | | - <form method="POST" action="{{ route('register') }}"> |
3 | | - @csrf |
4 | | - |
5 | | - <!-- Name --> |
6 | | - <div> |
7 | | - <x-input-label for="name" :value="__('Nome')" /> |
8 | | - <x-text-input id="name" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" /> |
9 | | - <x-input-error :messages="$errors->get('name')" class="mt-2" /> |
10 | | - </div> |
11 | | - |
12 | | - <!-- Surname --> |
13 | | - <div> |
14 | | - <x-input-label for="surname" :value="__('Cognome')" /> |
15 | | - <x-text-input id="surname" class="block mt-1 w-full" type="text" name="surname" :value="old('surname')" required autofocus autocomplete="surname" /> |
16 | | - <x-input-error :messages="$errors->get('surname')" class="mt-2" /> |
17 | | - </div> |
18 | | - |
19 | | - <!-- Birthdate --> |
20 | | - <div> |
21 | | - <x-input-label for="birthdate" :value="__('Data di Nascita')" /> |
22 | | - <x-text-input id="birthdate" class="block mt-1 w-full" type="date" name="birthdate" :value="old('birthdate')" required autofocus autocomplete="birthdate" max="{{ now()->subYears(18)->toDateString() }}" /> |
23 | | - <x-input-error :messages="$errors->get('birthdate')" class="mt-2" /> |
24 | | - </div> |
25 | | - |
26 | | - <!-- Email Address --> |
27 | | - <div class="mt-4"> |
28 | | - <x-input-label for="email" :value="__('Email')" /> |
29 | | - <x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autocomplete="username" /> |
30 | | - <x-input-error :messages="$errors->get('email')" class="mt-2" /> |
31 | | - </div> |
32 | | - |
33 | | - <!-- Password --> |
34 | | - <div class="mt-4"> |
35 | | - <x-input-label for="password" :value="__('Password')" /> |
36 | | - |
37 | | - <x-text-input id="password" class="block mt-1 w-full" |
38 | | - type="password" |
39 | | - name="password" |
40 | | - required autocomplete="new-password" /> |
41 | | - |
42 | | - <x-input-error :messages="$errors->get('password')" class="mt-2" /> |
43 | | - </div> |
44 | | - |
45 | | - <!-- Confirm Password --> |
46 | | - <div class="mt-4"> |
47 | | - <x-input-label for="password_confirmation" :value="__('Confermare Password')" /> |
48 | | - |
49 | | - <x-text-input id="password_confirmation" class="block mt-1 w-full" |
50 | | - type="password" |
51 | | - name="password_confirmation" required autocomplete="new-password" /> |
52 | | - |
53 | | - <x-input-error :messages="$errors->get('password_confirmation')" class="mt-2" /> |
54 | | - </div> |
55 | | - |
56 | | - <div class="flex items-center justify-end mt-4"> |
57 | | - <a class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800" href="{{ route('login') }}"> |
58 | | - {{ __('Già registrato?') }} |
59 | | - </a> |
60 | | - |
61 | | - <x-primary-button class="ms-4"> |
62 | | - {{ __('Registrati') }} |
63 | | - </x-primary-button> |
| 2 | + <div class="min-h-screen flex items-center justify-center bg-gradient-to-r from-neutral-900 via-[#003441] to-neutral-900"> |
| 3 | + <div class="bg-neutral-800 p-8 rounded-xl shadow-lg w-full max-w-md"> |
| 4 | + <!-- Session Status --> |
| 5 | + <x-auth-session-status class="mb-4" :status="session('status')" /> |
| 6 | + |
| 7 | + <form method="POST" action="{{ route('register') }}" class="space-y-6"> |
| 8 | + @csrf |
| 9 | + |
| 10 | + <!-- Name --> |
| 11 | + <div> |
| 12 | + <x-input-label for="name" :value="__('Nome')" class="block text-sm font-medium text-white" /> |
| 13 | + <x-text-input id="name" class="mt-1 block w-full px-4 py-2 border border-gray-500 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 bg-neutral-700 text-white" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" /> |
| 14 | + <x-input-error :messages="$errors->get('name')" class="mt-2 text-sm text-red-600" /> |
| 15 | + </div> |
| 16 | + |
| 17 | + <!-- Email Address --> |
| 18 | + <div> |
| 19 | + <x-input-label for="email" :value="__('Email')" class="block text-sm font-medium text-white" /> |
| 20 | + <x-text-input id="email" class="mt-1 block w-full px-4 py-2 border border-gray-500 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 bg-neutral-700 text-white" type="email" name="email" :value="old('email')" required autocomplete="username" /> |
| 21 | + <x-input-error :messages="$errors->get('email')" class="mt-2 text-sm text-red-600" /> |
| 22 | + </div> |
| 23 | + |
| 24 | + <!-- Password --> |
| 25 | + <div> |
| 26 | + <x-input-label for="password" :value="__('Password')" class="block text-sm font-medium text-white" /> |
| 27 | + |
| 28 | + <x-text-input id="password" class="mt-1 block w-full px-4 py-2 border border-gray-500 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 bg-neutral-700 text-white" |
| 29 | + type="password" |
| 30 | + name="password" |
| 31 | + required autocomplete="new-password" /> |
| 32 | + |
| 33 | + <x-input-error :messages="$errors->get('password')" class="mt-2 text-sm text-red-600" /> |
| 34 | + </div> |
| 35 | + |
| 36 | + <!-- Confirm Password --> |
| 37 | + <div> |
| 38 | + <x-input-label for="password_confirmation" :value="__('Conferma Password')" class="block text-sm font-medium text-white" /> |
| 39 | + |
| 40 | + <x-text-input id="password_confirmation" class="mt-1 block w-full px-4 py-2 border border-gray-500 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 bg-neutral-700 text-white" |
| 41 | + type="password" |
| 42 | + name="password_confirmation" required autocomplete="new-password" /> |
| 43 | + |
| 44 | + <x-input-error :messages="$errors->get('password_confirmation')" class="mt-2 text-sm text-red-600" /> |
| 45 | + </div> |
| 46 | + |
| 47 | + <div class="flex items-center justify-between"> |
| 48 | + <a class="text-sm text-yellow-400 hover:underline focus:outline-none focus:ring-2 focus:ring-yellow-500 rounded-md" href="{{ route('login') }}"> |
| 49 | + {{ __('Hai già un account?') }} |
| 50 | + </a> |
| 51 | + </div> |
| 52 | + |
| 53 | + <div class="flex flex-col space-y-4"> |
| 54 | + <x-primary-button class="w-full py-2 bg-gradient-to-t from-yellow-600 to-yellow-800 text-white font-semibold rounded-md shadow focus:outline-none focus:ring-2 focus:ring-yellow-500"> |
| 55 | + {{ __('Registrati') }} |
| 56 | + </x-primary-button> |
| 57 | + </div> |
| 58 | + </form> |
64 | 59 | </div> |
65 | | - </form> |
| 60 | + </div> |
66 | 61 | </x-guest-layout> |
0 commit comments