内容展示组件

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

预览

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>

相关组件

内容展示组件

一个玻璃质感样式的组件,用于展示投资组合内容,具有互动元素,支持暗模式。

打开

内容展示组件

具有大地色调的玻璃拟态内容展示组件

打开

内容展示组件

一个展示作品或产品的3D设计作品集,采用灰度色彩方案和响应式设计,支持深色模式.

打开