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

加入购物车按钮组件

一个受粗犷主义启发的添加到购物车按钮组件,使用Tailwind CSS,具有高对比度、不寻常的布局、响应效果和暗主题支持。

预览

HTML 代码

<div class="flex flex-col items-center justify-center space-y-4 p-4 bg-white dark:bg-gray-800 border-2 border-black dark:border-white rounded-lg shadow-md">
    <img src="https://picsum.photos/200/100" alt="Product Image" class="w-full h-auto rounded-lg">
    <div class="flex flex-col items-center text-center">
        <h2 class="text-lg font-bold text-black dark:text-white">Product Name</h2>
        <p class="text-sm text-gray-700 dark:text-gray-300">This is a brief description of the product that gives the user an idea of what they're adding to their cart.</p>
        <button class="mt-4 px-6 py-3 bg-yellow-500 text-white font-bold text-sm uppercase rounded-md transition-all duration-300 transform hover:bg-yellow-600 hover:scale-105 focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:ring-opacity-50 dark:bg-yellow-400 dark:text-black dark:hover:bg-yellow-500">
            Add to Cart
        </button>
    </div>
</div>

相关组件

添加到购物车按钮

响应式“添加到购物车”按钮,具有拟物化设计、单色配色方案和深色主题支持。

打开

添加到购物车按钮组件

一个响应式“添加到购物车”按钮,具有引人入胜的微交互、日落/暖色调,适用于食品/餐厅网站,具有悬停/点击时的微妙动画和深色模式支持。

打开

加入购物车按钮

一个3D设计的添加到购物车按钮组件,具有响应式效果和深色主题支持,使用 Tailwind CSS。

打开