组件 愿望清单 愿望清单组件

愿望清单组件

一个响应式愿望清单组件,采用复古/复古美学设计,具有三重配色方案和深色模式支持,非常适合展示作品或产品。

预览

HTML 代码

<div class="bg-gray-900 dark:bg-gray-800 text-gray-100 dark:text-gray-200 p-6 rounded-lg max-w-md mx-auto shadow-lg">
    <h2 class="text-3xl font-bold text-center mb-4">My Wishlist</h2>
    <div class="space-y-4">
        <div class="flex items-center justify-between bg-gray-700 dark:bg-gray-600 p-4 rounded-lg">
            <img src="https://picsum.photos/100" alt="Product" class="w-16 h-16 rounded-lg">
            <div class="flex-1 ml-4">
                <h3 class="text-xl font-semibold">Product Title 1</h3>
                <p class="text-gray-300 dark:text-gray-400">Description of the product goes here.</p>
            </div>
            <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
        </div>
        <div class="flex items-center justify-between bg-gray-700 dark:bg-gray-600 p-4 rounded-lg">
            <img src="https://picsum.photos/100?random=1" alt="Product" class="w-16 h-16 rounded-lg">
            <div class="flex-1 ml-4">
                <h3 class="text-xl font-semibold">Product Title 2</h3>
                <p class="text-gray-300 dark:text-gray-400">Description of the product goes here.</p>
            </div>
            <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
        </div>
        <div class="flex items-center justify-between bg-gray-700 dark:bg-gray-600 p-4 rounded-lg">
            <img src="https://picsum.photos/100?random=2" alt="Product" class="w-16 h-16 rounded-lg">
            <div class="flex-1 ml-4">
                <h3 class="text-xl font-semibold">Product Title 3</h3>
                <p class="text-gray-300 dark:text-gray-400">Description of the product goes here.</p>
            </div>
            <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
        </div>
    </div>
    <div class="mt-6 text-center">
        <h4 class="text-2xl font-bold">User: John Doe</h4>
        <img src="https://randomuser.me/api/portraits/men/10.jpg" alt="User Avatar" class="w-24 h-24 rounded-full mx-auto mt-2">
    </div>
</div>

相关组件

愿望清单组件

一个使用Tailwind CSS设计的响应式愿望清单组件,采用暗模式。它具有卡片布局,展示带有图像、描述和用户头像的项目,支持暗主题和响应效果。

打开

愿望清单组件

专为仪表板设计的响应式 Wishlist 组件,具有单色配色方案和 3D 设计样式。

打开

愿望单组件

一个响应式愿望清单组件,设计为具有拟物化元素和互补色,适用于深色主题仪表板。

打开