组件 价格显示 价格显示组件

价格显示组件

一个复杂的价格显示组件,采用拟物化风格设计,模仿现实世界的元素,适用于博客和内容消费,具有三重配色方案和响应式设计,支持深色模式。

预览

HTML 代码

<div class="max-w-sm mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 p-6">
    <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-4">Price Display</h2>
    <div class="flex items-center justify-between mb-4">
        <img src="https://picsum.photos/80" alt="Product Image" class="w-20 h-20 rounded-full shadow-md border border-gray-300 dark:border-gray-600">
        <div class="flex-shrink-0">
            <span class="text-lg font-semibold text-gray-800 dark:text-white">$199.99</span>
            <span class="text-sm text-gray-500 dark:text-gray-300">/ each</span>
        </div>
    </div>
    <p class="text-gray-600 dark:text-gray-400 mb-6">This product is designed to give you the best experience and thus comes with an assurance of quality and excellent service.</p>
    <div class="flex items-center justify-between border-t border-gray-200 dark:border-gray-600 pt-4">
        <button class="bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded shadow-md">Buy Now</button>
        <button class="bg-green-500 hover:bg-green-600 text-white font-semibold py-2 px-4 rounded shadow-md">Add to Cart</button>
    </div>
    <footer class="mt-4 text-gray-500 dark:text-gray-400 text-center">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mx-auto mb-1">
        <span class="text-sm">Posted by John Doe</span>
    </footer>
</div>

相关组件

赛博朋克价格显示组件

一个用于咨询/服务的响应式价格显示组件,具有赛博朋克、未来主义的霓虹灯美学。具有深色背景、明亮的类似强调色,并支持深色模式。

打开

Price Display 组件

一个用于房地产列表的简单响应式价格显示组件,具有大地色调和深色模式支持。

打开

Neumorphic 价格显示组件

一个复杂、响应迅速且与深色模式兼容的价格显示组件,具有 Neumorphism 设计风格和类似的配色方案,适合博客/内容消费。具有多个交互式元素,如切换和详细层。

打开