Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Blog Preview Card

Josh Boys 80

@jboys

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I tried a couple of new things: arbitrary values in Tailwind classes (e.g. rounded-[20px]) and auto class sorting using Prettier with the Tailwind plugin.

What challenges did you encounter, and how did you overcome them?

Matching the design in Figma. I got a 98% or so match, but an exact match was elusive. Despite matching the padding/margins, font sizes, weights, etc — there was still a slight discrepancy in the layout. Not a big deal, but I'm curious to know why.

What specific areas of your project would you like help with?

What caused my solution to be off by a few pixels from the design? I couldn't figure this out so I'd love some suggestions/feedback on this!

Community feedback

Huy Phan 1,360

@huyphan2210

Posted

Hi, @jboys

I checked out your solution and had a few thoughts:

  • I noticed you don't have access to the design files, so I assume you used another tool to get as close as possible to the design.
  • As for why your solution is around 98% accurate but not a perfect match, it could be due to small differences in things like font-size, line-height, letter-spacing, font-weight, padding, margins, etc.

Personally, I don’t think being pixel-perfect is something to worry about, and I believe you did a good job!

Hope this helps!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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