组件 产品卡 拟物产品卡片

拟物产品卡片

一个用于仪表板的拟物化产品卡组件,采用灰度风格,中等复杂性,响应式并支持黑暗模式。

预览

HTML 代码

<div class="max-w-xs mx-auto bg-gray-200 dark:bg-gray-800 rounded-lg shadow-xl overflow-hidden">
  <div class="relative">
    <img class="w-full h-48 object-cover object-center" src="https://picsum.photos/400/300?random=1" alt="Product image">
    <div class="absolute top-0 right-0 bg-gray-800 dark:bg-gray-200 text-white dark:text-gray-800 text-xs px-2 py-1 m-2 rounded-md">New</div>
  </div>
  <div class="p-4">
    <h3 class="text-gray-900 dark:text-white font-bold text-xl mb-2">Product Name</h3>
    <p class="text-gray-700 dark:text-gray-300 text-sm mb-4">This is a brief description of the product, highlighting its key features and benefits.</p>
    <div class="flex items-center justify-between">
      <span class="text-gray-900 dark:text-white font-bold text-lg">$199.99</span>
      <button class="bg-gray-600 dark:bg-gray-400 hover:bg-gray-700 dark:hover:bg-gray-500 text-white dark:text-gray-900 font-bold py-2 px-4 rounded-md">Add to Cart</button>
    </div>
  </div>
</div>

相关组件

产品卡片组件

一个响应式产品卡组件,具有大地色调的微交互,为产品组合展示提供深色主题支持。

打开

产品卡片组件

响应式产品卡片组件,专为黑暗模式设计,具有鲜艳的颜色和多个适合博客及内容消费的互动元素。

打开

Product Cards 组件

具有 Glassmorphism 设计、灰度配色方案和深色主题支持的响应式产品卡组件。它包括多个适用于社交媒体界面的交互式元素,例如产品图片、标题、描述、价格和添加到购物车按钮。该设计利用了具有模糊效果的磨砂玻璃状半透明元素。不使用 Javascript,仅使用带有 Tailwind CSS 类的 HTML。

打开