Skip to content

Little project to basically display some advices from an API

Notifications You must be signed in to change notification settings

rwxganta/advice-generator-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Advice generator app solution

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.

Table of contents

Overview

The challenge

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS pseudo-elements
  • Flexbox

What I learned

  • 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.

Continued development

  • In this project I was using XMLHttpResquest() function. I should be confortable on using the Fetch API for the next projects.

Author

About

Little project to basically display some advices from an API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published