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

Responsive Nuxt 3 + Tailwind CSS

dimar hanungβ€’ 560

@dimar-hanung

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedback will be appreciated πŸ™Œ.

when using tailwind I am inconsistent between using px or rem, especially at sizes that are not found in the tailwind utility such as 41px, 53px or something else. any tips?

note: remove &type=solution in url if want see better

Community feedback

Chrisβ€’ 520

@9CB5

Posted

This is a good solution! Well done.

You should be using rem when possible, and you can do custom rem values in tailwind with something like w-[50rem].

The code looks very solid, but there's no need for the css classes that you made in the index.vue file if you setup your tailwind config properly and use the relevant tailwind classes.

Refer to my solution to see a demonstration of the concepts above.

Marked as helpful

0

dimar hanungβ€’ 560

@dimar-hanung

Posted

@9CB5

Thanks for feedback!, you are right we can customize it, but the problem is when we see in figma the default is px, and to calculate it is sometimes annoying what else when the result is something like 3.3125 rem πŸ₯²

1
Chrisβ€’ 520

@9CB5

Posted

@dimar-hanung Yeah, one of my biggest gripes with these challenges is the use of very specific values that makes it hard to perfectly replicate the design without the figma file 😭

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