Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Fancy Progress Bar with Counter</title> | |
<style> | |
body { | |
font-family: 'Arial', sans-serif; | |
background-color: #f4f4f4; | |
} | |
.progress-container { | |
width: 80%; | |
max-width: 500px; | |
background: linear-gradient(to right, #f3f3f3, #e7e7e7); | |
border-radius: 15px; | |
margin: 0px auto; | |
padding: 5px; | |
position: relative; | |
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); | |
} | |
.progress-bar { | |
width: 41.6%; | |
height: 30px; | |
background: linear-gradient(to right, #34D399, #059669); | |
border-radius: 12px; | |
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); | |
} | |
.counter { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
font-size: 20px; | |
font-weight: bold; | |
color: #333; | |
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="progress-container"> | |
<div class="counter" id="counter">5/12</div> | |
<div class="progress-bar" id="progressBar"></div> | |
</div> | |
</body> | |
</html> | |