Skip to content

blessingpeters/Advice-generator-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Advice generator app solution

This is a solution to the Advice generator app challenge on Frontend Mentor.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

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

Screenshot 2022-08-27 at 11 26 52 AM

Screenshot 2022-08-27 at 11 27 25 AM

Links

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • For styles

Note: These are just examples. Delete this note and replace the list above with your own choices

What I learned

I learnt how to interact with 3rd-party APIs. and was able to put async and await into practise

const url = "https://api.adviceslip.com/advice";
async function getAdvice() {
  const fetchData = await fetch(url)
  const data = await fetchData.json();
   
}

Continued development

I'd love to focus more on projects that requires arrays and object destructuring, asynchronous javascript, APIs and wprking with json.

Author

About

Advice Generator App built with HTML, Css and Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published