Design comparison
Solution retrospective
What I'm most proud of about the project was the way I managed to make it accessible for different types of screens.
What challenges did you encounter, and how did you overcome them?I believe that the biggest challenge I encountered was finding a way to change the image when the screen was reduced, but I managed to find a practical solution
What specific areas of your project would you like help with?I believe that what I would like to learn more and more would be to find ways to make the code more adaptable without always having to use media query to adapt the CSS
Community feedback
- @danielmrz-devPosted 5 months ago
Fala Rubens!
Seu projeto está ótimo!
Eu tenho uma sugestão sobre o seu código que pode te interessar:
📌 Você pode usar a tag
<picture>
quando tiver diferentes versões da mesma imagem 🖼. Usar a tag<picture>
ajudará a carregar a imagem correta para o dispositivo do usuário, economizando largura de banda e melhorando o desempenho. Exemplo:<picture> <source media="(max-width: 460px)" srcset="{caminho da imagem desktop aqui}"> <img src="{caminho da imagem mobile aqui}" alt="{texto alternativo aqui}"> </picture>
Espero que isso ajude!
Fora isso, excelente trabalho!
Marked as helpful0
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