Skip to content

Commit

Permalink
chore(landing): use WebP image format
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Apr 29, 2024
1 parent 57e39ef commit 1193975
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion landing/components/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ const Hero = () => {
<a href="https://readflow.app/login" className="primary btn">{t('get-started')}</a>
</div>
<div>
<img src="./img/relax.png" alt="Reading with peaceful mindset" />
<picture>
<source srcset="./img/relax.webp" type="image/webp" />
<img src="./img/relax.png" alt="Reading with peaceful mindset" />
</picture>
</div>
</section>
)
Expand Down
5 changes: 4 additions & 1 deletion landing/components/Screenshot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const Screenshot = () => {
<hr />
</header>
<figure>
<img src="./img/screenshot.png" alt="screenshot" />
<picture>
<source srcset="./img/screenshot.webp" type="image/webp" />
<img src="./img/screenshot.png" alt="screenshot" />
</picture>
</figure>
<header className={styles.try}>
<h1>{t('try')}</h1>
Expand Down
Binary file added landing/public/img/relax.webp
Binary file not shown.
Empty file modified landing/public/img/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added landing/public/img/screenshot.webp
Binary file not shown.

0 comments on commit 1193975

Please sign in to comment.