
QR Code Card Created with React, Tailwind CSS, and Rsbuild
Design comparison
Solution retrospective
I'm most proud of the fact that I was able to implement the solution at the same time as building a project template for future challenges.
What challenges did you encounter, and how did you overcome them?Here are some things I had problems with — and still have in the case of Figma files:
- My development system runs Ubuntu Linux 22.04 LTS and there's no Figma app for that; I'm still looking for an online viewer that I can work with
- As I deploy the solutions to my own server, which has a strict Content-Security-Policy, I had to relax it for the solutions subdirectory, e.g. allowing loading from external resources like Google Font files
- I needed CSS for specific sizes (height and width), so I had to lern about Tailwinds capabilities (like
w-[320]
)
As I'm not sure if my project template works for most future challenges, I'm of course willing to adjust it. But: is there anything like best practices that can be applied?
Community feedback
- @SpecroPosted 5 months ago
I would position the element in the middle using flexbox and it's centering capabilities e.g.
flex items-center justify-center
then you won't need to use translate to re-align your element in the centerFor Tailwind you can define custom values in tailwind.config.js and then you can use those instead of writing all the values in square brackets.
Good job on replicating the design👍
Marked as helpful0
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