组件 添加到购物车按钮 添加到购物车按钮组件

添加到购物车按钮组件

一个使用 Tailwind CSS 设计的响应式“添加到购物车”按钮,采用深色模式,具有悬停效果和深色主题支持。

预览

HTML 代码

<div class="flex items-center justify-center min-h-screen bg-gray-900 text-white">
    <div class="flex flex-col items-center bg-gray-800 p-6 rounded-lg shadow-lg">
        <img src="https://picsum.photos/200/300" alt="Product Image" class="w-full h-auto rounded-lg mb-4" />
        <h2 class="text-lg font-semibold mb-2">Product Name</h2>
        <p class="text-gray-400 mb-4">Short description of the product goes here.</p>
        <div class="flex items-center justify-between w-full">
            <span class="text-xl font-bold">$19.99</span>
            <button class="bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out">
                Add to Cart
            </button>
        </div>
    </div>
</div>

相关组件

添加到购物车按钮组件

响应式 Add to Cart Button 组件,采用粗野主义风格设计,色彩鲜艳,适用于支持深色主题的社交媒体界面。

打开

添加到购物车按钮组件

响应式“添加到购物车”按钮组件,具有三色、微交互焦点和对电子商务应用程序的深色模式支持。

打开

复古添加到购物车按钮

响应式“添加到购物车”按钮,具有复古/复古设计、互补配色方案和适度的复杂性,适用于仪表板目的。支持深色模式。

打开