电子商务组件

一个野兽派风格的电子商务组件,具有大胆的设计、高对比度,以及支持暗黑模式的响应式布局。

预览

HTML 代码

<div class="bg-white text-black dark:bg-gray-900 dark:text-white p-6 rounded-lg shadow-lg">
    <div class="flex flex-col md:flex-row items-center justify-between space-x-0 md:space-x-4">
        <div class="flex-shrink-0">
            <img class="w-32 h-32 rounded-lg shadow-md" src="https://picsum.photos/200/200" alt="Product Image">
        </div>
        <div class="mt-4 md:mt-0 md:flex-grow">
            <h2 class="text-2xl font-bold">Brutalism T-Shirt</h2>
            <p class="text-lg text-gray-700 dark:text-gray-300">A bold statement piece for your wardrobe. Embrace the raw aesthetic of brutalism with this unique T-Shirt.</p>
            <span class="text-xl font-semibold text-red-600 dark:text-red-400">$29.99</span>
        </div>
        <div class="mt-4 md:mt-0">
            <button class="bg-red-600 text-white font-bold py-2 px-4 rounded-full shadow hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600 transition">Add to Cart</button>
        </div>
    </div>
    <div class="mt-6 border-t border-gray-300 dark:border-gray-700 pt-4">
        <h3 class="text-lg font-bold">Product Review</h3>
        <div class="flex items-center mt-2">
            <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
            <div class="ml-2">
                <span class="font-semibold">John Doe</span>
                <p class="text-sm text-gray-600 dark:text-gray-400">“This shirt is awesome! Love the brutalist design.”</p>
            </div>
        </div>
        <div class="mt-2 flex items-center">
            <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Avatar">
            <div class="ml-2">
                <span class="font-semibold">Jane Smith</span>
                <p class="text-sm text-gray-600 dark:text-gray-400">“Very comfortable and stylish. Highly recommend!”</p>
            </div>
        </div>
    </div>
</div>

相关组件

电子商务仪表板

一个用于数据可视化和控制面板的简单布局的黑暗模式电子商务仪表板组件。

打开

电子商务复古组件

一个复杂的电子商务组件,采用复古/复古风格设计,具有三重配色方案和响应式设计,适用于支持深色模式的商业/公司网站。

打开

社交媒体电子商务卡

一个以社交媒体为重点的电子商务组件,采用玻璃效果风格,单色调色彩方案,布局复杂,响应式设计,支持黑暗主题。

打开