Skip to content

Commit a6048b8

Browse files
committed
feat: day 2
1 parent 0934e1d commit a6048b8

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

002-progress steps/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
<div class="circle">2</div>
1515
<div class="circle">3</div>
1616
<div class="circle">4</div>
17+
<!-- Add More Steps -->
18+
<div class="circle">5</div>
1719
</div>
18-
<button class="btn" id="prev" disabled>Prev</button>
19-
<button class="btn" id="next">Next</button>
20+
<!-- Customize Button Text -->
21+
<button class="btn" id="prev" disabled>Back</button>
22+
<button class="btn" id="next">Continue</button>
2023
</div>
2124
<script src="script.js"></script>
2225
</body>

002-progress steps/script.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const prev = document.getElementById("prev");
33
const next = document.getElementById("next");
44
const circles = document.querySelectorAll(".circle");
55

6-
let currentActive = 1;
6+
// Change Initial Active Step
7+
let currentActive = 2;
78

89
next.addEventListener("click", () => {
910
currentActive++;
@@ -32,3 +33,5 @@ const update = () => {
3233
next.disabled = false;
3334
}
3435
};
36+
37+
update();

002-progress steps/style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@import url("https://fonts.googleapis.com/css2?family=Muli&display=swap");
22

33
:root {
4-
--line-border-fill: #3498db;
4+
/* Change Active Step Color */
5+
--line-border-fill: #e67e22;
56
--line-border-empty: #e0e0e0;
67
}
78

@@ -58,8 +59,9 @@ body {
5859
}
5960

6061
.circle {
61-
background-color: #fff;
62-
color: #999;
62+
/* Style Inactive Circles */
63+
background-color: #fbfbfb;
64+
color: #716969;
6365
border-radius: 50%;
6466
height: 30px;
6567
width: 30px;

0 commit comments

Comments
 (0)