组件 购物车 购物车组件

购物车组件

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

预览

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>

相关组件

Memphis_Industrial_Shopping_Cart_Component

一个简单、响应迅速的购物车组件,具有孟菲斯设计的影响,专为工业/制造环境量身定制,具有单色调色板,具有单一的明亮强调色和深色模式支持。

打开

购物车组件 - 水彩/艺术棕褐色

一个简单、响应式的购物车组件,具有水彩/艺术风格,使用棕褐色/棕色调,适用于制造/工业公司。包括深色模式支持。

打开

购物车组件

针对社交媒体界面优化的购物车组件,具有微交互、鲜艳的色彩和简单的布局。包括响应式设计和深色模式支持。

打开