Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive Todo App with a dark and light theme

@Oluwafemi21

Desktop design screenshot for the Todo app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any comments on how to improve the Javascript interactivity is welcome.

Community feedback

T
Chamu 13,110

@ChamuMutezva

Posted

Greetings Oluwafemi. You have done well so far, nice work.

  • The design looks pretty good, close to the design and responsive.

  • in the header , the images for the themes are supposed to be either wrapped in an interactive element on the theme changes has to be triggered by an interactive element. In this current state , the theme control will not be available to assistive technology users. Using semantic elements is always beneficial.

  • an input element such as input in the form element should be associated with a label

  • the main element is important as it contains the main purpose of the site

  • as mentioned earlier , the divs that are acting as checkboxes will require extra coding to be accessible to assistive technology as well as the p elements with an image inside having a class of delete.

  • The functionalities are working well.

Marked as helpful

0

@Oluwafemi21

Posted

@ChamuMutezva I will need to revamp my codes and add the accessibility features to it. What do you suggest I use for the images associated with the theme? A button?

0
T
Chamu 13,110

@ChamuMutezva

Posted

@Oluwafemi21 , you can preferably use a checkbox as your first choice or a button. Most preferred examples that i have seen use a checkbox because it gives a more accessible version. A good explanation can be found in this article toggle theme button . An example for using a button can be seen in the following article button theme switch

Marked as helpful

0

@Oluwafemi21

Posted

@ChamuMutezva Thank you so much I'll check these articles out and give you a feedback later. Can I get your twitter handle?

0
Ivan 2,630

@isprutfromua

Posted

Hi there. You did a good job 👍

keep improving your programming skills

your solution looks great, however, if you want to improve it, you can follow these steps:

🟢 background doesn't fit the whole viewport. It can be resolved with background-size: 100% 300px;

🟢 I't would be better to store theme value with local storage

🟢 deleteAllBtn could be stored using querySelector as you did It before

🟢 this code can be used as separated function (updateCounter for example). this logic can be improved in the future, and you will work better with the function

counter.textContent = todos.childElementCount;

🟢 try to avoid settings inline styles, you can do it easier with setting css classes (hidden or flex for example)

todos.parentElement.firstElementChild.style.display = "block";
todos.parentElement.firstElementChild.style.display = "none";

I hope my feedback will be helpful

Good luck and fun coding 🤝⌨️

0

@Oluwafemi21

Posted

@isprutfromua your feedback will be helpful. Thank you so much

0
Ivan 2,630

@isprutfromua

Posted

@Oluwafemi21 Hi there

I am glad that my help was useful to you

Cheers, peace and happy coding!

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord