Design comparison
Solution retrospective
Blog preview, 2nd ptoject
Community feedback
- @danielmrz-devPosted 10 months ago
Hello @ivi-developer!!
Your solution looks excellent!
I have a couple of suggestions:
- First: Use
<main>
to wrap the main content instead of<section>
.
š The tag
<section>
would make more sense if the card was part of a bigger website (in certainly would in real world), but here it is all we have on the screen.This tag change does not impact your project visually and makes your HTML code more semantic, improving SEO optimization as well as the accessibility of your project.
- Second: - Check the
style guide
file to see what is the recommendedfont-family
for the project. Then you can import it from Google Fonts and use it. If I'm not mistaken, thefont-family
for this project is Figtree.
I hope it helps!
Other than that, you did an excellent job!
Marked as helpful1@ivi-developerPosted 10 months ago@danielmrz-dev thanks for the advice i'll have it in mind!
0 - First: Use
- @SashaH62Posted 10 months ago
Great job with the project. š
Some suggestions to assist with the layout:
-
Instead of placing the SVG directly into the markup, you can use an <img /> tag and set the source to the image in your assets folder. This will allow you to add a container around the <img /> tag so that you can contain the image (use 'object-fit: contain' on the <img /> tag) and add a border radius to the container.
-
Instead of adding margin to the individual elements to create space inside the container, add padding to the container itself so that the elements share the same padding relative to the container.
-
To achieve the same box-shadow that is in the example, set the blur to 0 and the opacity to 1 (try box-shadow:8px 8px 0px 0px rgba(0,0,0,1)).
Hope some of this can help. š
Marked as helpful1@ivi-developerPosted 10 months ago@SashaH62 i didn't know about the <img> tag for svg, very helpfull advice!
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