|
1 | 1 | @extends('layouts.app')
|
2 | 2 |
|
3 | 3 | @section('content')
|
4 |
| - <div class="container mx-auto"> |
5 |
| - <div class="flex flex-wrap justify-center"> |
6 |
| - <div class="w-full max-w-sm"> |
7 |
| - <div class="flex flex-col break-words bg-white border-2 rounded shadow-md"> |
| 4 | +<main class="sm:container sm:mx-auto sm:max-w-lg sm:mt-10"> |
| 5 | + <div class="flex"> |
| 6 | + <div class="w-full"> |
| 7 | + <section class="flex flex-col break-words bg-white sm:border-1 sm:rounded-md sm:shadow-sm sm:shadow-lg"> |
8 | 8 |
|
9 |
| - <div class="font-semibold bg-gray-200 text-gray-700 py-3 px-6 mb-0"> |
10 |
| - {{ __('Login') }} |
11 |
| - </div> |
| 9 | + <header class="font-semibold bg-gray-200 text-gray-700 py-5 px-6 sm:py-6 sm:px-8 sm:rounded-t-md"> |
| 10 | + {{ __('Login') }} |
| 11 | + </header> |
12 | 12 |
|
13 |
| - <form class="w-full p-6" method="POST" action="{{ route('login') }}"> |
14 |
| - @csrf |
| 13 | + <form class="w-full px-6 space-y-6 sm:px-10 sm:space-y-8" method="POST" action="{{ route('login') }}"> |
| 14 | + @csrf |
15 | 15 |
|
16 |
| - <div class="flex flex-wrap mb-6"> |
17 |
| - <label for="email" class="block text-gray-700 text-sm font-bold mb-2"> |
18 |
| - {{ __('E-Mail Address') }}: |
19 |
| - </label> |
| 16 | + <div class="flex flex-wrap"> |
| 17 | + <label for="email" class="block text-gray-700 text-sm font-bold mb-2 sm:mb-4"> |
| 18 | + {{ __('E-Mail Address') }}: |
| 19 | + </label> |
20 | 20 |
|
21 |
| - <input id="email" type="email" class="form-input w-full @error('email') border-red-500 @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus> |
| 21 | + <input id="email" type="email" |
| 22 | + class="form-input w-full @error('email') border-red-500 @enderror" name="email" |
| 23 | + value="{{ old('email') }}" required autocomplete="email" autofocus> |
22 | 24 |
|
23 |
| - @error('email') |
24 |
| - <p class="text-red-500 text-xs italic mt-4"> |
25 |
| - {{ $message }} |
26 |
| - </p> |
27 |
| - @enderror |
28 |
| - </div> |
| 25 | + @error('email') |
| 26 | + <p class="text-red-500 text-xs italic mt-4"> |
| 27 | + {{ $message }} |
| 28 | + </p> |
| 29 | + @enderror |
| 30 | + </div> |
29 | 31 |
|
30 |
| - <div class="flex flex-wrap mb-6"> |
31 |
| - <label for="password" class="block text-gray-700 text-sm font-bold mb-2"> |
32 |
| - {{ __('Password') }}: |
33 |
| - </label> |
| 32 | + <div class="flex flex-wrap"> |
| 33 | + <label for="password" class="block text-gray-700 text-sm font-bold mb-2 sm:mb-4"> |
| 34 | + {{ __('Password') }}: |
| 35 | + </label> |
34 | 36 |
|
35 |
| - <input id="password" type="password" class="form-input w-full @error('password') border-red-500 @enderror" name="password" required> |
| 37 | + <input id="password" type="password" |
| 38 | + class="form-input w-full @error('password') border-red-500 @enderror" name="password" |
| 39 | + required> |
36 | 40 |
|
37 |
| - @error('password') |
38 |
| - <p class="text-red-500 text-xs italic mt-4"> |
39 |
| - {{ $message }} |
40 |
| - </p> |
41 |
| - @enderror |
42 |
| - </div> |
| 41 | + @error('password') |
| 42 | + <p class="text-red-500 text-xs italic mt-4"> |
| 43 | + {{ $message }} |
| 44 | + </p> |
| 45 | + @enderror |
| 46 | + </div> |
43 | 47 |
|
44 |
| - <div class="flex mb-6"> |
45 |
| - <label class="inline-flex items-center text-sm text-gray-700" for="remember"> |
46 |
| - <input type="checkbox" name="remember" id="remember" class="form-checkbox" {{ old('remember') ? 'checked' : '' }}> |
47 |
| - <span class="ml-2">{{ __('Remember Me') }}</span> |
48 |
| - </label> |
49 |
| - </div> |
| 48 | + <div class="flex items-center"> |
| 49 | + <label class="inline-flex items-center text-sm text-gray-700" for="remember"> |
| 50 | + <input type="checkbox" name="remember" id="remember" class="form-checkbox" |
| 51 | + {{ old('remember') ? 'checked' : '' }}> |
| 52 | + <span class="ml-2">{{ __('Remember Me') }}</span> |
| 53 | + </label> |
50 | 54 |
|
51 |
| - <div class="flex flex-wrap items-center"> |
52 |
| - <button type="submit" class="bg-blue-500 hover:bg-blue-700 text-gray-100 font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"> |
53 |
| - {{ __('Login') }} |
54 |
| - </button> |
| 55 | + @if (Route::has('password.request')) |
| 56 | + <a class="text-sm text-blue-500 hover:text-blue-700 whitespace-no-wrap no-underline hover:underline ml-auto" |
| 57 | + href="{{ route('password.request') }}"> |
| 58 | + {{ __('Forgot Your Password?') }} |
| 59 | + </a> |
| 60 | + @endif |
| 61 | + </div> |
55 | 62 |
|
56 |
| - @if (Route::has('password.request')) |
57 |
| - <a class="text-sm text-blue-500 hover:text-blue-700 whitespace-no-wrap no-underline ml-auto" href="{{ route('password.request') }}"> |
58 |
| - {{ __('Forgot Your Password?') }} |
59 |
| - </a> |
60 |
| - @endif |
| 63 | + <div class="flex flex-wrap"> |
| 64 | + <button type="submit" |
| 65 | + class="w-full select-none font-bold whitespace-no-wrap p-3 rounded-lg text-base leading-normal no-underline text-gray-100 bg-blue-500 hover:bg-blue-700 sm:py-4"> |
| 66 | + {{ __('Login') }} |
| 67 | + </button> |
61 | 68 |
|
62 |
| - @if (Route::has('register')) |
63 |
| - <p class="w-full text-xs text-center text-gray-700 mt-8 -mb-4"> |
64 |
| - {{ __("Don't have an account?") }} |
65 |
| - <a class="text-blue-500 hover:text-blue-700 no-underline" href="{{ route('register') }}"> |
66 |
| - {{ __('Register') }} |
67 |
| - </a> |
68 |
| - </p> |
69 |
| - @endif |
70 |
| - </div> |
71 |
| - </form> |
| 69 | + @if (Route::has('register')) |
| 70 | + <p class="w-full text-xs text-center text-gray-700 my-6 sm:text-sm sm:my-8"> |
| 71 | + {{ __("Don't have an account?") }} |
| 72 | + <a class="text-blue-500 hover:text-blue-700 no-underline hover:underline" href="{{ route('register') }}"> |
| 73 | + {{ __('Register') }} |
| 74 | + </a> |
| 75 | + </p> |
| 76 | + @endif |
| 77 | + </div> |
| 78 | + </form> |
72 | 79 |
|
73 |
| - </div> |
74 |
| - </div> |
| 80 | + </section> |
75 | 81 | </div>
|
76 | 82 | </div>
|
| 83 | +</main> |
77 | 84 | @endsection
|
0 commit comments