Design comparison
Solution retrospective
This was incredibly difficult. The CSS was hard for me in terms of layering the color of the stats container, the image within it, and the records over the image.
The JavaScript was also quite difficult in terms of how to use the specificity of nested arrays to locate content.
Lastly, while I got the project to work, per see, I could not get the values from the JSON file to stay in perpetuity on the DOM - the values flash on the screen when the stat option is selected from the user bar.
What challenges did you encounter, and how did you overcome them?-
Layering the stat container, stat image, report container, and the report content all as one object.
-
Getting the JSON values to stay in perpetuity in the DOM when a stat option button gets clicked.
Any help is welcome, but mostly I'm hoping to get help with the JSON values staying on the screen when the stat option button gets clicked.
Community feedback
- @ikitamalarosePosted 5 months ago
First of all congratulations on the effort made
then I took a look at your GitHub repository but I had a hard time finding my way there are too many files that I don't really know what to look at.
But I suggest you take a look at my solution on this project and look at the main.js file it could help you understand how to ensure that the data is always there with each click.
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