|
15 | 15 | <!-- Styles --> |
16 | 16 | <link href="{{ mix('css/app.css') }}" rel="stylesheet"> |
17 | 17 | </head> |
18 | | -<body class="bg-gray-100 h-screen antialiased leading-none"> |
| 18 | +<body class="bg-gray-100 h-screen antialiased leading-none font-sans"> |
19 | 19 | <div id="app"> |
20 | | - <nav class="bg-blue-900 shadow mb-8 py-6"> |
21 | | - <div class="container mx-auto px-6 md:px-0"> |
22 | | - <div class="flex items-center justify-center"> |
23 | | - <div class="mr-6"> |
24 | | - <a href="{{ url('/') }}" class="text-lg font-semibold text-gray-100 no-underline"> |
25 | | - {{ config('app.name', 'Laravel') }} |
26 | | - </a> |
27 | | - </div> |
28 | | - <div class="flex-1 text-right"> |
29 | | - @guest |
30 | | - <a class="no-underline hover:underline text-gray-300 text-sm p-3" href="{{ route('login') }}">{{ __('Login') }}</a> |
31 | | - @if (Route::has('register')) |
32 | | - <a class="no-underline hover:underline text-gray-300 text-sm p-3" href="{{ route('register') }}">{{ __('Register') }}</a> |
33 | | - @endif |
34 | | - @else |
35 | | - <span class="text-gray-300 text-sm pr-4">{{ Auth::user()->name }}</span> |
36 | | - |
37 | | - <a href="{{ route('logout') }}" |
38 | | - class="no-underline hover:underline text-gray-300 text-sm p-3" |
39 | | - onclick="event.preventDefault(); |
40 | | - document.getElementById('logout-form').submit();">{{ __('Logout') }}</a> |
41 | | - <form id="logout-form" action="{{ route('logout') }}" method="POST" class="hidden"> |
42 | | - {{ csrf_field() }} |
43 | | - </form> |
44 | | - @endguest |
45 | | - </div> |
| 20 | + <header class="bg-blue-900 py-6"> |
| 21 | + <div class="container mx-auto flex justify-between items-center px-6"> |
| 22 | + <div> |
| 23 | + <a href="{{ url('/') }}" class="text-lg font-semibold text-gray-100 no-underline"> |
| 24 | + {{ config('app.name', 'Laravel') }} |
| 25 | + </a> |
46 | 26 | </div> |
| 27 | + <nav class="space-x-4 text-gray-300 text-sm sm:text-base"> |
| 28 | + @guest |
| 29 | + <a class="no-underline hover:underline" href="{{ route('login') }}">{{ __('Login') }}</a> |
| 30 | + @if (Route::has('register')) |
| 31 | + <a class="no-underline hover:underline" href="{{ route('register') }}">{{ __('Register') }}</a> |
| 32 | + @endif |
| 33 | + @else |
| 34 | + <span>{{ Auth::user()->name }}</span> |
| 35 | + |
| 36 | + <a href="{{ route('logout') }}" |
| 37 | + class="no-underline hover:underline" |
| 38 | + onclick="event.preventDefault(); |
| 39 | + document.getElementById('logout-form').submit();">{{ __('Logout') }}</a> |
| 40 | + <form id="logout-form" action="{{ route('logout') }}" method="POST" class="hidden"> |
| 41 | + {{ csrf_field() }} |
| 42 | + </form> |
| 43 | + @endguest |
| 44 | + </nav> |
47 | 45 | </div> |
48 | | - </nav> |
| 46 | + </header> |
49 | 47 |
|
50 | 48 | @yield('content') |
51 | 49 | </div> |
|
0 commit comments