Design comparison
Solution retrospective
I am proud that I was able to get my solution as close as possible to the design
What challenges did you encounter, and how did you overcome them?I encountered issues with using CSS Grid to create the design, but with some research, I was able to overcome them.
What specific areas of your project would you like help with?Please look at my code especially my CSS to see if there is anyway I can improve with using CSS Grid
Community feedback
- @huyphan2210Posted about 2 months ago
Hi, @Achigyus
I took a look at your solution and I have some thoughts:
- I noticed you're using
min-block-size: 100vh
on your.container
, which, in this case, is equivalent tomin-height: 100vh
. This is causing an overflow, making the page scrollable on desktop viewports (which I assume is not intended). I'd recommend applyingmin-height: 100vh
to thebody
instead, rather than usingmin-block-size
on the.container
. - I see that you're a pro user with access to the design files, which explains why you'd like to make your page the same as the design. However, I noticed you're using rem values like
4.438rem
or15.938rem
. Whilerem
is generally great for scalability, using such precise decimal values can make the code less elegant. Consider rounding these values or usingpx
for more predictable sizing.
Hope this helps!
1@AchigyusPosted about 2 months ago@huyphan2210 Thanks for taking the time to go through my solution.
On the overflow, I actually intended it to be that way as I wanted the attribution section to only be visible when you scroll down.
I understand what you are saying about the rem values, but I always like to get my solutions as close/pixel perfect as possible to the original design. I am curious by what you mean when you say "using such precise decimal values can make the code less elegant". Can you please expand on that or link an article so I can learn and improve.
Thanks again for the review. I really appreciate it
PS: I dropped you a follow on Github and LinkedIn, I will appreciate if you followed me back.
1@huyphan2210Posted about 2 months ago@Achigyus
I should have been clearer. Using precise decimal values is fine, but I don't find numbers like
4.438rem
or15.938rem
particularly elegant.It's more of a personal preference. I tend to use values like
4.5rem
,4.25rem
, or even4.125rem
, but not4.438rem
. In such cases, I'd rather round it off and use71px
(even though it's not an exact conversion). I understand you want to match the design as closely as possible.However, consider this: in a professional environment where you're working with others, your code will be reviewed or refactored by colleagues. I don't think many would appreciate seeing
4.438rem
in the code. Of course, this is just my bias, but I haven't seen such precise values used often in a professional setting.P.S. Thanks for the follow! I followed you back :)
Marked as helpful0@AchigyusPosted about 2 months ago@huyphan2210 thanks for explaining. I understand now,
4.4rem
looks better than4.438rem
.1 - I noticed you're using
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