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 app made with HTML/CSS/JavaScript

@elizabethrsotomayor

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


I wasn't sure if I was meant to use async/await for the fetch API call. I ran into an issue on larger screens where I couldn't center the divider. The box-shadow when hovering the button is a little bit offset since the shadow is larger on the bottom.

Community feedback

madhaus 1,040

@festsnusa

Posted

Hi there! Congratulations for completing this challenge.

Here's my feedback:

  • to center your divider, you can use "left: 50%" and "transform: translateX(-50%)";
  • when clicking more than once within 2 seconds, the second click is ignored. you can set timeOut with 2 seconds;
  • importing google fonts instead of downloading fonts is not a good practice, because anything could happen — fail to connect to link or the actual link may become unavailable. to download fonts, you can use "google-webfonts-helper";
  • i think wrapping "main — wrapper — card" looks kinda complex. you can simplify it to "main class='card'";
  • i don't think putting 2 images inside .dividers is a good idea. you can change the image via media query;
  • putting div inside a is not a good idea. only "inline-block" elements are recommended. plus, your whole div section will act as a link;
  • alts are empty;
  • in CSS, h1 declared twice;
  • for media queries, you can only set for desktop resolution;
  • your box-shadow looks okay;

Hope you're gonna find my feedback useful. Happy coding.

Marked as helpful

1

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