Skip to content

Di-void/todolist-app-w-dnd

Repository files navigation

Frontend Mentor - Todo app solution

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.

Table of contents

Overview

The challenge

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

Screenshot

Links

Commands

Feel free to fork or clone directly :). You could drop a star too if you like the solution 💙

Note: With the following commands, project will clone inside current directory.

git clone https://github.com/Multimarix/todolist-app-w-dnd.git .
npm install
npm run dev

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • React - JS library
  • Typescript - Typescript
  • Tailwind Css - For styles
  • Zustand - State Management Library

What I learned

I learned to use a couple things for the first time in this project. Some of them were, Zustand and Jotai for state management in the application. I also used @dnd-kit for making draggable and droppable copmonents for the first time in this project. In short, it was a really enjoyable learning experience for me this one😁.

set((state) => {
  if (state.activeTab === "all") {
    state.todos = reArrangedTodos;
    state.allTodos = reArrangedTodos;
  } else if (state.activeTab === "active") {
    state.todos = reArrangedTodos;
    state.activeTodos = reArrangedTodos;
  } else {
    state.todos = reArrangedTodos;
    state.completedTodos = reArrangedTodos;
  }
});

Continued development

To be honest, this is not where I want this project to finally be. I plan to tinker with the @dnd-kit library a little more and make some improvements to the UX of the application. I plan to provide support for checking and unchecking the checkbox with your keyboard alone as I think that would lead to better UX. That is just one among the few updates I want to make to the application going forward.

Useful resources

Author

Acknowledgments

Thanks to Frontend Mentor for the Project once again. I really enjoyed it🤞🏾👌🏾.

About

Not your regular todo app. DnD and theme switcher enabled with advanced filtering

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published