Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 4 years ago

Responsive Website with a mobile-first approach using SCSS/Node JS/EJS

express, node, sass/scss, mongodb
Sajana Wijesinghe•570
@StormKing969
A solution to the Todo app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


At the moment there are two issues with my app

  • Whenever the user loads in a new item, my app reloads and the css is reset to default meaning if you are using the light theme, whenever you enter an item, you'll switch back to the dark theme. The only way I can think I can fix this is by using cookies. Is there another way to fix this?

  • The other issue is the drag and drop. I have a version that enable me to drag and drop items but that's only on the user's end i.e when you refresh, it goes back to the default item order. My question is how can i modify the arrangement of my items in mongoDB since the list order is based on the order in the database.

Thank You for your help in advance :)

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Sajana Wijesinghe's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License