Qr code component with flexbox

Solution retrospective
Any improvements or refactoring you think necessary, kindly.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MelvinAguilar
Hello there 👋. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
HTML 🏷️:
- Wrap the page's whole main content in the
<main>
tag.
CSS 🎨:
- In this challenge, there's no need to use a media query; you can remove it. Additionally, as a side note, the values
375px
and1440px
are just references indicating the dimensions of the challenge's screenshots. You don't need to incorporate them into the media query.
- Use
font-size
inrem
orem
units rather than pixels for better responsiveness Resource.
- You should use the
box-sizing: border-box
property to make thewidth
andheight
properties include the padding and border of the element. This will make it easier to calculate the size of an element. You can read more about this here 📘.
- Use
min-height: 100vh
instead ofheight
. Setting the height to 100vh may result in the component being cut off on smaller screens.
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
Marked as helpful - Wrap the page's whole main content in the
- P@danielmrz-dev
Hello @Asumpta-1!
Your project looks excelent!
If you add a
box-shadow
to your card, it'll look exactly as the original design.Other than that, you did a great job!
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