组件 产品卡 产品卡片组件

产品卡片组件

一个简单的响应式产品卡片组件,具有微交互,专为社交媒体界面设计,使用 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>

相关组件

产品卡片组件

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

打开

产品卡片组件

一个采用残酷主义风格设计的响应式产品卡片组件,支持黑暗主题并使用占位符图片,使用 Tailwind CSS。

打开

Product Cards 组件

一个简单的电子商务产品卡组件,以 Material Design 风格设计,使用灰度配色方案和响应式设计,支持深色主题。

打开