QR Code Component using CSS Custom Properties

Solution retrospective
What I'm most proud of is the application of CSS Custom Properties. Next time, I will make sure that when I develop a website, to make sure that the style guide is well defined first.
What challenges did you encounter, and how did you overcome them?The challenge I encountered was centering the card-body
text and resizing it. I overcame the challenge by figuring out the width from the sample design image and using flexbox.
What would be a better approach for centering the card-body
?
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@danielmrz-dev
Hey @akri-dev! 🙋🏽♂️
Congrats on completing the challenge! ✅
Your project looks fantastic!
Your approach on centering the card was good, but here's another one just in case you wanna learn how to do it differently:
📌 Apply this CSS to the body (skip position or margins to make it work correctly):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this helps!
Keep up the great work!
Marked as helpful
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