组件 电子商务卡片

电子商务卡片

一个响应式电子商务卡片组件,支持暗模式,使用Tailwind CSS和材料设计原则。具有生动的配色方案和中等复杂度,包括按钮和悬停效果等交互元素。使用基于网格的布局和阴影效果以增加深度。

预览

HTML 代码

<div class="dark:bg-gray-800 dark:text-white p-4 rounded-lg shadow-lg grid grid-cols-1 md:grid-cols-2 gap-4"> <div class="relative"> <img class="w-full h-48 object-cover rounded" src="https://picsum.photos/seed/picsum/400/300" alt="Product Image"> <div class="absolute top-2 right-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded"> -20% </div> </div> <div class="flex flex-col justify-between"> <div> <h3 class="text-xl font-bold dark:text-white">Product Title</h3> <p class="text-gray-600 dark:text-gray-300">Short product description with vibrant accents.</p> <div class="flex items-center mt-2"> <span class="text-lg font-semibold text-blue-600 dark:text-blue-400">$19.99</span> <span class="text-sm text-gray-500 line-through ml-2">$24.99</span> </div> </div> <div class="flex space-x-2 mt-4"> <button class="flex-grow bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded dark:bg-blue-700 dark:hover:bg-blue-800"> Add to Cart </button> <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded dark:bg-gray-600 dark:hover:bg-gray-700 dark:text-white"> Wishlist </button> </div> </div> </div>

相关组件

Skeuomorphic_Crypto_Cards

一组响应式拟物化卡片,专为加密货币或区块链应用程序而设计。具有柔和的色彩、微妙的阴影和高光,以及深色模式支持。

打开

卡片组件

一个响应式博客/内容卡组件,采用拟物化样式和大地色调设计。包括标题、图像、简要描述和用于作者信息的头像。支持深色模式。

打开

黑暗模式卡片组件

一个为商业/企业网站设计的响应式卡片组件,具有深色模式用户界面和灰度配色方案,呈现适中复杂度和交互性。

打开