This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
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
- Generate a new piece of advice by clicking the dice icon
- Solution URL: frontend_advice_generator_Solution_repo
- Live Site URL: Live_Solution
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Janilla JS
- Mobile-first workflow
I am sharping my FrontEnd Skills and improve project to project.
.diceContainer:hover {
box-shadow: 0 0 40px 3px hsl(150, 100%, 66%);
}
const quoteGenerator = async () => {
const response = await fetch('https://api.adviceslip.com/advice');
const responseObject = await response.json();
document.querySelector('#quote').textContent = responseObject.slip.advice;
document.querySelector('#quoteNumber').textContent = responseObject.slip.id;
}
const diceButton = document.querySelector('.diceContainer').addEventListener("click", () => {
quoteGenerator();
});
- Improve Sass
- learn others Css Framework
- Website - Graciano Henrique Portfolio
- Frontend Mentor - @Graciano1997
- Twitter - @GracianoSoft
- Microverse
- FrontEnd Mentor