@tdimnet
Posted
Hi Bishwajeet-07,
Nice work! I looked at your code and I really enjoyed that you used CSS variables for your project. It makes the CSS easier to read and to use.
I also saw that you created a app.js
file in order to toggle dark/light mode. However, I didn't see where I can toggle it on your project? Is there something that I miss?
By the way:
tough.addEventListener("click", (e)=>{
body.classList.toggle("dark")
})
You don't need to use the e
in your callback function.
Great job so far!
Have a nice day, Tom.
Marked as helpful
@Bishwajeet-07
Posted
Thank you @tdimnet for commenting.
dark and light modes are working when you click on the text where (Powered by Technology) is written on top.
I had coded it for fun. I know there is no button for light and dark modes.
@tdimnet
Posted
@Bishwajeet-07 : Oh ok, sorry, I didn't see your button was on the text.
But I do like that you added a light and dark modes :). How did you make it? Was it easy?
Have a nice day, Tom.
Marked as helpful