内容展示组件

一个为电子商务设计的仿生风格内容展示组件,具有黑暗主题。它使用最少的元素展示产品,采用相似的颜色方案,以获得愉悦的美感。

预览

HTML 代码

<div class="bg-gray-100 dark:bg-gray-900 p-6 rounded-lg shadow-lg">
  <div class="flex flex-col justify-center items-center">
    <img class="w-full h-48 object-cover rounded-t-lg" src="https://picsum.photos/500/300" alt="Product Image">
    <div class="bg-white dark:bg-gray-800 p-4 rounded-b-lg w-full">
      <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-100">Product Name</h2>
      <p class="text-gray-600 dark:text-gray-300">$29.99</p>
      <p class="text-gray-700 dark:text-gray-300">A short description of the product goes here, detailing its features and benefits.</p>
      <div class="flex items-center mt-4">
        <img class="w-10 h-10 rounded-full border-2 border-gray-200 dark:border-gray-600" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
        <span class="text-gray-800 dark:text-gray-200 ml-2">Seller Name</span>
      </div>
      <button class="mt-4 bg-blue-500 dark:bg-blue-700 text-white font-bold py-2 px-4 rounded hover:bg-blue-800 dark:hover:bg-blue-600">Add to Cart</button>
    </div>
  </div>
</div>

相关组件

内容显示组件组件

一个简单而生动的内容显示组件,具有微交互、响应式设计和深色主题支持,适用于博客和内容消费。将 picsum.photos 用于图像,将 randomuser.me 用于头像。

打开

物业列表卡 - Swiss Pastel

一张简单、干净且响应迅速的房产列表卡,具有瑞士/国际排版风格和柔和的配色方案,适用于房地产平台。包括深色模式支持。

打开

内容显示组件

一个用玻璃拟态风格设计的响应式内容展示组件,具有模糊背景和半透明元素,支持深色模式。

打开