Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Resolução do desafio

@JuCanavans

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Desafio finalizado com sucesso, aceito sugestão de melhorias... ;)

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Fala @JuCanavans!

Seu projeto está ótimo!

Eu tenho uma sugestão:

  • Ao invés de usar a imagem como background de uma <div> vazia, 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 aqui}">
    <img src="{caminho da imagem aqui}" alt="{texto alternativo aqui}">
</picture>

Espero que isso ajude!

Fora isso, excelente trabalho!

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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