Design comparison
Community feedback
- @PhoenixDev22Posted about 2 years ago
Hi Eduardo Alexandre,
Congratulation on completing this challenge. Your solution looks great. I have some suggestions regarding your solution if you don’t mind:
- In my opinion, the alternate text should indicate where the Qr code navigate the user : like
QR code to frontend mentor.
(not describes the image).
- Adding
rel="noopener"
orrel="noreferrer"
totarget="_blank"
links. When you link to a page on another site usingtarget=”_blank”
attribute , you can expose your site to performance and security issues.
- Add
min-height: 100vh
instead ofheight: 100vh
to the body that let the body grows taller if the content outgrows the visible page instead.
width: 320px
an explicit width is not a good way to have a responsive layout. Consider usingmax-width
to the card inrem
instead.
- Consider using
rem
for font size .If your web content font sizes are set in absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. Relative units “stretch” according to the screen size and/or user’s preferred font size, and work on a large range of devices.
- Remember a css reset on every project. That will do things like set the images to display block and make all browsers display elements the same.
- Really important to keep css specificity as low/flat as possible. It’s not recommended to use the ids to target the DOM elements for styling purposes, better to use classes so that it could be more manageable and reusable. IDs have a much higher specificity than classes and they have many uses in a webpage aside from being a CSS selector. For example as page anchors, fragment identifiers or to link labels to form fields.
Aside these , Good work! Hopefully this feedback helps
0 - In my opinion, the alternate text should indicate where the Qr code navigate the user : like
- @AdrianoEscarabotePosted about 2 years ago
Olá Eduardo, tudo bem?
Parabéns por concluir outro desafio, gostei bastante do resultado, o desigin do projeto ficou bem-parecido com o do layout de exemplo. Tenho algumas dicas que julgo que você gostará:
Percebi que o layout estava quebrando muito cedo, fiz algumas alterações para melhorar isso:
@media (max-width: 340px) { body { padding: 0 10px; } #card { width: 100%; } #card img { width: 100%; } }
Adicione este media query no seu código e observe um layout mais reponsivo.
O resto está ótimo! Espero que ajude... 👍
0 - @paulaabroPosted about 2 years ago
Congrats on the solution 🎉
Feedback time
- I would recommend using a reset.css for reseting the css of the browser so you get more control over it. I use RESET CSS 2022 but you may prefer RESET CSS.
- It's not back practice but I like to remove the unit when its 0 so:
margin: 0px; # becomes margin: 0;
Nice job, keep it up!
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