Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

Todo app responsive with localstorage

vite, bem
Alan Lopez Reyna•300
@AlanLopRey
A solution to the Todo app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I created the following app after studying JavaScript for a few months. I also used Vite for the build and deploy in githubpages

The app includes the following features:

  • Users can add tasks.
  • The input is cleared to allow the addition of a new task.
  • Tasks are saved in an array of objects in local storage.
  • Users can check off completed tasks.
  • The status of whether the task is checked or not is saved in local storage.
  • Users can delete tasks with the "x" button.
  • Deleting a task also removes it from local storage.
  • A count of remaining items is displayed (those not yet checked).
  • A button that clears all completed tasks.
  • A section that shows active, completed, and all tasks together.
  • Drag and drop functionality to rearrange tasks.
  • The order in which tasks are rearranged with drag and drop is saved in local storage.
  • Allowing users to edit a task once added or dynamically through local storage.
  • Dark and light mode.
  • User-selected dark and light mode options are saved in local storage to maintain them.
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 Alan Lopez Reyna'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