组件 产品卡 拟物产品卡片

拟物产品卡片

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

预览

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>

相关组件

产品卡片组件

一个响应式产品卡片组件,基于材料设计原则,使用Tailwind CSS设计。它支持暗模式,并具备阴影和基于网格的布局。

打开

产品卡片组件

一个具有3D设计的响应式产品卡片组件,具有类似色彩方案和黑暗模式支持,专为社交媒体界面设计.

打开

产品卡片组件

一个使用 Tailwind CSS 设计的野性风格产品卡片组件,具有响应式效果和深色主题支持。

打开