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
I decided to start with js this time, as I wanted to be sure I could work with apis first. Then I proceeded to write the html and css.
- Semantic HTML5 markup
- CSS custom properties
- Mobile-first workflow
I learned how to work with apis in javascript. Ah Im so happy to finally start applying js to my site ๐
// const proudOfThisFunc = () => {
fetch('https://api.adviceslip.com/advice')
.then(response => response.json())
.then(data => printslip(data.slip.id, data.slip.advice))
.catch(error => console.error(error));
// }
Not sure yet, but I think I will be working on my css skills.
Unfortunately I didn't use any resources this time, but I will be sure to add some in the future.
- Website - Nico
- Frontend Mentor - @yourusername
- Twitter - @angelofdeity
I would like to thank my mentor, my friends and my family for their support and encouragement.๐ Yes I couldn't do anything without them.๐