Komponente der Navigationsleiste
Eine einfache, reaktionsschnelle Navigationsleistenkomponente, die für ein Dashboard entwickelt wurde und sich durch ein monochromatisches Farbschema und Mikrointeraktionen auszeichnet. Es enthält eine Unterstützung für den Dunkelmodus mit Hover-Effekten für ansprechende Animationen.
HTML-Code
<nav class="bg-gray-800 dark:bg-gray-900 shadow-lg">
<div class="max-w-7xl mx-auto px-4">
<div class="flex justify-between items-center h-16">
<div class="flex-shrink-0">
<h1 class="text-white text-2xl">Dashboard</h1>
</div>
<div class="hidden md:block">
<div class="flex items-center space-x-4">
<a href="#" class="text-gray-300 hover:text-white transition duration-200 ease-in-out">Home</a>
<a href="#" class="text-gray-300 hover:text-white transition duration-200 ease-in-out">Profile</a>
<a href="#" class="text-gray-300 hover:text-white transition duration-200 ease-in-out">Settings</a>
<a href="#" class="text-gray-300 hover:text-white transition duration-200 ease-in-out">Logout</a>
</div>
</div>
<div class="flex md:hidden">
<button class="text-gray-300 hover:text-white focus:outline-none">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
</svg>
</button>
</div>
</div>
</div>
</nav>
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<h2 class="text-white text-xl mb-4">Welcome to your Dashboard</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-gray-700 dark:bg-gray-800 p-4 rounded shadow">
<h3 class="text-white text-lg">Data Visualization</h3>
<img src="https://picsum.photos/300/200" alt="Visualization" class="mt-2 rounded" />
</div>
<div class="bg-gray-700 dark:bg-gray-800 p-4 rounded shadow">
<h3 class="text-white text-lg">Control Panel</h3>
<img src="https://picsum.photos/300/201" alt="Control" class="mt-2 rounded" />
</div>
<div class="bg-gray-700 dark:bg-gray-800 p-4 rounded shadow">
<h3 class="text-white text-lg">User Insights</h3>
<img src="https://picsum.photos/300/202" alt="Insights" class="mt-2 rounded" />
</div>
</div>
</div>
Verwandte Komponenten
Navigationsleiste im Dunkelmodus
Navigationsleistenkomponente mit responsiven Effekten und Unterstützung für dunkle Themen.
Navigationsleiste
Komponente der responsiven Navigationsleiste im Dunkelmodus mit Tailwind CSS
Skeuomorphe Navigationsleiste
Eine reaktionsschnelle Navigationsleistenkomponente, die in einem skeuomorphen Stil mit Unterstützung für dunkle Designs unter Verwendung von Tailwind CSS entworfen wurde.