@half-cto
Posted
Hi Paul, congrats on finishing this project! 🥳 I also found positioning of hero image to be toughest challenge for this project!
You are almost correct with current implementation of image:
<picture>
<source media="(min-width: 1096px)" srcset="./images/image-hero-desktop.png">
<source media="(min-width: 768px)" srcset="./images/image-hero-tablet.png">
<source media="(max-width: 768px)" srcset="./images/image-hero-mobile.png">
<img src="./images/image-hero-mobile.png" alt="">
</picture>
however you could lose line:
<source media="(max-width: 768px)" srcset="./images/image-hero-mobile.png">
since image in <img> tag will be displayed by default. Alternatives are displayed only if matching media queries. Hope this helps!
Marked as helpful