Skip to content

Commit 1702fea

Browse files
committed
Fix: changed day ui
1 parent 689b8d0 commit 1702fea

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Clock/bhatshakran/main.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ switchBtn.addEventListener("click", () => {
5050
if (
5151
window
5252
.getComputedStyle(document.documentElement)
53-
.getPropertyValue("--main--color") == "#1F441E"
53+
.getPropertyValue("--main--color") == "#091353"
5454
) {
5555
document.documentElement.style.setProperty("--main--color", "black");
5656
document.documentElement.style.setProperty("--primary-color", "#fff");
@@ -78,14 +78,13 @@ switchBtn.addEventListener("click", () => {
7878
</svg>
7979
</div>`;
8080
} else {
81-
document.documentElement.style.setProperty("--main--color", "#1F441E");
82-
document.documentElement.style.setProperty("--primary-color", "#CEE6B4");
83-
document.documentElement.style.setProperty("--secondary-color", "#9ECCA4");
81+
document.documentElement.style.setProperty("--main--color", "#091353");
82+
document.documentElement.style.setProperty("--primary-color", "#9D84B7");
83+
document.documentElement.style.setProperty("--secondary-color", "#D5D5D5");
8484
switchBtn.textContent = "Day";
8585
switchBtn.innerHTML = `<div>
8686
Day
8787
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z" fill="currentColor" /><path fill-rule="evenodd" clip-rule="evenodd" d="M11 0H13V4.06189C12.6724 4.02104 12.3387 4 12 4C11.6613 4 11.3276 4.02104 11 4.06189V0ZM7.0943 5.68018L4.22173 2.80761L2.80752 4.22183L5.6801 7.09441C6.09071 6.56618 6.56608 6.0908 7.0943 5.68018ZM4.06189 11H0V13H4.06189C4.02104 12.6724 4 12.3387 4 12C4 11.6613 4.02104 11.3276 4.06189 11ZM5.6801 16.9056L2.80751 19.7782L4.22173 21.1924L7.0943 18.3198C6.56608 17.9092 6.09071 17.4338 5.6801 16.9056ZM11 19.9381V24H13V19.9381C12.6724 19.979 12.3387 20 12 20C11.6613 20 11.3276 19.979 11 19.9381ZM16.9056 18.3199L19.7781 21.1924L21.1923 19.7782L18.3198 16.9057C17.9092 17.4339 17.4338 17.9093 16.9056 18.3199ZM19.9381 13H24V11H19.9381C19.979 11.3276 20 11.6613 20 12C20 12.3387 19.979 12.6724 19.9381 13ZM18.3198 7.0943L21.1923 4.22183L19.7781 2.80762L16.9056 5.6801C17.4338 6.09071 17.9092 6.56608 18.3198 7.0943Z" fill="currentColor" /></svg>
88-
</div>`
89-
88+
</div>`;
9089
}
9190
});

Clock/bhatshakran/style.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
box-sizing: border-box;
55
}
66
:root{
7-
--main--color:#1F441E;
8-
--primary-color:#CEE6B4;
9-
--secondary-color:#9ECCA4;
7+
--main--color:#091353;
8+
--primary-color:#9D84B7;
9+
--secondary-color:#D5D5D5;
1010
}
1111
body{
1212
background: var(--main--color);

0 commit comments

Comments
 (0)