A simple to-do list application built using HTML, CSS, and JavaScript as part of the Hyperskill Frontend Developer Course. This project allows users to add, complete, and delete tasks, with temporary task storage using the browser's localStorage. Additionally, a motivational quote from the ZenQuotes API is displayed each time the page is refreshed.
- Task Management: Add, mark as complete, and delete tasks easily.
- Persistent Task Storage: Utilizes
localStorageto temporarily save tasks so they remain available even after a page refresh. - Motivational Quotes: Each page load fetches a new, inspiring quote from the ZenQuotes API to keep users motivated.
- HTML: Markup for the structure of the app.
- CSS: Styles for layout and design.
- JavaScript: Handles app functionality, including localStorage management and API calls.
- ZenQuotes API: Fetches quotes to inspire users upon each page load.
-
Clone the Repository:
git clone https://github.com/CodeLikeAGirl29/To-Do-List cd To-Do-List -
Open the Project: Simply open
index.htmlin your browser to start using the to-do list application.
- Adding Tasks: Type a task in the input field and press "Add" to include it in the list.
- Completing Tasks: Click on a task to mark it as complete or incomplete.
- Deleting Tasks: Use the delete button next to each task to remove it from the list.
- Motivational Quote: A fresh motivational quote from the ZenQuotes API displays at the top each time the page reloads.
fetch("https://zenquotes.io/api/random")
.then(response => response.json())
.then(data => {
const quoteElement = document.getElementById("quote");
quoteElement.innerText = `"${data[0].q}" - ${data[0].a}`;
})
.catch(error => console.error("Error fetching quote:", error));- ZenQuotes API for providing inspirational quotes.
- Hyperskill for offering a platform to learn and develop frontend skills.
This project is open-source and available under the MIT License.
This README is designed to be informative and helpful to any user or developer who wants to learn more about your to-do list project!
