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
- Live Site URL: Live page
- Semantic HTML5 markup
- CSS custom properties
- CSS pseudo-elements
- Flexbox
-
I thing this is the first time I use the
<picture>
element while trying to set those seperator svg's, really awesome. -
I was getting really frustrated by the API request been the same after hitting the dice button and I start to think about the browser cache. Ended-up finding something called 'Cache busting', some kinda of unique id to the URL, so when we do the request the browser think it's a brand new one. So, cache busting is like giving each request a new and different name, which ensures that you always get the freshest data from the server and avoids using outdated cached information.
- In this project I was using XMLHttpResquest() function. I should be confortable on using the Fetch API for the next projects.
- Website - In progress...
- Frontend Mentor - @rwxganta
- Twitter - @rwxganta