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
Material Design Business Header
Material Design inspired simple header component with complementary color scheme for business websites. Responsive design with dark theme support.
Retro Vintage Header Component
A responsive header component with a retro/vintage design style, featuring support for dark mode and nostalgic aesthetics inspired by the 80s and 90s.