Components Header Header Component

Header Component

A responsive header component for a dashboard with microinteractions and vibrant colors, supporting dark theme.

Preview

HTML Code

<header class="bg-blue-600 dark:bg-gray-800 p-4 flex justify-between items-center transition-all duration-300">
    <div class="flex items-center space-x-4">
        <img src="https://picsum.photos/40/40" alt="Logo" class="rounded-full h-10 w-10 hover:scale-110 transition-transform duration-300">
        <h1 class="text-white text-xl font-bold hover:text-blue-300 transition-colors duration-300">Dashboard</h1>
    </div>
    <nav class="hidden md:flex space-x-6">
        <a href="#" class="text-white hover:text-blue-300 transition-colors duration-300">Home</a>
        <a href="#" class="text-white hover:text-blue-300 transition-colors duration-300">Reports</a>
        <a href="#" class="text-white hover:text-blue-300 transition-colors duration-300">Settings</a>
    </nav>
    <div class="flex items-center space-x-4">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="rounded-full h-10 w-10 border-2 border-white hover:border-blue-300 transition-all duration-300">
        <button class="bg-blue-700 dark:bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-500 transition-colors duration-300">Logout</button>
    </div>
</header>

Related Components

Header Component

A simple Header Component designed using Neumorphism style with vibrant colors, perfect for a blog/content webpage. It features dark mode support for responsive design.

Open

Social Media Header Component

A complex, dark-mode responsive Header Component with a minimalist design and a complementary color scheme, designed for social media interfaces.

Open

Header Component

A responsive header component designed in a Brutalism style with a pastel color scheme for a blog or content site, incorporating dark theme support.

Open