
CSS Grid with HTML Templates & JSON data loading
Design comparison
Solution retrospective
I used this opportunity with a fairly simple structured document to really examine my approach to styling. I went with a grid structure to provide all the layout requirements, and within that lived components whose styling only needed to affect their internal content.
Next is to try again with a slightly more complex layout.
What challenges did you encounter, and how did you overcome them?I used HTML templates for the first time and that was a bit of a learning curve. The idea was to pull the text content from a JSON file and then dynamically load the "cards" with the data, and the styling would be appropriate independent of the data (as long as it was appropriately inserted into the correct card type). Lots of AI questioning on this one because the MDN docs are a little sparse.
What specific areas of your project would you like help with?Any great informational sources for HTML templating? My concept of great informational sources are like Kevin Powell is to CSS. If not, no worries, I'll be practicing!
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