Progress Indicators 구성 요소
유리 형태 효과로 설계된 간단한 진행률 표시기로, 다크 모드를 지원하고 단색 색 구성표가 있는 전자 상거래 웹 사이트에 적합합니다.
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>