GithubHelp home page GithubHelp logo

fem-todo-app-main'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


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



My process

Built with

What I learned

For this project, I was excited to meet all the requirements ๐Ÿ˜„๐ŸŽฏ, and I also wanted to add some extras to practice new techniques ๐Ÿš€๐Ÿ”ฅ.

It's the first React project I upload to this platform, so there are probably many things to improve in the code. ๐Ÿ˜…

I added the ability to edit the task โœ๏ธโœ…, as well as a menu with options to sort the list ๐Ÿ“‹โฌ†๏ธโฌ‡๏ธ.

On the other hand, I used the CSS property:

  overflow-y: auto;

to add a scrollbar to the task list, so the container wouldn't become too tall ๐Ÿ“œ๐Ÿ”ฝ.

I also flirted with using animations, for which I still don't feel completely confident, but I want to start learning more about that topic to incorporate it into future projects ๐Ÿ’ƒ๐Ÿ“š๐ŸŒŸ.

It was also my first time handling the switch from dark mode to light mode ๐ŸŒ—๐ŸŒž, where basically I add a class to my container with the 'app' class, and then reassigning CSS variables according to the theme:

  .is-light-theme {
    --dark-theme-bg-mobile-img: var(--light-theme-bg-mobile-img);
    --dark-theme-bg-desktop-img: var(--light-theme-bg-desktop-img);
    --very-dark-desaturated-blue: var(--very-light-gray);
    --very-dark-blue: var(--very-light-grayish-blue);
    --dark-grayish-blue: var(--light-grayish-blue);
    --dark-mode-light-grayish-blue: var(--light-mode-very-dark-grayish-blue);
    --midnight-blue: var(--very-light-grayish-blue);
    --dark-grayish-blue: var(--medium-dark-grayish-blue);
    --shadow-dark-theme: var(--shadow-light-theme);
    --dark-mode-light-grayish-blue-hover: var(--light-grayish-blue)

Useful resources


fem-todo-app-main's People


martinorue 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.