This is a solution to the Todo app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- Live Site URL: Todo app
- Solution URL: Frontendmentor
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Add new todos to the list
- Mark todos as complete
- Delete todos from the list
- Filter by all/active/complete todos
- Clear all completed todos
- Toggle light and dark mode
- Bonus: Drag and drop to reorder items on the list
- Semantic HTML5 markup
- BEM
- SASS
- JavaScript
- LocalStorage
- SortableJS
- I used SortableJS library for drag and drop to reorder list. I disabled the sortable when options ‘Active’ or ‘Completed’ are selected.
- Theme and list tasks are stored in Local Storage. It was my first time using it and I had some troubles with the script when todo list was empty. Finally, I think I made it work.