2022-10-04 15:35:30 +02:00
# Frontend Mentor - Advice generator app solution
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
This is a solution to the [Advice generator app challenge on Frontend Mentor ](https://www.frontendmentor.io/challenges/advice-generator-app-QdUG-13db ). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
## Table of contents
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
- [Frontend Mentor - Advice generator app solution ](#frontend-mentor---advice-generator-app-solution )
- [Table of contents ](#table-of-contents )
- [Overview ](#overview )
- [The challenge ](#the-challenge )
- [Screenshot ](#screenshot )
- [Links ](#links )
- [My process ](#my-process )
- [Built with ](#built-with )
- [What I learned ](#what-i-learned )
- [Author ](#author )
- [Acknowledgments ](#acknowledgments )
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
## Overview
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
### The challenge
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
Users should be able to:
2022-10-04 11:19:15 +02:00
- 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
2022-10-04 15:35:30 +02:00
### Screenshot
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
![Mobile ](screenshots/mobile.png )
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
![Desktop ](screenshots/desktop.png )
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
### Links
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
- Solution URL: [Add solution URL here ](https://github.com/tarasis/tarasis.github.io/tree/main/projects/FrontendMentor/junior/advice-generator-app/ ))
- Live Site URL: [Add live site URL here ](https://tarasis.github.io/FrontendMentor/junior/advice-generator-app/ )
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
## My process
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
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.
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
### Built with
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
- Semantic HTML5 markup
- CSS custom properties
- Flexbox (only for centering for button)
- CSS Grid (only for centering)
- Mobile-first workflow
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
### What I learned
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
Remind myself how await/async works in JavaScript as its been many months since I used it.
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
## Author
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
- Website - [Robert McGovern - blog ](https://tarasis.net )
- Frontend Mentor - [@tarasis ](https://www.frontendmentor.io/profile/tarasis )
- Twitter - [@tarasis ](https://www.twitter.com/tarasis )
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
## Acknowledgments
2022-10-04 11:19:15 +02:00
2022-10-04 15:35:30 +02:00
Matt @ Frontend Mentor for creating the site.