Hamburger Menu Component
A skeuomorphic hamburger menu component for a dashboard with a pastel color scheme and minimalist design.
HTML Code
<div class="flex items-center justify-between p-4 bg-pastel-light dark:bg-pastel-dark rounded-lg shadow-lg">
<div class="flex items-center">
<img src="https://picsum.photos/40" alt="Logo" class="rounded-full mr-2">
<h1 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Dashboard</h1>
</div>
<button class="flex items-center p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
<div class="hamburger">
<div class="w-6 h-1 bg-gray-800 dark:bg-gray-200 mb-1"></div>
<div class="w-6 h-1 bg-gray-800 dark:bg-gray-200 mb-1"></div>
<div class="w-6 h-1 bg-gray-800 dark:bg-gray-200"></div>
</div>
</button>
</div>
<div class="hidden lg:block bg-white dark:bg-gray-800 p-4 rounded-lg shadow-lg mt-2">
<ul class="space-y-2">
<li class="flex items-center p-2 rounded hover:bg-gray-200 dark:hover:bg-gray-700">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="rounded-full h-8 w-8 mr-2">
<span class="text-gray-800 dark:text-gray-200">User Profile</span>
</li>
<li class="flex items-center p-2 rounded hover:bg-gray-200 dark:hover:bg-gray-700">
<img src="https://randomuser.me/api/portraits/men/2.jpg" alt="Avatar" class="rounded-full h-8 w-8 mr-2">
<span class="text-gray-800 dark:text-gray-200">Settings</span>
</li>
<li class="flex items-center p-2 rounded hover:bg-gray-200 dark:hover:bg-gray-700">
<img src="https://randomuser.me/api/portraits/men/3.jpg" alt="Avatar" class="rounded-full h-8 w-8 mr-2">
<span class="text-gray-800 dark:text-gray-200">Logout</span>
</li>
</ul>
</div>
<style>
.hamburger {
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>
Related Components
Hamburger Menu Component
A complex responsive hamburger menu component with glassmorphism design, featuring a frosted glass-like translucent effect, suitable for a portfolio showcasing work or products. It includes a dark theme support and utilizes Tailwind CSS for styling.
Hamburger Menu Component
A responsive Hamburger Menu Component designed in Material Design style with dark theme support, suitable for dashboard navigation.
Hamburger Menu Component
A responsive Hamburger Menu component designed in Brutalism style with a Pastel color scheme. Suitable for a portfolio showcasing work or products.