Product Gallery Component
A responsive Product Gallery component designed with Glassmorphism, featuring frosted glass-like translucent elements with blur effects and a complementary color scheme. It includes multiple interactive elements suitable for e-commerce with support for dark mode.
HTML Code
<div class="bg-gray-800 dark:bg-gray-900 min-h-screen p-6 flex flex-col items-center justify-center">
<h1 class="text-2xl font-bold text-white mb-6">Product Gallery</h1>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<!-- Product Card -->
<div class="bg-white dark:bg-gray-800 backdrop-blur-md border border-gray-300 dark:border-gray-700 rounded-lg shadow-lg p-4">
<img src="https://picsum.photos/300/200" alt="Product" class="rounded-lg">
<h2 class="text-lg font-semibold mt-4 dark:text-white">Product Name 1</h2>
<p class="text-gray-600 dark:text-gray-300">$29.99</p>
<button class="mt-2 bg-blue-500 dark:bg-blue-700 text-white font-semibold py-2 px-4 rounded hover:bg-blue-600 dark:hover:bg-blue-800 transition duration-200">Add to Cart</button>
</div>
<!-- Product Card -->
<div class="bg-white dark:bg-gray-800 backdrop-blur-md border border-gray-300 dark:border-gray-700 rounded-lg shadow-lg p-4">
<img src="https://picsum.photos/300/201" alt="Product" class="rounded-lg">
<h2 class="text-lg font-semibold mt-4 dark:text-white">Product Name 2</h2>
<p class="text-gray-600 dark:text-gray-300">$39.99</p>
<button class="mt-2 bg-blue-500 dark:bg-blue-700 text-white font-semibold py-2 px-4 rounded hover:bg-blue-600 dark:hover:bg-blue-800 transition duration-200">Add to Cart</button>
</div>
<!-- Product Card -->
<div class="bg-white dark:bg-gray-800 backdrop-blur-md border border-gray-300 dark:border-gray-700 rounded-lg shadow-lg p-4">
<img src="https://picsum.photos/300/202" alt="Product" class="rounded-lg">
<h2 class="text-lg font-semibold mt-4 dark:text-white">Product Name 3</h2>
<p class="text-gray-600 dark:text-gray-300">$49.99</p>
<button class="mt-2 bg-blue-500 dark:bg-blue-700 text-white font-semibold py-2 px-4 rounded hover:bg-blue-600 dark:hover:bg-blue-800 transition duration-200">Add to Cart</button>
</div>
<!-- Product Card -->
<div class="bg-white dark:bg-gray-800 backdrop-blur-md border border-gray-300 dark:border-gray-700 rounded-lg shadow-lg p-4">
<img src="https://picsum.photos/300/203" alt="Product" class="rounded-lg">
<h2 class="text-lg font-semibold mt-4 dark:text-white">Product Name 4</h2>
<p class="text-gray-600 dark:text-gray-300">$59.99</p>
<button class="mt-2 bg-blue-500 dark:bg-blue-700 text-white font-semibold py-2 px-4 rounded hover:bg-blue-600 dark:hover:bg-blue-800 transition duration-200">Add to Cart</button>
</div>
</div>
<div class="mt-10 flex space-x-4">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-2 border-white dark:border-gray-800">
<img src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Avatar" class="w-12 h-12 rounded-full border-2 border-white dark:border-gray-800">
</div>
</div>
Related Components
Product Gallery Component
A responsive product gallery component designed for dark mode, featuring images and avatars with Tailwind CSS.
Product Gallery Component
A simple responsive product gallery component designed with Material Design principles, featuring vibrant colors and dark mode support, suitable for a dashboard. This component uses Tailwind CSS for styling.
Product Gallery Component
A responsive product gallery component using Tailwind CSS with a Neumorphic design style, complementary color scheme, and complex layout suitable for business websites. Includes dark mode support and uses images from picsum.photos.