Advice generator app - HTML, SCSS, JS, API and mobile-first!

Solution retrospective
Hi everyone 👋
I had a little fun with this one, as the advice is cached for 2 seconds I decided to add a loader and disable the button until some more advice was able to be fetched.
Any feedback that could help me to improve my understanding of working with APIs is very welcome. I'm thinking about adding some error handling.
Anyway until next time, happy coding 🤙
Please log in to post a comment
Log in with GitHubCommunity feedback
- @denielden
Hi Darryncodes, Great job!
To make it look less square and as close to the design as possible I would use
width: 30rem
instead ofmax-width
in theslip
class and in the mobile I would usepadding-inline
on the body to make sure there is some space around the cardHope this help and happy coding!
- @groverrichardson
Great job man! The loading animation is a great touch. I would trim the timing of it to match up better with when the advice actually loads. I haven’t gone too far in the code, but my assumption the animation is hard coded or preset time-wise. The loading should stop when the page is fully loaded.
Also the dimensions of the card seem to be more square than intended. The original design dimensions are rectangular so I would go back and make sure the width and height match the design. But stay responsive.
Overall great job!
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord