|
12 | 12 | <title>{{ $page->title }}</title>
|
13 | 13 |
|
14 | 14 | <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap">
|
15 |
| - <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tajawal:300,400,500,700&display=swap&subset=arabic"> |
16 | 15 |
|
17 | 16 | <link rel="stylesheet" href="{{ mix('css/app.css', 'assets/build') }}">
|
18 | 17 |
|
19 | 18 | <script src="{{ mix('js/app.js', 'assets/build') }}"></script>
|
20 | 19 | </head>
|
21 | 20 | <body class="font-roboto">
|
22 |
| - @yield('body') |
| 21 | + <header class="border-b" x-data="{ isOpen: false }"> |
| 22 | + <div class="container px-4 py-5 mx-auto space-y-4 lg:space-y-0 lg:flex lg:items-center lg:justify-between lg:space-x-10"> |
| 23 | + <div class="flex justify-between"> |
| 24 | + <img class="w-48 lg:-mt-1 sm:w-60" src="./assets/logo.svg" alt="Tailwindcomponents logo"> |
| 25 | + |
| 26 | + <div class="flex items-center space-x-2 lg:hidden"> |
| 27 | + <button @click="isOpen = !isOpen" class="p-1 rounded-md hover:bg-gray-100 focus:bg-gray-100 focus:outline-none"> |
| 28 | + <svg class="w-6 h-6 text-gray-500" viewBox="0 0 20 20" fill="currentColor"> |
| 29 | + <path fill-rule="evenodd" |
| 30 | + d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" |
| 31 | + clip-rule="evenodd" /> |
| 32 | + </svg> |
| 33 | + </button> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | + |
| 37 | + <div x-show="isOpen" |
| 38 | + x-transition:enter="transition ease-out duration-100 transform" |
| 39 | + x-transition:enter-start="opacity-0 scale-95" |
| 40 | + x-transition:enter-end="opacity-100 scale-100" |
| 41 | + x-transition:leave="transition ease-in duration-75 transform" |
| 42 | + x-transition:leave-start="opacity-100 scale-100" |
| 43 | + x-transition:leave-end="opacity-0 scale-95" |
| 44 | + class="flex flex-col space-y-4 lg:hidden" |
| 45 | + > |
| 46 | + @include('_layouts.nav') |
| 47 | + </div> |
| 48 | + |
| 49 | + <div class="hidden lg:flex lg:flex-row lg:items-center lg:justify-between lg:flex-1 lg:space-x-2"> |
| 50 | + @include('_layouts.nav') |
| 51 | + </div> |
| 52 | + </div> |
| 53 | + </header> |
| 54 | + |
| 55 | + <main> |
| 56 | + @yield('body') |
| 57 | + </main> |
23 | 58 | </body>
|
24 | 59 | </html>
|
0 commit comments