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

Todo App with ReactJS

CY 140

@cyishere

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 suggestion about how to deal with the filter buttons on the desktop or mobile?

Community feedback

@JefDel2190

Posted

Hi, one question. How did you solve the problem of the user agent stylesheet in the browser in case you had it?

0

CY 140

@cyishere

Posted

@JefDel2190 For this one, I used the code below. And for most of my other projects, I use Eric A. Meyer's CSS reset.

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
0

@JefDel2190

Posted

@cyishere Thanks for answering, I'm going to try this solution to see if it works for me and if it doesn't work I'll keep looking.

0

@KristianDunne

Posted

Nice implementation CY!

You should look at using styled-components or CSS modules alongside your components to have the styles scoped. Would be much nicer than having to go back to a global stylesheet.

Great work!

2

CY 140

@cyishere

Posted

@KristianDunne Thank you, Kristian. I just can't switch my mindset to styled-components thing, for now, I'll keep trying. 😄

0
Abhik 4,840

@abhik-b

Posted

Hi Y Chen 👋

Great job on this challenge , I liked it's responsiveness , adding background-size:contain can take the entire width for the top image !

Overall great job , Happy coding 😇

2

CY 140

@cyishere

Posted

@abhik-b Thank you. I totally forgot this property... I've fixed it.

1
P
ApplePieGiraffe 30,545

@ApplePieGiraffe

Posted

Hello there, Y. Chen! 👋

Well done on this challenge! 👍 The to-do list works pretty well except new items aren't appearing on the to-do list when I add them. You might want to consider looking into that! 😉

Keep coding (and happy coding, too)! 😁

1

CY 140

@cyishere

Posted

@ApplePieGiraffe Thank you for the reminder! I tested it on my computer before I put the code on codesandbox. I didn't realize it... I'll fix it.

1
CY 140

@cyishere

Posted

@ApplePieGiraffe I've fixed it. Happy coding! 😄

1
P
ApplePieGiraffe 30,545

@ApplePieGiraffe

Posted

@cyishere

Just took another look, and adding new items to the to-do list works just fine, now. 👍 I think a good idea would be to prevent users from submitting empty to-do items in case they accidentally hit the "Enter" key without actually writing anything in the text box. 😅

1
CY 140

@cyishere

Posted

@ApplePieGiraffe Yes, you're right! How stupid I am...🤦🏻‍♀️ Thank you for taking another look.🙏🏻

1

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