tucecifci /
Advice-Generator-App
Welcome to the Advice Generator App! This is a simple Advice Generator application that fetches random advice from an API and displays it to the user. The app is built using HTML, CSS, and JavaScript.
34/100 healthLoading repository data…
all-my-frontend-mini-projects / repository
Welcome to the Advice Generator App, your go-to tool for timely wisdom. Featuring a sleek, responsive interface, users can access advice seamlessly on any device. Just click the dice icon for fresh insights. Developed with HTML, CSS, vanilla JavaScript, this project exemplifies modern web development. Experience guidance at your fingertips today!☺️
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Users should be able to:
To set up the project locally, follow these steps:
git clone https://github.com/SartHak-0-Sach/Advice-generator-app.git
Selected from shared topics, language and repository description—not editorial ratings.
tucecifci /
Welcome to the Advice Generator App! This is a simple Advice Generator application that fetches random advice from an API and displays it to the user. The app is built using HTML, CSS, and JavaScript.
34/100 healthYou will find all the required assets in the /images folder. The assets are already optimized.
There is also a style-guide.md file containing the information you'll need, such as color palette and fonts.
This project can be a great teacher to someone who is not well versed with the concept of working with fetch and async await syntax of javascript which can be a pain for beginners when told to implement on their own.
js = proud of this function
const fetchAdvice = async () => {
title.style.marginBottom = "6rem";
dualRing.classList.remove("disabled");
ctaBtn.classList.add("disabled");
isDisabled = true;
setTimeout(async () => {
const response = await fetch("https://api.adviceslip.com/advice");
const data = await response.json();
const { id, advice } = data.slip;
adviceIdSpan.innerHTML = id;
quoteDiv.innerHTML = `“${advice}”`;
dualRing.classList.add("disabled");
title.style.marginBottom = "0";
}, 500);
setTimeout(() => {
ctaBtn.classList.remove("disabled");
isDisabled = false;
}, 2000);
};
The continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in javascript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of.
These key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day.
Sarthak Sachdev
I feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack.
I love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com.
If you liked this project make sure to spread the word and share it with all your friends.
Have fun reading advice and succeeding in life! ☺️🚀