@12Kentos
Posted
Hey @Lwmeek,
Nicely done! It looks great. I was going to make the same comment as @nelsonleone regarding the Instagram card. His suggestion is also how I solved the problem. As for the color theme, I would suggest taking a look at prefers-color-scheme as this will allow you to have the color scheme automatically be light/dark based on what the users has set as their preference.
Here are some videos showing how this can be accomplished, as well as a way to use your css color variables. Going this route I was able to get the color toggle working with very few lines of code.
const colorButton = document.querySelector(".header__color-toggle");
colorButton.addEventListener("click", () => {
document.body.classList.toggle("darkmode");
});
Anyways here's the links. Hope this was helpful!
Keep up the great work!
Marked as helpful
@Lwmeek
Posted
@12Kentos thanks for the feedback! I will definitely go back to my solution and implement this method to learn how it works and update. I honestly appreciate this a lot.