Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 2.43 KB

README.md

File metadata and controls

39 lines (31 loc) · 2.43 KB

To-do list app dashboard page

About TO_Do

  • Added Guest login for easiest login as for now
  • Login credentials : [email protected], qwert12345
  • Dashboard contains 3 parts:
  • 1st section contains logo and acts as a sidebar menu
  • Can also create subtasks here main tasks to be added here
  • main page contains list / cards of tasks in the main task
  • Search bar that helps to find a particular task in a pool of tasks
  • consists functionalities of
    • Mark favourite
    • Delete task
    • mark as complete
    • Date of rememberance
    • Status of the task
    • Sort functionalities according to the requirement
  • 3rd section consists of Logout button which moves you to the Login page
  • Status bar that shows the level of tasks completed
  • A button to delete all the tasks and makes new dashboard

Screenshot (438) Screenshot (439) Screenshot (440)

Code Explanation

Login and Logout The login functionality is implemented using the useState hook. When users enter their email and password and click the "Login" button, the handleLogin function is called. This function performs validation (replace with your own logic) and sets the isLoggedIn state to true if the credentials are correct. The user's email and password are stored in the browser's local storage using localStorage.setItem.

The logout functionality is implemented in the handleLogout function. It removes the email and password from local storage and sets isLoggedIn to false, logging the user out.

Dashboard

If the user is logged in (isLoggedIn is true), the dashboard is displayed. You can add your own dashboard content here.

Styling and Animations

The code includes CSS styles and animations to enhance the user interface. The App.css file contains the styles for the login and dashboard components. Animation styles are added to provide a fade-in effect for the login form elements and a pulse effect for the login button. Additionally, error handling is implemented with a shake animation for the form container when there is a login error.