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

愿望清单组件

一个响应式愿望清单组件,采用Glassmorphism设计风格,使用Tailwind CSS,支持暗黑模式,并具有磨砂玻璃效果和随机占位符图片。

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 p-4">
    <div class="bg-white dark:bg-gray-800 backdrop-blur-md bg-opacity-30 rounded-lg shadow-lg p-6 w-11/12 max-w-md">
        <h2 class="text-2xl font-bold text-gray-800 dark:text-gray-200 text-center mb-4">My Wishlist</h2>
        <ul class="space-y-4">
            <li class="flex items-center justify-between p-4 rounded-lg bg-white dark:bg-gray-700 shadow-md">
                <img src="https://picsum.photos/50/50" alt="Item Image" class="rounded-full" />
                <div class="flex-grow mx-4">
                    <h3 class="font-semibold text-gray-800 dark:text-gray-200">Item Title</h3>
                    <p class="text-gray-600 dark:text-gray-400">Description of the item goes here.</p>
                </div>
                <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
            </li>
            <li class="flex items-center justify-between p-4 rounded-lg bg-white dark:bg-gray-700 shadow-md">
                <img src="https://picsum.photos/50/50" alt="Item Image" class="rounded-full" />
                <div class="flex-grow mx-4">
                    <h3 class="font-semibold text-gray-800 dark:text-gray-200">Item Title</h3>
                    <p class="text-gray-600 dark:text-gray-400">Description of the item goes here.</p>
                </div>
                <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
            </li>
            <li class="flex items-center justify-between p-4 rounded-lg bg-white dark:bg-gray-700 shadow-md">
                <img src="https://picsum.photos/50/50" alt="Item Image" class="rounded-full" />
                <div class="flex-grow mx-4">
                    <h3 class="font-semibold text-gray-800 dark:text-gray-200">Item Title</h3>
                    <p class="text-gray-600 dark:text-gray-400">Description of the item goes here.</p>
                </div>
                <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
            </li>
        </ul>
    </div>
</div>

相关组件

愿望单组件

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

打开

愿望清单组件

具有互补配色方案的复杂拟物化愿望清单组件,用于社交媒体目的。响应式,支持深色主题。

打开

愿望清单组件

使用 Tailwind CSS 的响应式愿望清单组件,支持深色模式。显示包含图像、标题、价格和删除按钮的项目列表。专为色彩鲜艳的仪表板而设计。

打开