Design comparison
Solution retrospective
It was a quick challenge and I'm proud that I did it under 30 minutes, but the speed costed me the time to think on class names to some elements, so I've just used :nth-child
. I know that in a bigger project this would probably cause me some headache in the future.
:P
What specific areas of your project would you like help with?Any help is appreciated and welcome! ^-^
Community feedback
- @huyphan2210Posted 2 months ago
Hi, @Crtykwod
I checked out your solution and I have some thoughts:
- Good job completing the challenge in under 30 minutes! However, speed can compromise accuracy. If you take your time, you could improve certain aspects. For instance, adding more media queries would prevent horizontal scrolling between
1024px
and1560px
viewports to ensure the grid displays properly. - Your HTML structure could also benefit from refinement. You've used semantic tags in many places, so why not replace the remaining
div
s with more appropriate tags? They stand out against the rest of the semantic structure.
I think the goal of Frontend Mentor is to hone your skills. Instead of rushing, focus on how you can refine and improve each challenge for better learning.
Hope this helps!
1@CrtykwodPosted 2 months agoHello, @huyphan2210! Thanks for your feedback!
First of all, when you declare a new section or article, u need to give a heading to it, like in a newspaper, all articles have a heading on them. I used divs only for styling purposes, so no need for semantic tags.
Also, the rush really was a problem, as I did a bad code review :p
I usually make my grid layouts with fixed values for column and row and then change them to minmax(). But I forgot to change the value, this is what gave the desing a horizontal scroll. So I fixed it and took it as an opportunity to create an intermediate layout for tablets.
Again, thank you for the feedback, it helped me notice my lack of attention, thx ^-^
1@huyphan2210Posted 2 months ago@Crtykwod
I suggest replacing those
div
s with anhgroup
element since they seem to be used for headings. Additionally, you might want to wrap the image in afigure
orpicture
tag.You could also consider how the grid layout should adapt on tablet devices. While the challenge might not include a tablet design, creating one could help prevent horizontal scrolling on desktop. Just a thought!
Thanks for your response.
1@CrtykwodPosted 2 months ago@huyphan2210,
-
Well, those
divs
are not used for headings, to be honest, i used<h2>
nearly against my will, because they are necessary, but doesn't make much sense for me. Also, the<p>
isn't part of the heading, like a subheading, so it can't be inside a<hgroup>
. -
About
<figure>
, according to MDN, usually a<figure>
is an image, illustration, diagram, code snippet, etc., that is referenced in the main flow of a document, but that can be moved to another part of the document or to an appendix without affecting the main flow. The photo is part of the flow, it needs to be there, so it's not a<figure>
. -
And the
<picture>
tag isn't even semantic, it's just used to set different sources to a image container and there's no need for more than one source for a fixed size profile picture. -
Usually, i do consider tablet designs, i was just trying to speedrun this challenge, so i didn't make it XD. But that is indeed a good advice!
I didn't even know about
<hgroup>
, and it's definitely a very useful tag, so thanks for presenting me it!1 - Good job completing the challenge in under 30 minutes! However, speed can compromise accuracy. If you take your time, you could improve certain aspects. For instance, adding more media queries would prevent horizontal scrolling between
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