Design comparison
Solution retrospective
I didn't know how to fetch a local json file so I just created an array with data from json file. I tried running http server and then fetching the file, but it kept lagging and it didn't update the code when refreshed, so I just gave up and created my own data array.
If anyone has any suggestions on how to fetch local json file, or any idea on why my http server kept lagging so much that the page wouldn't update when javascript code was changed, please share your thoughts.
Community feedback
- @bramuccciPosted almost 3 years ago
Hi Amila! Keep in mind that you need https or local host to use fetch. Do you try using the vsc extension live server? It's what I used. If you want, you can see my JavaScript code here. Also, would you like to share your old code? About the rest of the page, I believe you did it fantastic. Just is a little to small.
1@milla1909Posted almost 3 years ago@bramuccci Hey Candela thank you so much for your comment and feedback, means a lot! :) I tried running "npm install http-server" and then "http-server" but it was just not working properly. Whenever I changed javascript code, it wouldn't be reflected on the page. I have no idea why. But I will try extension live server, thanks.
As for size, I don't know why frontendmentor shrinks it. It was proportional while I was making it.. :/
1@bramuccciPosted almost 3 years ago@milla1909 I'm glad to hear that 😊. Mmm it can be that you change the size at last moment? I see that you put
width: 45rem, max-width: 120rem
. That max width will never be reached. Do you try it with the devtool of responsive design?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