加入购物车按钮

一个响应式的添加到购物车按钮组件,采用拟物风格设计,具有鲜艳的色彩和黑暗主题支持,适用于社交媒体界面.

预览

HTML 代码

<div class="flex items-center justify-center h-screen bg-gray-100 dark:bg-gray-900">
    <div class="bg-white dark:bg-gray-800 shadow-lg rounded-lg p-6 flex flex-col items-center relative overflow-hidden w-80">
        <img class="rounded-md w-full mb-4 h-32 object-cover" src="https://picsum.photos/400/200" alt="Product Image" />
        <h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Product Name</h2>
        <p class="text-gray-600 dark:text-gray-400 mb-4">This is a brief description of the product. It tells you what you can expect from this item.</p>
        <div class="flex items-center justify-between w-full mt-4">
            <span class="text-lg font-bold text-green-500 dark:text-green-400">$49.99</span>
            <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full transition duration-300 ease-in-out transform hover:scale-105">
                Add to Cart
            </button>
        </div>
        <div class="absolute bottom-0 left-1/2 transform -translate-x-1/2 bg-gray-800 dark:bg-gray-900 rounded-full w-16 h-16 shadow-lg flex items-center justify-center">
            <img class="rounded-full w-12 h-12 border-2 border-white" src="https://randomuser.me/api/portraits/men/65.jpg" alt="User Avatar" />
        </div>
    </div>
</div>

相关组件

添加到购物车按钮组件

一个为社交媒体界面设计的3D风格“添加到购物车”按钮组件。它具有丰富的深度界面、引人入胜的设计元素,并且响应式,支持暗黑主题。

打开

添加到购物车按钮组件

一个 3D 样式的 Add to Cart 按钮组件,具有鲜艳的色彩、响应式设计和使用 Tailwind CSS 的深色主题支持。

打开

加入购物车按钮组件

添加到购物车按钮,专为深色模式 UI 设计,具有大地色调配色方案和复杂复杂度级别,用于投资组合。该组件是响应式的,并使用 Tailwind 的 dark: 前缀支持深色主题。

打开