Skip to content

Commit

Permalink
fix: compress images to webp and pre-define width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Oct 12, 2024
1 parent df32473 commit 12d1bc4
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/routes/(components)/page/CarouselComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,30 @@
<Carousel.Root class="mx-auto my-4 w-3/4">
<Carousel.Content class="items-center">
<Carousel.Item>
<img class="border" src="/screenshots/{$mode}/SplitDayChart.png" alt="SplitDayChart" />
<img
class="border"
src="/screenshots/{$mode}/SplitDayChart.webp"
alt="SplitDayChart"
width={240}
height={236.5}
/>
</Carousel.Item>
<Carousel.Item>
<img
class="border"
src="/screenshots/{$mode}/MicrocycleVolumeDistributionChart.png"
src="/screenshots/{$mode}/MicrocycleVolumeDistributionChart.webp"
alt="MicrocycleVolumeDistributionChart"
width={240}
height={185.5}
/>
</Carousel.Item>
<Carousel.Item>
<img
class="border"
src="/screenshots/{$mode}/MuscleGroupVolumeDistributionChart.png"
src="/screenshots/{$mode}/MuscleGroupVolumeDistributionChart.webp"
alt="MuscleGroupVolumeDistributionChart"
width={240}
height={234}
/>
</Carousel.Item>
</Carousel.Content>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/screenshots/dark/SplitDayChart.png
Binary file not shown.
Binary file added static/screenshots/dark/SplitDayChart.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/screenshots/light/SplitDayChart.png
Binary file not shown.
Binary file added static/screenshots/light/SplitDayChart.webp
Binary file not shown.

0 comments on commit 12d1bc4

Please sign in to comment.