4
4
5
5
use App\Livewire\Forms\ LoginForm ;
6
6
use Illuminate\Support\Facades\ Session ;
7
- use Livewire\Attributes\ Layout ;
7
+ use Livewire\Attributes\ Title ;
8
8
use Livewire\Volt\ Component ;
9
9
10
10
new class extends Component
@@ -23,78 +23,75 @@ public function login(): void
23
23
}
24
24
}; ? >
25
25
26
- <div >
27
- <x-container class =" flex min-h-full items-center justify-center py-16 sm:pt-24" >
28
- <div class =" w-full max-w-md space-y-8" >
29
- <div >
30
- <x-validation-errors />
31
- <h2 class =" text-center font-heading text-3xl font-extrabold text-gray-900 dark:text-white" >
32
- {{ __ (' pages/auth.login.title' ) } }
33
- </h2 >
34
- </div >
35
- <form class =" space-y-6" wire:submit =" login" >
36
- @csrf
37
- <div class =" space-y-4" >
38
- <x-filament::input .wrapper >
39
- <x-filament::input
40
- type =" text"
41
- id =" email-address"
42
- name =" email"
43
- autocomplete =" email"
44
- required =" true"
45
- wire:model =" form.email"
46
- aria-label =" {{ __ (' validation.attributes.email' ) } }"
47
- :placeholder =" __('validation.attributes.email')"
48
- />
49
- </x-filament::input .wrapper >
50
- <x-filament::input .wrapper >
51
- <x-filament::input
52
- type =" password"
53
- id =" password"
54
- name =" password"
55
- required =" true"
56
- wire:model =" form.password"
57
- aria-label =" {{ __ (' validation.attributes.password' ) } }"
58
- :placeholder =" __('validation.attributes.password')"
59
- />
60
- </x-filament::input .wrapper >
61
- </div >
26
+ <div >
27
+ <x-container class =" flex min-h-full items-center justify-center py-16 sm:pt-24" >
28
+ <div class =" w-full max-w-md space-y-8" >
29
+ <div >
30
+ <x-validation-errors />
62
31
63
- <div class =" flex items-center justify-between" >
64
- <div class =" flex items-center" >
65
- <label class =" inline-flex items-center gap-2 cursor-pointer text-sm text-gray-500 dark:text-gray-400" >
66
- <x-filament::input .checkbox id =" remember_me" name =" remember_me" />
67
- {{ __ (' pages/auth.login.remember_me' ) } }
68
- </label >
69
- </div >
32
+ <h2 class =" text-center font-heading text-3xl font-extrabold text-gray-900 dark:text-white" >
33
+ {{ __ (' pages/auth.login.title' ) } }
34
+ </h2 >
35
+ </div >
36
+ <form class =" space-y-6" wire:submit =" login" >
37
+ @csrf
38
+ <div class =" space-y-4" >
39
+ <x-filament::input .wrapper >
40
+ <x-filament::input
41
+ type =" text"
42
+ id =" email-address"
43
+ name =" email"
44
+ autocomplete =" email"
45
+ required =" true"
46
+ wire:model =" form.email"
47
+ aria-label =" {{ __ (' validation.attributes.email' ) } }"
48
+ :placeholder =" __('validation.attributes.email')"
49
+ />
50
+ </x-filament::input .wrapper >
51
+ <x-filament::input .wrapper >
52
+ <x-filament::input
53
+ type =" password"
54
+ id =" password"
55
+ name =" password"
56
+ required =" true"
57
+ wire:model =" form.password"
58
+ aria-label =" {{ __ (' validation.attributes.password' ) } }"
59
+ :placeholder =" __('validation.attributes.password')"
60
+ />
61
+ </x-filament::input .wrapper >
62
+ </div >
70
63
71
- <div class =" text-sm" >
72
- <x-link
73
- :href =" route('password.request')"
74
- class =" font-medium text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-white"
75
- >
76
- {{ __ (' pages/auth.login.forgot_password' ) } }
77
- </x-link >
78
- </div >
64
+ <div class =" flex items-center justify-between" >
65
+ <div class =" flex items-center" >
66
+ <label class =" inline-flex items-center gap-2 cursor-pointer text-sm text-gray-500 dark:text-gray-400" >
67
+ <x-filament::input .checkbox id =" remember_me" name =" remember_me" />
68
+ {{ __ (' pages/auth.login.remember_me' ) } }
69
+ </label >
79
70
</div >
80
71
81
- <div >
82
- <x-buttons .primary type = " submit " class = " group relative w-full " >
83
- < span class = " absolute pointer-events-none inset-y-0 left-0 flex items-center pl-3 " >
84
- < x-untitledui-lock class =" size-5 text-green -500 group- hover:text-green-600 " aria-hidden = " true " />
85
- </ span >
86
- {{ __ (' pages/auth.login.submit ' ) } }
87
- </x-buttons .primary >
72
+ <div class = " text-sm " >
73
+ <x-link
74
+ :href = " route('password.request') "
75
+ class =" font-medium text-gray -500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-white "
76
+ >
77
+ {{ __ (' pages/auth.login.forgot_password ' ) } }
78
+ </x-link >
88
79
</div >
89
- </form >
90
-
91
- @include (' partials._socials-link' )
92
- </div >
93
- </x-container >
94
-
95
- <x-join-sponsors :title =" __('global.sponsor_thanks')" />
96
- </div >
97
-
80
+ </div >
98
81
82
+ <div >
83
+ <x-buttons .primary type =" submit" class =" group relative w-full" >
84
+ <span class =" absolute pointer-events-none inset-y-0 left-0 flex items-center pl-3" >
85
+ <x-untitledui-lock class =" size-5 text-green-500 group-hover:text-green-600" aria-hidden =" true" />
86
+ </span >
87
+ {{ __ (' pages/auth.login.submit' ) } }
88
+ </x-buttons .primary >
89
+ </div >
90
+ </form >
99
91
92
+ @include (' partials._socials-link' )
93
+ </div >
94
+ </x-container >
100
95
96
+ <x-join-sponsors :title =" __('global.sponsor_thanks')" />
97
+ </div >
0 commit comments