Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

QR code component

bem, accessibility
Musicalaudio•160
@Musicalaudio
A solution to the QR code component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hey, thanks to anyone reviewing my solution.

One of the main things I was wondering about was how to decide on a border radius of an inner element (in this case the image), once a border radius for the outer section (in this case the card) is already decided, or vice-versa.

Another thing I would appreciate feedback with is whether I'm using the correct units for the correct properties. I know font-size should usually be rem, and I think padding should be rem too. But I'm not too sure if there are any hard rules about what units should be used for any other properties.

Thanks again.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Musicalaudio's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License