Design comparison
Solution retrospective
To bo honest I'm wondering what is the better way to write this.
Community feedback
- @maiconrmonteiroPosted almost 2 years ago
Olá, ficou muito lindo o seu desafio, sou aprendiz mais posso colaborar com o seu projeto centralizando o conteudo da pagina, pois dessa forma ele ficou no topo. Para resolver você poderia usar o flex-box na sua tag body. Com toda certeza ficaria perfeito.
body { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; }
Se não resolver pode me chamar que te ajudo com todo prazer, uma abraço.
Marked as helpful1@BieganskiPPosted almost 2 years ago@maiconrmonteiro Thank you for your sugestion, works perfect. THANK YOU.
0 - @AdrianoEscarabotePosted almost 2 years ago
Hi Patryk Biegański, how are you? Welcome to the front-end mentor community! I really liked the result of your project, but I have some tips that I think you will enjoy:
To improve the responsiveness of the project, we can make some changes:
.qr__card { max-width: 20rem; } .qr__code { max-width: 18rem; width: 100%; height: auto; } .qr__texts { max-width: 18rem; }
The rest is great!
I hope it helps... 👍
Marked as helpful0 - @denieldenPosted almost 2 years ago
Hello Patryk, 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 img
element must have analt
attribute, it's very important!- add descriptive text in the
alt
attribute of the images - remove all
margin
from.qr__card
class because with flex they are superfluous - use flexbox properties to the body to center the card. Read here -> best flex guide
- use
min-height: 100vh
to body 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!
1@BieganskiPPosted almost 2 years ago@denielden Thanks a lot, I have implemented all of your tips.
1@denieldenPosted almost 2 years ago@BieganskiP You are welcome and keep it up :)
Marked as helpful1 - add
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