组件 进度指示器 进度指示器组件

进度指示器组件

一个简单的进度指示器,设计有玻璃形态效果,适用于支持深色模式和单色配色方案的电子商务网站。

预览

HTML 代码

<div class="flex flex-col items-center justify-center p-5 bg-white bg-opacity-30 backdrop-blur-sm dark:bg-gray-800 dark:bg-opacity-30 rounded-lg">
    <h1 class="text-xl font-bold text-gray-800 dark:text-white mb-4">Order Progress</h1>
    <div class="w-full mx-auto">
        <!-- Progress Bar -->
        <div class="relative pt-1">
            <div class="flex mb-2 items-center justify-between">
                <div class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-gray-800 dark:text-white bg-blue-200 dark:bg-blue-600">
                    1. Add to Cart
                </div>
                <div class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-gray-800 dark:text-white bg-blue-200 dark:bg-blue-600">
                    2. Checkout
                </div>
                <div class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-gray-800 dark:text-white bg-blue-200 dark:bg-blue-600">
                    3. Payment
                </div>
            </div>
            <div class="flex h-2 mb-4 rounded bg-gray-300 dark:bg-gray-600">
                <div class="w-1/3 h-full bg-blue-600 dark:bg-blue-300"></div>
            </div>
        </div>
    </div>
    <div class="mt-4">
        <img src="https://picsum.photos/40/40" alt="Avatar" class="rounded-full">
    </div>
    <p class="mt-2 text-sm text-gray-600 dark:text-gray-400">Estimated delivery: 3-5 business days</p>
</div>

相关组件

进度指示器组件

用于社交媒体应用程序的 glassmorphism 样式进度指示器组件,具有具有模糊效果的磨砂玻璃状半透明元素。它使用类似的配色方案,并提供具有多个交互元素的复杂、丰富的界面。该组件响应迅速,并支持使用 Tailwind CSS 的深色主题。

打开

BrutalistGrayscaleProgressBar (粗野灰度进度条)

用于博客内容的野兽派风格的灰度进度条,具有简单的设计、深色模式支持和响应能力。

打开

进度指示器组件

一个进度指示器组件,具有玻璃摩尔风格、响应式设计和暗模式支持。使用Tailwind CSS进行样式设计。

打开