
Design comparison
Solution retrospective
Proud that I have learned how to use vectors for first time. Next time, I will try to play around with them to understand it better.
What challenges did you encounter, and how did you overcome them?Was confusing how to make the blog image using from rectangles, vectors, and frames.
What specific areas of your project would you like help with?I would like suggestion and tips on how to make the code inside the blog-image frame more organized and clean.
Community feedback
- P@rickydoddPosted 17 days ago
What you did well:
- The solution looks very similar to the design, visually.
What could be improved:
- Remove the padding from the
page-background
class.
When the viewport is short, there is a large gap at the top that does not respond well.
The following
.page-background { display: flex; width: 100%; min-height: 100vh; padding: 251px 0; /* remove */ justify-content: center; align-items: center; background-color: #f4d04e; }
becomes
.page-background { display: flex; width: 100%; min-height: 100vh; justify-content: center; align-items: center; background-color: #f4d04e; }
Because the
display: flex
declaration makes the element a flex container, which is a block-level element, you can also remove thewidth: 100%
declaration. The declaration is redundant, as block-level elements will naturally fill the width.- Use semantic HTML.
As it is a card, I suggest using the
article
element to represent the card. The rationale is that cards are self-contained compositions that can be re-used inside a HTML document, soarticle
is an excellent choice.- Extract and optimize the SVG.
In terms of the SVG itself, the only recommendation I have is to copy the SVG markup and use a tool like SVGOMG to extract it from the markup and make it into an SVG file, then use that in the HTML.
Something like SVGOMG will also flatten and optimize the SVG. Hope you find this helpful.
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