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.
- Semantic tags
- Flexbox
- Consults API with fetch
The user can click on a die to trigger a script that consults an API for a piece of advice and shows it on the page that is responsive on any device.
In this challenge, I had to:
- Match the page as closely as possible to the provided design
- Make the page responsive
- Have hover states for all interactive elements on the page
- Generate a new piece of advice everytime the dice icon is clicked
Ahmed Zougari and Héctor Martin Dama at Frontend Mentor showed me ways to fix a bug where Firefox would not generate a new piece of advice, no matter how many times you clicked on the die.