Giter Site home page Giter Site logo

di-void / todolist-app-w-dnd Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 956 KB

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

Home Page: http://dees-todolist.netlify.app

HTML 1.11% JavaScript 3.36% TypeScript 93.29% CSS 2.25%
dnd-kit reactjs tailwindcss typescript zustand jotai

todolist-app-w-dnd's Introduction

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πŸ€žπŸΎπŸ‘ŒπŸΎ.

todolist-app-w-dnd's People

Contributors

di-void avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.