Functional Components Dashboard
A responsive dashboard component designed with Material Design principles and a monochromatic color scheme. It features grid-based layouts, interactive elements, and dark theme support using Tailwind CSS.
HTML Code
<div class="bg-gray-100 dark:bg-gray-800 p-6 rounded-lg shadow-md">
<h1 class="text-2xl font-semibold text-gray-800 dark:text-gray-200 mb-4">Dashboard</h1>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-white dark:bg-gray-700 rounded-lg shadow-sm p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Card 1</h2>
<img src="https://picsum.photos/200?random=1" alt="Image 1" class="w-full h-48 object-cover rounded my-2">
<p class="text-gray-600 dark:text-gray-400">Details about card 1.</p>
<button class="mt-2 bg-blue-500 dark:bg-blue-700 text-white rounded px-4 py-2 hover:bg-blue-600 dark:hover:bg-blue-600">Action</button>
</div>
<div class="bg-white dark:bg-gray-700 rounded-lg shadow-sm p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Card 2</h2>
<img src="https://picsum.photos/200?random=2" alt="Image 2" class="w-full h-48 object-cover rounded my-2">
<p class="text-gray-600 dark:text-gray-400">Details about card 2.</p>
<button class="mt-2 bg-blue-500 dark:bg-blue-700 text-white rounded px-4 py-2 hover:bg-blue-600 dark:hover:bg-blue-600">Action</button>
</div>
<div class="bg-white dark:bg-gray-700 rounded-lg shadow-sm p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Card 3</h2>
<img src="https://picsum.photos/200?random=3" alt="Image 3" class="w-full h-48 object-cover rounded my-2">
<p class="text-gray-600 dark:text-gray-400">Details about card 3.</p>
<button class="mt-2 bg-blue-500 dark:bg-blue-700 text-white rounded px-4 py-2 hover:bg-blue-600 dark:hover:bg-blue-600">Action</button>
</div>
<div class="bg-white dark:bg-gray-700 rounded-lg shadow-sm p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">User Profile</h2>
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-20 h-20 rounded-full mb-2">
<p class="text-gray-600 dark:text-gray-400">User Name</p>
<p class="text-gray-500 dark:text-gray-500">User Email</p>
</div>
</div>
</div>
Related Components
Functional Components Component
A web component mimicking real-world counterparts in a business-corporate style with a complementary color scheme, simple layout, and responsive design with dark mode support.
Functional Components Component
A functional component with 3D design, responsive effects, and dark mode support, implemented using Tailwind CSS.
Functional Components Component - Dark Mode UI
A responsive social media component designed with dark mode and earth tones, suitable for social networking interfaces. Features user avatars, post content, and interaction buttons.