Design comparison
SolutionDesign
Solution retrospective
What specific areas of your project would you like help with?
I really dislike how I did the Nutrition
part. Ideally it's simple 2 column grid with lines in between, but it was difficult to achieve it. I though it has to be ul
(since this is a list), but it doesn't play well with grid. Also it was difficult to align items to beginning of cells and add borders.
Community feedback
- @geomydasPosted 4 days ago
Hi @ddosia, your code and solution looks good but it has some few issues. Don't worry though as these issues are very easy to fix and are quite common aswell.
My Tips and Feedback
- Put the challenges in their own Github repositories instead of putting all of the in one Github repo. It will take longer to clone and and it might take longer aswell to commit and push in the long run.
- Consider self-hosting your fonts instead of linking to Google Fonts. Using Google Fonts is bad for performance and violates GDPR laws which is an issue on larger websites as it may lead to lawsuits. I use this handy tool for helping me self-host the fonts.
- Remove the "mY" prefix on the colors. I don't see the need for it and it just makes things more verbose.
- You can use global styles instead of setting a utility for each element since this project is mostly text-based. Like using @apply for the styling the headings and the paragraphs.
- Use a table for the Nutrition section. See more about it here
- Wrap the article tag inside a main tag. The main tag signifies the primary content.
- Use the hr tag for the borders on the end of each section.
- No need for the
min-w-80
on the article tag. I don't see why you would need margins there and instead you should use padding on the parent element instead
That's pretty much all. Have fun coding!
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