组件 产品卡 产品卡片组件

产品卡片组件

一个简单的响应式产品卡片组件,具有微交互,专为社交媒体界面设计,使用 Tailwind CSS,支持黑暗主题和灰度配色方案。

预览

HTML 代码

<div class="flex flex-col max-w-xs mx-auto rounded-lg shadow-lg overflow-hidden bg-white dark:bg-gray-800 transition-shadow duration-300 hover:shadow-xl">
    <img class="w-full h-48 object-cover" src="https://picsum.photos/seed/pic1/400/300" alt="Product Image">
    <div class="p-4">
        <h2 class="text-lg font-semibold text-gray-800 dark:text-white transition-colors duration-300">Product Title</h2>
        <p class="mt-1 text-gray-600 dark:text-gray-300 transition-colors duration-300">Brief description of the product. Engaging text to attract users.</p>
        <div class="flex items-center mt-3">
            <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
            <span class="ml-2 text-gray-700 dark:text-gray-200 transition-colors duration-300">User Name</span>
        </div>
    </div>
</div>
<div class="mt-4">
    <button class="w-full py-2 px-4 bg-gray-800 text-white rounded hover:bg-gray-700 dark:bg-gray-600 dark:hover:bg-gray-500 transition-colors duration-300">Add to Cart</button>
</div>

相关组件

产品卡片组件

一个具有高对比度、响应效果和黑暗模式支持的野性风格产品卡片组件。

打开

Product Cards 组件

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

打开

产品卡片组件

一个响应式的产品卡片组件,采用拟物化风格,地球色调配色方案,并支持暗黑主题。非常适合仪表板.

打开