Product Cards Component
A simple responsive product card component with microinteractions, designed for social media interfaces using Tailwind CSS, supporting dark theme and grayscale color scheme.
HTML Code
<div class="flex flex-col max-w-xs mx-auto rounded-lg shadow-lg overflow-hidden bg-white dark:bg-gray-800 transition-shadow duration-300 hover:shadow-xl">
<img class="w-full h-48 object-cover" src="https://picsum.photos/seed/pic1/400/300" alt="Product Image">
<div class="p-4">
<h2 class="text-lg font-semibold text-gray-800 dark:text-white transition-colors duration-300">Product Title</h2>
<p class="mt-1 text-gray-600 dark:text-gray-300 transition-colors duration-300">Brief description of the product. Engaging text to attract users.</p>
<div class="flex items-center mt-3">
<img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
<span class="ml-2 text-gray-700 dark:text-gray-200 transition-colors duration-300">User Name</span>
</div>
</div>
</div>
<div class="mt-4">
<button class="w-full py-2 px-4 bg-gray-800 text-white rounded hover:bg-gray-700 dark:bg-gray-600 dark:hover:bg-gray-500 transition-colors duration-300">Add to Cart</button>
</div>
Related Components
Product Cards Component
A responsive product card component designed for dark mode, featuring vibrant colors and multiple interactive elements suitable for blogs and content consumption.
Product Cards Component
A brutalist styled product cards component with responsive effects and dark theme support using Tailwind CSS.
Product Cards Component
A responsive product card component designed in a minimalist style with a pastel color scheme, suitable for business or corporate websites, and includes dark mode support.