Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Advice Generator using CSS flex-box

@K4UNG

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


This is my first time working with APIs and it was really fun. I learned a lot about async, await and a brilliant use of box shadow for glow effect. Any kind of feedback or suggestion would be highly appreciated. Happy Coding!

Community feedback

@sophiakoulen

Posted

The button doesn't work (at least in my browser) because of caching.

A solution to get around that is to ask for "https://api.adviceslip.com/advice?_"+new Date().getTime() instead of just https://api.adviceslip.com/advice.

When you just ask for https://api.adviceslip.com/advice, the browser thinks it is the same resource you're asking everytime and doesn't refresh it.

But adding a query string that changes everytime solves the issue very easily.

Marked as helpful

0

@K4UNG

Posted

@sophiakoulen I didn't know I could add that. Thanks, I'll fix it right away.

0

Please log in to post a comment

Log in with GitHub
Discord logo

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