Skip to content

Commit e309f74

Browse files
committed
feat: Image Optimizations
1 parent 6731ad8 commit e309f74

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed
473 KB
Loading
197 KB
Binary file not shown.

starter/07-Omnifood-Desktop/index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,15 @@ <h1 class="heading-primary">
111111
</div>
112112
</div>
113113
<div class="hero-img-box">
114-
<img
115-
src="img/hero.png"
116-
alt="Woman enjoying food, meals in storage container, and food bawls on a table"
117-
class="hero-img"
118-
/>
114+
<picture>
115+
<source srcset="img/hero.webp" type="image/webp" />
116+
<source srcset="img/hero-min.png" type="image/png" />
117+
<img
118+
src="img/hero-min.png"
119+
alt="Woman enjoying food, meals in storage container, and food bawls on a table"
120+
class="hero-img"
121+
/>
122+
</picture>
119123
</div>
120124
</div>
121125
</section>

0 commit comments

Comments
 (0)