组件 产品比较 产品比较组件

产品比较组件

一个使用Material Design风格的响应式产品比较组件,采用Tailwind CSS设计,具有基于网格的布局、阴影和深色主题支持。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 shadow-md rounded-lg p-6 max-w-4xl mx-auto">
    <h2 class="text-2xl font-semibold mb-4 text-gray-800 dark:text-gray-200 text-center">Product Comparison</h2>
    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
        <div class="bg-white dark:bg-gray-700 rounded-lg shadow-lg p-4">
            <img class="h-48 w-full object-cover rounded-md" src="https://picsum.photos/400/250?random=1" alt="Product 1" />
            <h3 class="text-xl font-medium mt-2 text-gray-800 dark:text-gray-200">Product 1</h3>
            <p class="text-gray-600 dark:text-gray-400">Description of Product 1 goes here.</p>
            <div class="flex items-center mt-2">
                <img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" />
                <span class="ml-2 text-gray-700 dark:text-gray-300">User Name</span>
            </div>
        </div>
        <div class="bg-white dark:bg-gray-700 rounded-lg shadow-lg p-4">
            <img class="h-48 w-full object-cover rounded-md" src="https://picsum.photos/400/250?random=2" alt="Product 2" />
            <h3 class="text-xl font-medium mt-2 text-gray-800 dark:text-gray-200">Product 2</h3>
            <p class="text-gray-600 dark:text-gray-400">Description of Product 2 goes here.</p>
            <div class="flex items-center mt-2">
                <img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Avatar" />
                <span class="ml-2 text-gray-700 dark:text-gray-300">User Name</span>
            </div>
        </div>
    </div>
</div>

相关组件

产品对比组件

用于摄影装备的豪华/高级产品比较组件,具有优雅的设计、精致的排版和高对比度的配色方案。包括响应式布局和深色模式支持。

打开

产品对比组件 - Cyberpunk Retro Charity

一个简单、响应式的产品比较组件,采用赛博朋克美学设计,使用复古/复古调色板,适用于非营利组织/慈善组织。具有深色模式支持和干净、简约的布局。

打开

产品比较组件 - Monospace/开发人员风格

一个复杂的响应式产品比较组件,采用等宽/开发人员美学设计,采用紫色/紫色配色方案。它是运动和健身应用的理想选择,具有暗模式支持和简洁的终端风格外观,具有多个比较点。

打开