组件 购物车 购物车组件

购物车组件

一个设计有玻璃态效果的购物车组件,采用互补色调,并为暗模式进行了优化。非常适合用于投资组合展示作品或产品。

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-900 dark:bg-gray-800 p-4">
    <div class="bg-white dark:bg-gray-700 rounded-lg shadow-lg backdrop-blur-md bg-opacity-30 border border-gray-200 dark:border-gray-600 p-6 w-full max-w-md">
        <h2 class="text-lg font-semibold text-gray-800 dark:text-white text-center">Shopping Cart</h2>
        <div class="mt-4">
            <div class="flex items-center justify-between border-b pb-2 mb-2">
                <img src="https://picsum.photos/50/50" alt="Product Image" class="rounded-md" />
                <div class="flex-1 mx-2">
                    <h3 class="text-md font-medium text-gray-700 dark:text-gray-300">Product Name</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400">$29.99</p>
                </div>
                <span class="text-gray-600 dark:text-gray-200">Quantity: 1</span>
            </div>
            <div class="flex items-center justify-between border-b pb-2 mb-2">
                <img src="https://picsum.photos/50/50?random=1" alt="Product Image" class="rounded-md" />
                <div class="flex-1 mx-2">
                    <h3 class="text-md font-medium text-gray-700 dark:text-gray-300">Another Product</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400">$19.99</p>
                </div>
                <span class="text-gray-600 dark:text-gray-200">Quantity: 2</span>
            </div>
        </div>
        <div class="flex items-center justify-between border-t pt-4">
            <h3 class="text-lg font-semibold text-gray-800 dark:text-white">Total:</h3>
            <span class="text-lg font-bold text-gray-900 dark:text-gray-100">$69.97</span>
        </div>
        <button class="mt-4 w-full bg-blue-600 hover:bg-blue-500 text-white font-semibold py-2 px-4 rounded-lg transition duration-200">Checkout</button>
    </div>
</div>

相关组件

购物车组件

一种响应式购物车组件,采用拟物化设计,支持黑暗主题,并提供随机占位符图像。

打开

Retro_Vintage_Shopping_Cart_Component

具有复古/复古美感的响应式购物车组件,使用棕褐色/棕色调,适用于产品展示。包括深色模式支持。

打开

购物车组件

复古/复古风格的购物车组件,具有灰度配色方案、适度的复杂度和响应式设计,支持深色主题。专为使用 Tailwind CSS 的商业/公司网站而设计。没有 JavaScript,只有带有 Tailwind 类的 HTML。将 picsum.photos 用于图像,将 randomuser.me 用于头像。

打开