Skip to content

yasminbraga/nextjs-todo

Repository files navigation

Frontend Mentor - Todo app solution

This is a solution to the Todo app challenge on Frontend Mentor.

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

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Next.js - React framework
  • Sass with BEM - For styles
  • Tests with jest and testing library
  • @hello-pangea/dnd - Drag and drop library

Continued development

This was my first project with unity tests. For improvement I think some test techniques are missing. Also some styles may be different, for example the add todo has a checkbox input and my project don't.

Useful resources

This is a Next.js project bootstrapped with create-next-app.

Author