Skip to content

Commit 99613d6

Browse files
committed
Optimized images for better performance
1 parent f1db4ec commit 99613d6

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed
454 KB
Loading
-1.02 MB
Loading
177 KB
Binary file not shown.

starter/07-Omnifood-Desktop/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,23 @@ <h1 class="heading-primary">
8383
</div>
8484
</div>
8585
<div class="hero-image-box">
86+
<picture>
87+
<source srcset="img/hero.webp" type="image/webp" />
88+
<source srcset="img/hero-min.png" type="image/png" />
89+
90+
<img
91+
src="img/hero.webp"
92+
class="hero-img"
93+
alt="Woman enjoying food, meals in storage container, and food bowls on a table"
94+
/>
95+
</picture>
96+
<!-- <div class="hero-image-box">
8697
<img
87-
src="img/hero.png"
98+
src="img/hero-min.png"
8899
class="hero-img"
89100
alt="Woman enjoying food, meals in storage container, and food bowls on a table"
90101
/>
102+
</div> -->
91103
</div>
92104
</div>
93105
</section>

0 commit comments

Comments
 (0)