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 Alchemist: Building Wisdom with HTML, CSS, and JavaScript

@bk408

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


Hello, fellow community members!

I'm excited to share an Advice Generator project I've been working on and would greatly appreciate your valuable feedback.

User Interface (UI) and Design: How user-friendly is the interface? Were there any usability issues you encountered? Do the CSS Grid layouts enhance the overall user experience, or would you suggest any design improvements?

Functionality and User Experience: Did you find it easy to generate advice or guidance using the app? Were there any technical glitches or bugs you encountered while using the app? Is there any missing functionality that would improve the user experience?

Code Structure and Organization: Are there any parts of the code that you found difficult to understand or maintain? Did you follow best practices for structuring your HTML, CSS, and JavaScript code?

Overall Impressions: What do you think works particularly well in the app? What areas do you believe need the most improvement?

I'm eager to hear your insights, suggestions, and any questions you might have. Your feedback will be immensely helpful in refining this project. Please feel free to respond to this post or contact me directly.

Thank you so much for taking the time to check out Advice Alchemist and for your support in improving it!

Warm regards, Bhavya Khatri

Community feedback

Roksolana 910

@RoksolanaVeres

Posted

Hi, Bhavya! Good job. I've tested your app and found a few minor issues, which are easy to fix:

First of all your button is not centered on small screens. That's because you set a fixed left position of the .btn. Just set it to 50% instead of 233px:

.btn {
  position: absolute;
  left: 50%;
...
}

Then your button doesn't have any hover effect. There should be a green shadow around the button on the hover. Try to set this box-shadow:

.btn:hover {
  box-shadow: 0 0 25px hsl(150, 100%, 66%);
}

And the most widespread problem with this app (which by the way I also had) is that it doesn't work in Firefox. It takes an eternity to generate a new piece of advice in this browser. I'm not aware of all the details, but as other people explained to me the problem is in the very API and some browsers including Firefox need much more time than Chrome, for example, to get a new quote. One of the options to overcome this issue is to modify fetch method in this way:

fetch("https://api.adviceslip.com/advice", {
    method: "GET",
    mode: "cors",
    cache: "no-cache",
  })

That's all, keep going and happy coding 🙂

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