Time tracking dashboard using Grid Layout and JSON
Design comparison
Solution retrospective
This is my first time using the JSON file and making dynamic content in this project.
What challenges did you encounter, and how did you overcome them?Create dynamic content in the DOM. I searched videos and read some stuff on how to use JSON files.
What specific areas of your project would you like help with?While designing the cards, I noticed the section's background color peeking through where the task info is the child element—making it visually like it has a border-bottom on the right and left. I need some feedback if there is a way to improve this.
Community feedback
- @StanmancerPosted 7 months ago
Instead of just copying the
data.json
contents into yourmain.js
, you can import the data by usingimport
syntax:
import data from './data.json' assert { type: json }
See resource: Import your JSON and CSS as ES Modules
0@chardlargodizimoPosted 7 months ago@Stanmancer Hello thanks for commenting. I've tried it but I cannot make work out. I've tried using fetch.
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