diff --git a/001-expanding cards/style.css b/001-expanding cards/style.css
index d3741bc..d2568ea 100644
--- a/001-expanding cards/style.css
+++ b/001-expanding cards/style.css
@@ -20,7 +20,7 @@ body {
}
.panel {
- background-size: auto 100%;
+ background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 80vh;
@@ -57,8 +57,13 @@ body {
width: 100vw;
}
- .panel:nth-of-type(4),
- .panel:nth-of-type(5) {
- display: none;
+ .panel {
+ flex: 1;
+ margin: 5px;
+ height: 40vh;
+ }
+
+ .panel.active {
+ flex: 3;
}
}
diff --git a/002-progress steps/index.html b/002-progress steps/index.html
index 07e7c79..b6c0e27 100644
--- a/002-progress steps/index.html
+++ b/002-progress steps/index.html
@@ -10,10 +10,10 @@
-
1
-
2
-
3
-
4
+
1
+
2
+
3
+
4
diff --git a/002-progress steps/script.js b/002-progress steps/script.js
index 024a72d..2bd502f 100644
--- a/002-progress steps/script.js
+++ b/002-progress steps/script.js
@@ -1,13 +1,13 @@
const progress = document.getElementById("progress");
const prev = document.getElementById("prev");
const next = document.getElementById("next");
-const circles = document.querySelectorAll(".circle");
+const steps = document.querySelectorAll(".step");
let currentActive = 1;
next.addEventListener("click", () => {
currentActive++;
- if (currentActive > circles.length) currentActive = circles.length;
+ if (currentActive > steps.length) currentActive = steps.length;
update();
});
@@ -18,15 +18,15 @@ prev.addEventListener("click", () => {
});
const update = () => {
- circles.forEach((circle, index) => {
- if (index < currentActive) circle.classList.add("active");
- else circle.classList.remove("active");
+ steps.forEach((step, index) => {
+ if (index < currentActive) step.classList.add("active");
+ else step.classList.remove("active");
});
const actives = document.querySelectorAll(".active");
progress.style.width =
- ((actives.length - 1) / (circles.length - 1)) * 100 + "%";
+ ((actives.length - 1) / (steps.length - 1)) * 100 + "%";
if (currentActive === 1) prev.disabled = true;
- else if (currentActive === circles.length) next.disabled = true;
+ else if (currentActive === steps.length) next.disabled = true;
else {
prev.disabled = false;
next.disabled = false;
diff --git a/002-progress steps/style.css b/002-progress steps/style.css
index b4dfe95..78c4f1c 100644
--- a/002-progress steps/style.css
+++ b/002-progress steps/style.css
@@ -57,7 +57,7 @@ body {
transition: 0.4s ease;
}
-.circle {
+.step {
background-color: #fff;
color: #999;
border-radius: 50%;
@@ -70,7 +70,7 @@ body {
transition: 0.4s ease;
}
-.circle.active {
+.step.active {
border-color: var(--line-border-fill);
}
diff --git a/003-rotating navigation/index.html b/003-rotating navigation/index.html
index b695be1..d8c8c33 100644
--- a/003-rotating navigation/index.html
+++ b/003-rotating navigation/index.html
@@ -43,7 +43,7 @@
Amazing Article
My Subtitle
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Corrupti
diff --git a/005-blurry loading/style.css b/005-blurry loading/style.css
index 86f6405..29f0b37 100644
--- a/005-blurry loading/style.css
+++ b/005-blurry loading/style.css
@@ -15,7 +15,7 @@ body {
}
.bg {
- background: url("https://images.unsplash.com/photo-1610217053402-b187336e9443?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2100&q=80")
+ background: url("https://images.unsplash.com/photo-1610217053402-b187336e9443?auto=format&fit=crop&w=2100&q=80")
no-repeat center center / cover;
position: absolute;
top: -30px;
@@ -23,7 +23,6 @@ body {
width: calc(100vw + 60px);
height: calc(100vh + 60px);
z-index: -1;
- filter: blur(0px);
}
.loading-text {
diff --git a/007-split landing page/index.html b/007-split landing page/index.html
index b783e39..eead15c 100644
--- a/007-split landing page/index.html
+++ b/007-split landing page/index.html
@@ -7,16 +7,16 @@
Split Landing Page
-
+
+