QR code component

Solution retrospective
Hi everyone 👋👋
This is my 2nd Frontend component submission. I found this relatively easy and fun to do in a short time.
Any feedback to improve my code would be appreciated :-)
Happy coding👾
Please log in to post a comment
Log in with GitHubCommunity feedback
- @correlucas
👾Hello Saurav, congratulations for your solution!
You've done pretty much anything, there are two things you do to clean your code and make the container have a better aspect in the mobile version.
1.Use a single padding for all the component, you've use a padding property for the img h1 and p. A quick fix for that is removing all these
paddings
and addpadding: 16px;
to thecontainer
div.2.Add
margin: 24px;
to the container to avoid the container touching the screen bounds when you scale down the screen until240px;
.Hope it helps and congratulations again for the solution, seems really good. Happy coding!
Marked as helpful - @SurajHadage
Most shortened, semantic & accessible HTML structure would be :
<main> <figure> <img> </figure> <h1></h1> <p></p> </main>
- I recommend you to not upload unnecessary files & folders to Github pages to save server space.
- Use any app like Paint to get actual dimensions.
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