
Design comparison
Solution retrospective
I'm really proud of that I remember a lot after that long break I had, and I have something to return. I general it looks really close to design.
What challenges did you encounter, and how did you overcome them?I need to learn how to use Figma, but I googled everything that I couldn't find in UI (like drop-shadow).
What specific areas of your project would you like help with?I struggle to understand where use px, em and rem and about accessibility.
Community feedback
- P@johnnygerardPosted 30 days ago
Hello,
I see that your images are not loading. It is probably because they are in the wrong folder. I think Netlify uses
/public
.So you can move
images/favicon-32x32.png
topublic/images/favicon-32x32.png
.1P@ilierettePosted 30 days ago@johnnygerard Hello! Yes, I noticed also problems with CSS loading, so I changed to Vercel. I should work right now
0P@johnnygerardPosted 30 days ago@ilierette All good!
Since you asked about CSS units, I recommend you use rem units as much as possible.
The Figma Dev mode allows selecting px or rem units.
There are cases where you should keep using px units, such as a border of 1px or a horizontal rule of 1px.
Em units are less often used. You should use em units when you need to size an element relative to the current font size (which is inherited if unspecified).
Marked as helpful1 - @BlackpachamamePosted 29 days ago
Greetings! you have done a great job 😎
📌 Some suggestions
- To improve the semantics of your HTML, you can change your
<div class="attribution">
to a<footer class="attribution">
- Use
min-height
andmax-width
, this will help the content stretch or shrink if you need to. Unlikeheight
andwidth
which can cause your content to be cut off on certain screens. For example, usemin-height: 100vh
instead ofheight: 100vh
- You can apply
display: block
to the image to remove the white space generated underneath. Although visually in this case it is irrelevant, it helps you better calculate the space with other elements
0 - To improve the semantics of your HTML, you can change your
- P@jonatan-samuelssonPosted 30 days ago
Nice work. I see your image doesn´t have rounded corners. This is because you´ve nested it´s selector inside the .card class selector. To solve it, either move the img class selector outside, or use an & .[YOURCLASSNAME] to properly nest it. Also, your HTML semantics could improve. Main with a class of card seems a bit off. Better to have a clean main and then a .card div. You´v also placed the attribution inside the card itself. It belongs outside, perhaps even in a footer element?
0P@ilierettePosted 30 days ago@jonatan-samuelsson Yeah, you are right. I refactored that with image, because on 320px it was to close to border, then completely forgot about borders.
Also I'm new to semantics, so your feedback is helpful.
0P@jonatan-samuelssonPosted 29 days ago@ilierette Nice improvements, well done!
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