Navigations-Komponenten
Eine reaktionsschnelle Navigationskomponente nach den Prinzipien von Material Design mit einem triadischen Farbschema, das auf Social-Media-Schnittstellen ausgerichtet ist und den Dunkelmodus unterstützt.
HTML-Code
<nav class="bg-gray-100 dark:bg-gray-800 shadow-lg p-4 rounded-lg">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center space-x-4">
<img src="https://picsum.photos/40" alt="Logo" class="rounded-full">
<h1 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Social Media</h1>
</div>
<ul class="flex space-x-6">
<li><a href="#" class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition">Home</a></li>
<li><a href="#" class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition">Profile</a></li>
<li><a href="#" class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition">Messages</a></li>
<li><a href="#" class="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition">Settings</a></li>
</ul>
<div class="relative">
<img src="https://randomuser.me/api/portraits/thumb/men/1.jpg" alt="User Avatar" class="rounded-full w-8 h-8">
<div class="absolute right-0 w-2 h-2 bg-green-500 rounded-full ring-2 ring-white dark:ring-gray-800"></div>
</div>
</div>
</nav>
<div class="container mx-auto mt-6">
<h2 class="text-2xl font-bold text-gray-800 dark:text-gray-200">Feed</h2>
<div class="mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-white dark:bg-gray-900 p-4 rounded-lg shadow-md">
<img src="https://picsum.photos/300/200" alt="Post Image" class="w-full h-40 object-cover rounded-lg">
<h3 class="font-semibold text-gray-800 dark:text-gray-200 mt-2">Post Title</h3>
<p class="text-gray-600 dark:text-gray-400">This is a short description of the post content.</p>
</div>
<div class="bg-white dark:bg-gray-900 p-4 rounded-lg shadow-md">
<img src="https://picsum.photos/300/201" alt="Post Image" class="w-full h-40 object-cover rounded-lg">
<h3 class="font-semibold text-gray-800 dark:text-gray-200 mt-2">Post Title</h3>
<p class="text-gray-600 dark:text-gray-400">This is a short description of the post content.</p>
</div>
<div class="bg-white dark:bg-gray-900 p-4 rounded-lg shadow-md">
<img src="https://picsum.photos/300/202" alt="Post Image" class="w-full h-40 object-cover rounded-lg">
<h3 class="font-semibold text-gray-800 dark:text-gray-200 mt-2">Post Title</h3>
<p class="text-gray-600 dark:text-gray-400">This is a short description of the post content.</p>
</div>
</div>
</div>
Verwandte Komponenten
Navigationskomponente
Eine reaktionsschnelle Navigationskomponente, die mit Mikrointeraktionen entwickelt wurde und ansprechende Animationen bietet, die auf Benutzeraktionen basieren und sowohl helle als auch dunkle Themen unterstützen. Die Komponente enthält einen Profil-Avatar, Navigationslinks und Hover-Effekte.
Brutalistische Social-Media-Navigation
Eine reaktionsschnelle Navigationskomponente, die in einem brutalistischen Stil für Social-Media-Anwendungen entwickelt wurde und ein komplementäres Farbschema und minimale Elemente verwendet.
Komponente "Navigationskomponenten"
Glassmorphism Monochromatische moderate E-Commerce-Navigationskomponente mit Unterstützung für den Dunkelmodus