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