VILT Components
Header
import Header from @/Components/Header.vue;
Create a dynamic header featuring your logo on the left, links in the center, and a Call to Action (CTA) on the right. On mobile devices, the links and CTA are concealed and can be accessed through a burger menu.
Insert your own logo into the /public/images
folder, ensuring that the file name in the component matches (currently set as logo.svg).
resources/js/Components/Header.vue
<div class="max-w-7xl m-auto navbar bg-base-100">
<div class="navbar-start">
<div class="dropdown">
<div tabindex="0" role="button" class="btn btn-ghost lg:hidden">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" /></svg>
</div>
<ul tabindex="0" class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
<li><a href="#">About Us</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#">How It Works</a></li>
<li><a :href="route('blog.index')">Blog</a></li>
</ul>
</div>
<a href="/" class="flex flex-row items-center justify-center font-bold text-md">
<img class="w-16" src="/images/logo.svg" alt="">
<span class="ml-2 flex flex-col items-start">
<span class="leading-4">Your app name</span>
</span>
</a>
</div>
<div class="navbar-center hidden lg:flex">
<ul class="menu menu-horizontal px-1">
<li><a href="#">About Us</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#">How It Works</a></li>
<li><a :href="route('blog.index')">Blog</a></li>
</ul>
</div>
<div class="navbar-end">
<a :href="route('login')" class="btn btn-secondary">Get Started</a>
</div>
</div>
For more variants check https://daisyui.com/components/navbar/