Grid Layout Component
A minimalistic grid layout component for e-commerce with a triadic color scheme and dark mode support, designed for online shopping experiences.
HTML Code
<div class="container mx-auto px-4">
<h1 class="text-3xl font-bold text-gray-800 dark:text-white mb-6">Shop Our Collection</h1>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow hover:shadow-lg transition ease-in-out duration-300 overflow-hidden">
<img src="https://picsum.photos/300/200?random=1" alt="Product 1" class="w-full h-48 object-cover">
<div class="p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Product Title 1</h2>
<p class="text-gray-600 dark:text-gray-400">Short description of the product.</p>
<span class="block mt-2 text-lg font-bold text-gray-800 dark:text-gray-200">$39.99</span>
<button class="mt-4 w-full bg-indigo-600 dark:bg-indigo-500 text-white px-4 py-2 rounded shadow hover:bg-indigo-700 dark:hover:bg-indigo-400 transition ease-in-out duration-300">Add to Cart</button>
</div>
</div>
<div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow hover:shadow-lg transition ease-in-out duration-300 overflow-hidden">
<img src="https://picsum.photos/300/200?random=2" alt="Product 2" class="w-full h-48 object-cover">
<div class="p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Product Title 2</h2>
<p class="text-gray-600 dark:text-gray-400">Short description of the product.</p>
<span class="block mt-2 text-lg font-bold text-gray-800 dark:text-gray-200">$49.99</span>
<button class="mt-4 w-full bg-indigo-600 dark:bg-indigo-500 text-white px-4 py-2 rounded shadow hover:bg-indigo-700 dark:hover:bg-indigo-400 transition ease-in-out duration-300">Add to Cart</button>
</div>
</div>
<div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow hover:shadow-lg transition ease-in-out duration-300 overflow-hidden">
<img src="https://picsum.photos/300/200?random=3" alt="Product 3" class="w-full h-48 object-cover">
<div class="p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Product Title 3</h2>
<p class="text-gray-600 dark:text-gray-400">Short description of the product.</p>
<span class="block mt-2 text-lg font-bold text-gray-800 dark:text-gray-200">$59.99</span>
<button class="mt-4 w-full bg-indigo-600 dark:bg-indigo-500 text-white px-4 py-2 rounded shadow hover:bg-indigo-700 dark:hover:bg-indigo-400 transition ease-in-out duration-300">Add to Cart</button>
</div>
</div>
<div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow hover:shadow-lg transition ease-in-out duration-300 overflow-hidden">
<img src="https://picsum.photos/300/200?random=4" alt="Product 4" class="w-full h-48 object-cover">
<div class="p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Product Title 4</h2>
<p class="text-gray-600 dark:text-gray-400">Short description of the product.</p>
<span class="block mt-2 text-lg font-bold text-gray-800 dark:text-gray-200">$69.99</span>
<button class="mt-4 w-full bg-indigo-600 dark:bg-indigo-500 text-white px-4 py-2 rounded shadow hover:bg-indigo-700 dark:hover:bg-indigo-400 transition ease-in-out duration-300">Add to Cart</button>
</div>
</div>
<div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow hover:shadow-lg transition ease-in-out duration-300 overflow-hidden">
<img src="https://picsum.photos/300/200?random=5" alt="Product 5" class="w-full h-48 object-cover">
<div class="p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Product Title 5</h2>
<p class="text-gray-600 dark:text-gray-400">Short description of the product.</p>
<span class="block mt-2 text-lg font-bold text-gray-800 dark:text-gray-200">$79.99</span>
<button class="mt-4 w-full bg-indigo-600 dark:bg-indigo-500 text-white px-4 py-2 rounded shadow hover:bg-indigo-700 dark:hover:bg-indigo-400 transition ease-in-out duration-300">Add to Cart</button>
</div>
</div>
<div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow hover:shadow-lg transition ease-in-out duration-300 overflow-hidden">
<img src="https://picsum.photos/300/200?random=6" alt="Product 6" class="w-full h-48 object-cover">
<div class="p-4">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Product Title 6</h2>
<p class="text-gray-600 dark:text-gray-400">Short description of the product.</p>
<span class="block mt-2 text-lg font-bold text-gray-800 dark:text-gray-200">$89.99</span>
<button class="mt-4 w-full bg-indigo-600 dark:bg-indigo-500 text-white px-4 py-2 rounded shadow hover:bg-indigo-700 dark:hover:bg-indigo-400 transition ease-in-out duration-300">Add to Cart</button>
</div>
</div>
</div>
</div>
Related Components
Grid Layout Component 29
A responsive grid layout component designed in a brutalist style with high contrast and unusual layouts, supporting dark mode with Tailwind CSS.
Grid Layout Component
A responsive grid layout component with a retro/vintage design, featuring nostalgic 80s/90s aesthetics. The component includes placeholder images and avatars with support for dark mode.
Skeuomorphism Grid Layout Component
Skeuomorphism Grid Layout Component with responsive effects and dark theme support.