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 + authorization (React, Reducer, Context, Firebase, Sass)

Xuan Hung 120

@xuanhung1509

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


What I find the most intimidating task in this challenge is the how to separate the 3 filter buttons out of the todo list in mobile view. My solution just looks nearly to the design, but without the shadow at the bottom of todo list. The second most intriguingly task is to style the border of checkmark linear gradient because CSS does not support it natively. I'm interested in how you guys solve these 2 styling challenges.

Community feedback

Miroslav 180

@miroslavdurin

Posted

Hello, I would suggest using a custom hook which retrieves media dimensions of screen. I usually use useMediaQuery() hook. You can copy a hook code on this LINK.

Then you can have two versions of div.bottom and use which one you need, based on the screen size. I hope this helps...

Marked as helpful

1

Xuan Hung 120

@xuanhung1509

Posted

@miroslavdurin Thanks, definitely helpful! At first, I tried to handle this layout with purely CSS, but it still missed the box shadow. Your approach made things much more easier!

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