Navigation Bar Component
A responsive navigation bar with Microinteractions, and dark mode support using Tailwind CSS.
HTML Code
<nav class="bg-white dark:bg-gray-800 shadow-md">
<div class="container mx-auto px-6 py-3">
<div class="flex items-center justify-between">
<div class="text-xl font-semibold text-gray-700 dark:text-white">
<a href="#" class="hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out">My Website</a>
</div>
<div class="hidden md:block">
<div class="flex items-center space-x-4">
<a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">Home</a>
<a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">About</a>
<a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">Services</a>
<a href="#" class="text-gray-700 dark:text-white hover:text-gray-900 dark:hover:text-gray-200 transition duration-300 ease-in-out transform hover:scale-105">Contact</a>
</div>
</div>
<div class="md:hidden">
<button class="text-gray-700 dark:text-white focus:outline-none">
<svg viewBox="0 0 24 24" fill="currentColor" class="h-6 w-6">
<path fill-rule="evenodd" d="M4 5h16a1 1 0 010 2H4a1 1 0 110-2zm0 6h16a1 1 0 010 2H4a1 1 0 010-2zm0 6h16a1 1 0 010 2H4a1 1 0 010-2z"></path>
</svg>
</button>
</div>
</div>
</div>
</nav>
Related Components
Navigation Bar Component 16
A minimalist flat design navigation bar component with responsive effects and dark theme support.
Skeuomorphic Navigation Bar
A portfolio navigation bar component designed with skeuomorphic styles and a pastel color scheme, including support for dark mode. It features interactive elements such as links and a dropdown menu.
Navigation Bar Component
A responsive Navigation Bar Component designed in Material Design style with triadic color scheme, suitable for social media interfaces, and includes dark theme support.