Site with CSS Grid, CSS variable & little bit of CSS Flexbox
Design comparison
Solution retrospective
- How have I used HTML semantics? What can I improve on that?
- Is there any other CSS or HTML code I can add to improve accessibility?
- Have I used CSS Grid, CSS variable & CSS Flexbox properly? If not, on which line, what and how can I improve?
Any other feedbacks are also welcome.
Thanks in advance!
Community feedback
- @jmnyaregaPosted over 3 years ago
Impressive work @abhineetkandele.
I would like to comment on the layout, you didn't have to use the different grid containers to make this layout. In fact, Grid is very good with two dimension layouts [ horizontal & vertical ].
- code example.
.grid { display: grid; grid-template-areas: "header header" "section1 section2"; grid-template-columns: 1fr 1fr; // to give the columns equal widths }
<article class="grid"> <header class="header"> ... </header> <section class="section1"> ... </section> <section class="section2"> ... </section> </article>
Happy coding!
Marked as helpful0@abhineetkandelePosted over 3 years ago@jmnyarega Yeah totally agree. I can definitely improve that. Thanks for your valuable comment.
0 - @aUnicornDevPosted over 3 years ago
While naming colors in
:root
elements, instead of using direct color name, try using notation for primary and secondary color.--color-primary:hsl(179, 62%, 43%);
Can also add--color-primary-text
if its for text or background as per the requirementThe solution is pretty good. No doubt there.
Marked as helpful0@abhineetkandelePosted over 3 years ago@aUnicornDev Thanks for pointing this out. Will use this notation.
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