Navigation Components Component
A responsive navigation component with dark mode support using Tailwind CSS. It includes a logo, navigation links, and a call-to-action button.
HTML Code
<nav class="bg-gray-900 text-white">
<div class="container mx-auto px-6 py-4">
<div class="flex justify-between items-center">
<div class="flex items-center">
<svg class="w-8 h-8 fill-current text-white mr-2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path></svg>
<span class="text-xl font-bold">MyCompany</span>
</div>
<div class="hidden md:flex space-x-4">
<a href="#" class="hover:text-purple-400">Home</a>
<a href="#" class="hover:text-purple-400">About</a>
<a href="#" class="hover:text-purple-400">Services</a>
<a href="#" class="hover:text-purple-400">Contact</a>
</div>
<div class="hidden md:block">
<button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-full">Get Started</button>
</div>
<div class="md:hidden">
<button class="text-white focus:outline-none">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"></path></svg>
</button>
</div>
</div>
</div>
</nav>
Related Components
Retro E-commerce Navigation Bar
A retro/vintage-styled grayscale navigation component for e-commerce, featuring moderate complexity with interactive elements like hovers and dropdowns. It is responsive and includes dark mode support using Tailwind CSS.
Cyberpunk_Food_Nav
A simple, responsive cyberpunk-themed navigation component for food/restaurant websites, featuring dark backgrounds, neon accents, and dark mode support.
Brutalist_Dating_Navigation_Simple
A simple, brutalist-inspired navigation bar for a dating/social app, featuring high-contrast elements, warm neutrals, and full responsiveness with dark mode support.