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 using HTML, CSS, JS and an API

Wesley 330

@wesleyjacoby

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 was pretty easy to do. It was my first time using an API, and I found using Axios makes things a lot easier.

I'm not sure why the die doesn't render properly in Firefox though. It looks good in Chrome.

Also, I use px for everything and then at the end of the project, I manually change them to rem. Is there an easier way? Or do you just start using rem from the start?

Thanks!

Community feedback

@stripedtshirt

Posted

Hey I saw your site, awesome by the way. What I'd normally do is in the styling of the html tag, put in a font-size of 62.5%, that is equivalent to 10px, what that simply means is when you style with rem units, 1rem would be equal to 10px. So that just makes the conversion easier.

Marked as helpful

0

Wesley 330

@wesleyjacoby

Posted

@stripedtshirt Thanks so much! This is a great idea. I'm going to try this with my next project. :)

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