Design comparison
Solution retrospective
Hello everyone. Thanks to the amazing people who helped me about this project in the platform i could improve it's layout and make the logical part work using the JSON file. By doing that, i feel more confident now. Thank you very much!
Community feedback
- @StormKing969Posted over 2 years ago
Hi VINÍCIUS, I took some time to look at your solution and you did a great job!
Also I have some tips for improving your code:
- For fetching the JSON file in JavaScript, I'd take a look at this link (https://dmitripavlutin.com/javascript-fetch-async-await/). I think it might help you
- As for the issue you are having this one of the cards, that's because not all the cards have the same height. The solution for that is to use z-index and put the card-content on top of the card-icon. That way, no matter the size of the icon, the card-containers will have the same height.
I'd recommend that you try to learn SASS/SCSS as I believe that i makes life easier when write css. And its easy to learn
Overall you did well :)
Hope this help and happy coding!
Marked as helpful0@viniciusdsv93Posted over 2 years ago@StormKing969 Thanks a lot for your tips, man. Only one question: i tried to put z-index: -1 on the coloured box and then z-index: 1 on the smaller one but it did not solved the issue. I keeps showing a tiny coloured border at the bottom of each box. I guess maybe i should create a bigger container and inside of it put one container at the top (where i can put the color and the icon) and another container under to put the card's content.
I'm going to look for the JSON manipulation info, thanks for the link and the help!
0 - @shashreesamuelPosted over 2 years ago
Good job with this challenge vinicusdsv93. Keep up the good work.
Your solution looks close to the design but to fix your accessibility issue simply wrap all your content within a
<main>
tag.I hope this helps.
Cheers, Happy coding 👍
0
Please log in to post a comment
Log in with GitHubJoin 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