内容展示组件

一个简单的复古风格响应式内容展示组件,适用于电子商务,使用单色方案并支持暗黑模式。

预览

HTML 代码

<div class="max-w-md mx-auto bg-gray-800 dark:bg-gray-900 rounded-lg overflow-hidden shadow-lg">
    <img class="w-full h-48 object-cover" src="https://picsum.photos/seed/pic1/400/300" alt="Product Image">
    <div class="p-6">
        <h2 class="text-2xl font-bold text-gray-100 dark:text-gray-200 mb-2">Vintage Product Title</h2>
        <p class="text-gray-300 dark:text-gray-400 mb-4">A brief description of the vintage product that evokes nostalgia from the 80s and 90s.</p>
        <div class="flex items-center mb-4">
            <img class="w-10 h-10 rounded-full mr-2" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
            <div class="text-sm">
                <p class="text-gray-100 dark:text-gray-200">Seller Name</p>
                <p class="text-gray-500 dark:text-gray-400">Seller Rating: ⭐⭐⭐⭐</p>
            </div>
        </div>
        <span class="text-lg font-semibold text-gray-100 dark:text-gray-200">$29.99</span>
        <div class="mt-4">
            <button class="w-full bg-gray-600 hover:bg-gray-500 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline dark:bg-gray-700 dark:hover:bg-gray-600">Add to Cart</button>
        </div>
    </div>
</div>

相关组件

内容展示组件

一个响应式社交媒体内容显示组件,采用拟物化风格设计,色彩柔和,具有多个交互元素和深色模式支持。

打开

内容展示组件

一个响应式内容展示组件,具有极简和扁平的设计风格,适合博客和内容消费。它具有灰度配色方案,并配备互动元素,同时支持暗模式。

打开

内容显示组件组件

一个简单而生动的内容显示组件,具有微交互、响应式设计和深色主题支持,适用于博客和内容消费。将 picsum.photos 用于图像,将 randomuser.me 用于头像。

打开