QR Code Component Main

Please log in to post a comment
Log in with GitHubCommunity feedback
- @srplanta
- Bro your code is far better than mine.
- Make page height 100% of your media screen size by using 100vh
- Instead of using pixels for your font size, use em & rem for better responsiveness.
- @samuel-jm
Nice solution, if you want to position your attribution independently from the qr component you could set its position to absolute and use top, right, etc., this will remove it from normal flow and allow the qr component to be centered on the viewport regardless of where the attribution is placed. Something like:
.attribution { position: absolute; left: 50%; transform: translateX(-50%); bottom: 15px; }
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