
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I tried to use that project with using Figma design. I know about how to use figma in basic level.
What challenges did you encounter, and how did you overcome them?mostly how to use Figma.
Community feedback
- @user2830581Posted 2 months ago
Hey your solution is great! Good use of semantic HTML and it follows the Figma design file well. However, I noticed a couple of things mainly in the CSS that could maybe improve your solution:
- Responsiveness: Your solution isn't responsive for smaller screen sizes. Your blog card width is hard-coded to 384px which does follow the Figma design for large screens, but doesn't account for the mobile design also in the Figma file. You could add a media query breakpoint to fix this and test things using browser developer tools. Part of the brief also mentioned adjusting font sizes based on the screen size so they're smaller on the mobile version. This can also be done with media queries but I think it said to implement it without using them. I used
clamp()
to achieve this but there are other ways if you wanted to research that. - Redundant Variables and Classes: In
:root
you create a variable to--body-fs
but don't use it. In your HTML thearticle-img
class is never referenced in your CSS instead you use.blog-card > img
. Removing these can help clean up your code and make it more readable and easy to maintain. - Heading Tag Usage: You've used a
h3
tag without first having ah1
andh2
tag. These headings create a hierarchy and make code more readable. They also help assistive technology figure out where the most important information is on your page. It is best practice to change this to ah1
tag and adjust any potential styles afterwards.
1 - Responsiveness: Your solution isn't responsive for smaller screen sizes. Your blog card width is hard-coded to 384px which does follow the Figma design for large screens, but doesn't account for the mobile design also in the Figma file. You could add a media query breakpoint to fix this and test things using browser developer tools. Part of the brief also mentioned adjusting font sizes based on the screen size so they're smaller on the mobile version. This can also be done with media queries but I think it said to implement it without using them. I used
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