Design comparison
Solution retrospective
Hello, Frontend Mentor community! 👨🏻💻
This is my solution for the QR Code Component and my first submission of a challenge solution too. I already have a html and css knowledge, so i didn't have too many dificulties on it, but it was nice because i learn a little bit of object-fit when using image inside a container.
That's it! I hope my solution can be useful to all of you.
Hugs from Brazil! 💚💛
Community feedback
- @PhoenixDev22Posted over 2 years ago
Hi Diego,
Congratulation on completing your first challenge here in frontend mentor. Your solution looks great. I have some suggestions regarding your solution:
- The alternate text should indicate where the Qr code navigate the user : like
QR code to frontend mentor
not describes the image.
- Consider using
min-height: 100vh
instead ofheight: 100vh
to the body , that let the body grows taller if the content of the page outgrows the visible page.
- It's recommended to include a git ignore. This came with your starter files. It's less important in this challenge but will become extremely important as you move onto larger projects with build steps.
- There are a lot the arguments against the 62.5% font size trick ,it state that you should never change the root font size because it harms accessibility.
Overall, Excellent work! Hopefully this feedback helps.
Marked as helpful1 - The alternate text should indicate where the Qr code navigate the user : like
- @correlucasPosted over 2 years ago
Fala Diego, beleza? Parabéns pelo primeiro desafio!
Eu vi que você foi bem minimalista na estrutura do HTML, de fato sua solução foi uma com o código mais limpo de todas que vi. Eu usaria
<main>
no lugar do article pra evitar o erro de acessibilidade que vai aparecer pra você porque toda página precisa de ummain
mesmo nesse caso sendo um componente.É se você quiser limpar mais ainda o código, dá pra tirar todas as classes e manipular o CSS todo com o seletor direto de cada elemento já que são únicos, main, article, img, h1 e p.
Parabéns, mandou muito!
Marked as helpful1@diegopereira0Posted over 2 years ago@correlucas
Fala, Lucas! Tudo certo, e você?
Sim, eu percebi assim que subi o código e apareceu o erro aqui 😂 Não sabia! Mas valeu pela força, eu já corrigi e dei um push no git.
Muito obrigado, meu caro!
1
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