QR Code component page

Solution retrospective
Using flex-box was nice, though would love to solve the issue of aligning the component to the center as scrollbar started appearing when using width: 100vw; height: 100vh
.
Well, I had to deal with the following: on trying to align the component to the center a scrollbar started appearing when using width: 100vw; height: 100vh
. This I resolved using calc(100vw - 8px)
, though it is not as elegant as I desired.
None in particular.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Snehasikder
That looks amazing. It's so close to the design. Here's one room for improvement in my opinion and that would be the scan the qr code text. The font colour is supposed to be more lighter. Apart from this I feels it's almost identical to the design. Hope this helps!!
- @Tochukwu-1
To prevent the scroll bar issue
- you can easily add this styling in your css file and then there won't be a need for the
calc[100vw - 8px]
*{ padding: none; margin: none; box-sizing: border-box; //box-sixing is not compulsory unless in react }
- By the way you did a good job here.
- you can easily add this styling in your css file and then there won't be a need for the
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