Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
This is a very basic landing page. So not proud of it that much but definitely will take up more challenges and work hard to make better frontends
What challenges did you encounter, and how did you overcome them?The only problem I currently face is to judge the accurate padding and font size. I overcame them by taking my best judgment.
What specific areas of your project would you like help with?For this particular challenge, No
Community feedback
- @0xabdulkhaliqPosted 8 months ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have a suggestion regarding your code that I believe will be of great interest to you.
BAD WAY OF ADDING QR iMAGE 📸:
- Since this component involves scanning the QR code, the image is not a decoration, so it must want to added via
<img>
element and not using adiv
element's background image.
- So replace the
div
element with animg
element which has source of/images/image-qr-code.png
andalt
ofQR code to frontendmentor.io
Example:
<img src="/images/image-qr-code.png" alt="QR code to frontendmentor.io">
Now remove the rules you've written for
.qr-code-square
,.qr-code-square { border-radius: 8px; width: 288px; height: 288px; background-image: url("images/image-qr-code.png"); background-size: 288px; }
Instead you can add this,
img { border-radius: 8px; width: 288px; height: 288px; }
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
0
Please log in to post a comment
Log in with GitHubJoin 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