Social Media Navigation Component
A simple, responsive navigation component for social media applications, with a dark theme and Material Design-inspired complementary color scheme. It includes a logo, navigation links, and a user avatar.
HTML Code
<nav class="bg-blue-500 dark:bg-blue-900 p-4 shadow-md">
<div class="container mx-auto flex items-center justify-between">
<!-- Logo -->
<a href="#" class="text-white text-2xl font-bold">SocialLink</a>
<!-- Navigation Links -->
<div class="hidden md:flex space-x-6">
<a href="#" class="text-white hover:text-yellow-200 transition duration-300">Home</a>
<a href="#" class="text-white hover:text-yellow-200 transition duration-300">Notifications</a>
<a href="#" class="text-white hover:text-yellow-200 transition duration-300">Messages</a>
<a href="#" class="text-white hover:text-yellow-200 transition duration-300">Profile</a>
</div>
<!-- User Avatar -->
<div class="flex items-center space-x-4">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="w-10 h-10 rounded-full border-2 border-white">
<!-- Mobile Menu Button (Hamburger) -->
<button class="md:hidden 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 12h16M4 18h16"></path>
</svg>
</button>
</div>
</div>
<!-- Mobile Navigation (Hidden by default) -->
<div class="md:hidden mt-4 space-y-2">
<a href="#" class="block text-white hover:text-yellow-200 transition duration-300 px-4 py-2">Home</a>
<a href="#" class="block text-white hover:text-yellow-200 transition duration-300 px-4 py-2">Notifications</a>
<a href="#" class="block text-white hover:text-yellow-200 transition duration-300 px-4 py-2">Messages</a>
<a href="#" class="block text-white hover:text-yellow-200 transition duration-300 px-4 py-2">Profile</a>
</div>
</nav>
Related Components
Social Media Navigation
A responsive social media navigation component with a muted/desaturated color scheme, inspired by Material Design principles, supporting light and dark modes. Features grid-based layout and depth effects.
Retro Social Media Navigation
Responsive Navigation Component with Dark Mode for Social Media (Retro/Vintage, Earth Tones, Moderate Complexity)
Dark Mode Portfolio Navigation
A complex, responsive navigation component for a portfolio website, featuring a dark mode UI with analogous colors, designed to showcase work or products. Includes desktop, tablet, and mobile layouts with dropdowns and user avatar.