rmcg.dev/projects/FrontendMentor/junior/advice-generator-app
Robert McGovern 41829dbb47 fixed validation errors 2022-10-04 14:40:51 +01:00
..
css finished javascript, submitting advice-generator-app 2022-10-04 14:35:30 +01:00
design added advice-generator-app challenge and beginning of base apparel 2022-10-04 10:19:15 +01:00
images added advice-generator-app challenge and beginning of base apparel 2022-10-04 10:19:15 +01:00
js finished javascript, submitting advice-generator-app 2022-10-04 14:35:30 +01:00
screenshots finished javascript, submitting advice-generator-app 2022-10-04 14:35:30 +01:00
.gitignore added advice-generator-app challenge and beginning of base apparel 2022-10-04 10:19:15 +01:00
README-orig.md finished javascript, submitting advice-generator-app 2022-10-04 14:35:30 +01:00
README.md finished javascript, submitting advice-generator-app 2022-10-04 14:35:30 +01:00
index.html fixed validation errors 2022-10-04 14:40:51 +01:00
style-guide.md added advice-generator-app challenge and beginning of base apparel 2022-10-04 10:19:15 +01:00

README.md

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

Mobile

Desktop

My process

I styled up mobile first, then desktop, added the JavaScript for retrieving the data and then added the animation, making sure to support prefers reduced motion.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox (only for centering for button)
  • CSS Grid (only for centering)
  • Mobile-first workflow

What I learned

Remind myself how await/async works in JavaScript as its been many months since I used it.

Author

Acknowledgments

Matt @ Frontend Mentor for creating the site.