Design comparison
Community feedback
- @denieldenPosted about 2 years ago
Hello Felipe, You have done a good work! 😁
Some little tips to improve your code:
- add
main
tag and wrap the card for improve the Accessibility - also you can use
article
tag instead of a simplediv
to the container card for improve the Accessibility - remove all unnecessary code, the less you write the better as well as being clearer: for example the
picture
container of image andsource
because theimg
is sufficient: you can usepicture
tag when you need to change the image by resolution -> read here - to make it look as close to the design as possible add
border-radius: .5rem
toqrcode
class - use
min-height: 100vh
instead ofheight
, otherwise the content is cut off when the browser height is less than the content - instead of using
px
use relative units of measurement likerem
-> read here
Keep learning how to code with your amazing solutions to challenges.
Hope this help 😉 and Happy coding!
0 - add
- @VCaramesPosted about 2 years ago
Hey, some suggestions to improve you code:
-
Add a
border-radius
to your QR image. -
There is no need for so many QR images. You only need one.
-
The Alt Tag description for the QR image needs to be improved upon. Its needs to tell screen reader users what it is and where it will take them to when they scan it.
-
Move the following code to your **Body Element, delete the
width
and change theheight
tomin-height
.
.container { display: flex; flex-direction: row; justify-content: center; align-items: center; width: 100vw; height: 100vh; }
- Delete the
height
from .box its not needed. Your content will create the height.
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