dealhub/resources/views/components/navbar.blade.php
kusowl ec7ae434c4 feat(registration): User registration
- add validation, and prepare the model.
- show errors in form components
- refactor route file to make register route as resource
2026-01-09 14:00:42 +05:30

48 lines
1.8 KiB
PHP

<nav class="flex justify-between items-center wrapper py-6 shadow-xl">
<div class="logo flex space-x-2 items-center">
<x-logo />
<a href="" class="font-bold text-2xl">{{config('app.name')}}</a>
</div>
<!-- desktop menu -->
<div class="nav-links hidden md:block">
<ul class="flex space-x-8 text-accent-600">
<x-nav-links :link="route('home')" name="Home"/>
<x-nav-links :link="route('home')" name="Explore deals"/>
<x-nav-links :link="route('home')" name="About"/>
<x-nav-links :link="route('home')" name="Contact"/>
</ul>
</div>
<div class="nav-buttons space-x-4 font-medium hidden md:block ">
<a href="{{route('login')}}">Login</a>
<a href="{{route('register.create')}}" class="ui-btn ui-btn-neutral">Register</a>
</div>
<!-- mobile menu btn-->
<x-button class="md:hidden" id="openBtn">
<x-heroicon-o-bars-3 class="w-8"/>
</x-button>
</nav>
<!-- mobile menu btn-->
<div id='mobileMenu' class="hidden absolute top-0 h-[101vh] overflow-y-hidden w-[101vw] bg-gray-200 text-xl z-1 p-10">
<div class="flex justify-between mb-8">
<x-logo/>
<x-button id="closeBtn">
<x-heroicon-o-x-mark class="w-8 ml-auto"/>
</x-button>
</div>
<div class="nav-links mb-10">
<ul class="flex flex-col space-y-8 text-accent-600">
<x-nav-links :link="route('home')" name="Home"/>
<x-nav-links :link="route('home')" name="Explore deals"/>
<x-nav-links :link="route('home')" name="About"/>
<x-nav-links :link="route('home')" name="Contact"/>
<a href="{{route('login')}}">Login</a>
<a href="{{route('register.create')}}" class="ui-btn ui-btn-neutral w-fit">Register</a>
</ul>
</div>
</div>