Skip to content

Commit 4357d4c

Browse files
committed
feat: Hero Image webp변환
1 parent 118f887 commit 4357d4c

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

images/Hero_Desktop.webp

184 KB
Loading

images/Hero_Mobile.webp

62.3 KB
Loading

images/Hero_Tablet.webp

120 KB
Loading

index.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,26 @@
8181
</header>
8282

8383
<section class="hero">
84-
<img class="desktop" src="images/Hero_Desktop.jpg" />
85-
<img class="mobile" src="images/Hero_Mobile.jpg" />
86-
<img class="tablet" src="images/Hero_Tablet.jpg" />
84+
<picture>
85+
<source
86+
width="576"
87+
height="576"
88+
media="(max-width: 575px)"
89+
srcset="images/Hero_Mobile.webp"
90+
/>
91+
<source
92+
width="960"
93+
height="770"
94+
media="(min-width: 576px) and (max-width: 960px)"
95+
srcset="images/Hero_Tablet.webp"
96+
/>
97+
<img
98+
width="1920"
99+
height="893"
100+
src="images/Hero_Desktop.webp"
101+
alt="Hero_Desktop_Img"
102+
/>
103+
</picture>
87104

88105
<div class="hero-content">
89106
<div class="container">

0 commit comments

Comments
 (0)