3D Header Component
A complex, interactive header component designed for social media interfaces using a 3D style with grayscale colors. It includes a logo, search bar, user avatars, and action buttons, with responsive behavior and dark mode support.
HTML Code
<header class="bg-white dark:bg-gray-800 shadow-lg rounded-lg p-4 flex items-center justify-between">
<div class="flex items-center">
<img src="https://picsum.photos/50/50" alt="Logo" class="rounded-full shadow-lg">
<h1 class="ml-3 text-gray-800 dark:text-white text-xl font-bold">Social Media App</h1>
</div>
<div class="flex-grow mx-4">
<input type="text" placeholder="Search..." class="bg-gray-200 dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg px-4 py-2 w-full focus:outline-none focus:ring-2 focus:ring-gray-500 dark:focus:ring-gray-400 transition-shadow duration-300 shadow-md dark:shadow-lg" />
</div>
<div class="flex items-center">
<button class="bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors duration-300 p-2 rounded-lg shadow-md dark:shadow-lg mr-2">
<img src="https://randomuser.me/api/portraits/men/10.jpg" alt="Avatar" class="rounded-full w-8 h-8">
</button>
<button class="bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors duration-300 p-2 rounded-lg shadow-md dark:shadow-lg">
<img src="https://randomuser.me/api/portraits/women/10.jpg" alt="Avatar" class="rounded-full w-8 h-8">
</button>
</div>
</header>
Related Components
Header Component
A simple, responsive header component for a blog or content site with monochromatic styling and dark mode support, focusing on subtle microinteractions when hovering over navigation links.
Header Component
A complex, responsive header component for a multi-vendor marketplace, inspired by paper/print aesthetics with a jewel-tone color scheme. Includes search, navigation, user profile, and cart.
Header Component
A responsive header component for a dashboard with microinteractions and vibrant colors, supporting dark theme.