Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 months ago

CSS Grid with HTML Templates & JSON data loading

P
Jeff Lang•340
@jefflangtech
A solution to the Recipe page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

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!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Jeff Lang's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License