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 Mentor solution
- Live Site URL: Github Pages
- Semantic HTML5 markup
- Flexbox
- CSS Grid
- API
For me this was the first time using an API. It's much easier than expected and real good fun. It's been a while since I did a challenge. So I had some struggles with the project set-up. But it worked out fine in the end ;)
fetch('https://randommarvelquoteapi.herokuapp.com')
.then(response => response.json())
.then(data => {
quoteDisplay.innerHTML = data.quote;
adviceDisplay.innerHTML = Math.floor(Math.random() * 1000);
});
So right now I learned basic HTML, CSS, Flexbox and CSS Grid. Next step for me is to start learning basic JavaScript so I can work on my long term goal: Learn VUE.js (and/or other frameworks).
- Frontend Mentor - @Haico-Paulussen
- LinkedIn - Haico Paulussen