Design comparison
SolutionDesign
Solution retrospective
It was a bit tricky for me to transform each bar's height with JS in a loop statement. At first, I did the transformation for each one with it's own code using IDs. But then I realised to use the div that grouped all the week days and manipulate the height using the 'children' propertie, creating a 'for' loop. I made a 150 lines code become a 60 lines code, so useful! Hope you guys like it!
Community feedback
- @Deevyn9Posted over 2 years ago
Great stuff, you could try centering it, and also having some margin between the bars on the mobile view.
Happy coding 🎈
1
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