35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
|
<header class="flex flex-row gap-2 shadow relative"
|
||
|
x-data="{ dropDownActive: false, isMobile: (window.innerWidth < 1024) ? true : false }"
|
||
|
x-on:resize.window="isMobile = (window.innerWidth < 1024) ? true : false;">
|
||
|
@include('components.header.brand')
|
||
|
|
||
|
|
||
|
<div class="p-2 lg:hidden flex flex-auto flex-row-reverse">
|
||
|
<button x-on:click="dropDownActive = !dropDownActive" class="p-2">
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
|
||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
|
||
|
</svg>
|
||
|
</button>
|
||
|
</div>
|
||
|
|
||
|
<template x-if="!isMobile || dropDownActive">
|
||
|
<div class="
|
||
|
lg:flex
|
||
|
justify-between
|
||
|
flex-auto
|
||
|
lg:static
|
||
|
absolute
|
||
|
left-0
|
||
|
right-0
|
||
|
top-full
|
||
|
max-lg:bg-white
|
||
|
max-lg:shadow-md
|
||
|
divide-y">
|
||
|
<x-header.navbar/>
|
||
|
|
||
|
@include('components.header.profile')
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
</header>
|