Fortschrittsbalken für E-Commerce-Bestellungen
Eine reaktionsschnelle Fortschrittsbalkenkomponente für den E-Commerce mit Unterstützung des Dunkelmodus und einem monochromen Design. Kein JavaScript, nur HTML und Tailwind CSS.
HTML-Code
<div class="dark:bg-gray-900 min-h-screen p-4 flex items-center justify-center">
<div class="w-full max-w-2xl bg-white dark:bg-gray-800 rounded-lg shadow-xl p-6">
<h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-6">Order Progress</h2>
<div class="mb-8">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700 dark:text-gray-300">Order Placed</span>
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">100%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 100%;"></div>
</div>
</div>
<div class="mb-8">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700 dark:text-gray-300">Processing</span>
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">75%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 75%;"></div>
</div>
</div>
<div class="mb-8">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700 dark:text-gray-300">Shipped</span>
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">50%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 50%;"></div>
</div>
</div>
<div class="mb-8">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700 dark:text-gray-300">Out for Delivery</span>
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">25%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 25%;"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700 dark:text-gray-300">Delivered</span>
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">0%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700">
<div class="bg-indigo-600 h-2.5 rounded-full" style="width: 0%;"></div>
</div>
</div>
</div>
</div>
Verwandte Komponenten
Komponente der Fortschrittsleiste
Eine reaktionsschnelle Fortschrittsleisten-Komponente, die mit Blick auf den Dunkelmodus entwickelt wurde und Tailwind CSS verwendet.
Triadischer Fortschrittsbalken für den Dunkelmodus
Eine einfache und dreifarbige Fortschrittsbalkenkomponente für den Dunkelmodus, die für Blogs und den Konsum von Inhalten geeignet ist. Es verfügt über ein responsives Design mit Tailwind CSS, das das Präfix dark: für die Unterstützung dunkler Themen ohne JavaScript verwendet.
Material Design Erdiger Fortschrittsbalken
Ein vom Material Design inspirierter Fortschrittsbalken mit Erdtönen, der sich für Social-Media-Schnittstellen eignet. Es ist reaktionsschnell und bietet Unterstützung für den Dunkelmodus mit Tailwind CSS.