Skip to content

Commit

Permalink
perf(website): compress screenshots as webp
Browse files Browse the repository at this point in the history
use squoosh with options:
lossless: true
effort: 9
others: default
  • Loading branch information
pacexy committed Apr 27, 2024
1 parent 1fbf271 commit 08b7bb1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<p align="center">Free. Open source. Browser-based.</p>

<p align="center"><img src="apps/website/public/screenshots/en-US.png"/>
<p align="center"><img src="apps/website/public/screenshots/en-US.webp"/>
</p>

## Features
Expand Down
Binary file added apps/website/public/screenshots/en-US.webp
Binary file not shown.
Binary file added apps/website/public/screenshots/zh-CN.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion apps/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Home() {
</ul>
</div>
<img
src={`/screenshots/${locale}.png`}
src={`/screenshots/${locale}.webp`}
alt="Screenshot"
className="shadow-1 mt-16"
/>
Expand Down

0 comments on commit 08b7bb1

Please sign in to comment.