Skip to content

Commit

Permalink
fix(web): optimise images
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Dec 5, 2023
1 parent c2b367f commit 9f164a5
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/lib/components/Loader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</script>

<div class='h-full con font-weight-bold overflow-hidden position-absolute' class:animate>
<div class='h-full text d-flex align-items-center justify-content-center text-nowrap text-capitalize'>
<div class='h-full text d-flex align-items-center justify-content-center text-nowrap text-capitalize' data-nosnippet>
Loading...
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/lib/components/Stargazers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{#each stargazerRow as { htmlUrl, avatarUrl, login }}
<a href={htmlUrl} class='d-inline-flex p-10 text-reset zoom' target='_blank'>
<div class='bg-dark py-15 px-20 rounded font-weight-bold d-flex align-items-center'>
<img src={avatarUrl} alt='avatar' class='rounded-circle mr-10' />
<img src={avatarUrl} alt='avatar' class='rounded-circle mr-10' loading='lazy' />
{login}
</div>
</a>
Expand Down
4 changes: 2 additions & 2 deletions web/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<Hero />
<div class='container-xl'>
<div class='position-relative'>
<img src='app.png' alt='app' class='mw-full px-20' />
<img src='app.webp' alt='app' class='mw-full px-20' />
<div class='overlay-gradient position-absolute top-0 left-0 w-full h-full' />
</div>

Expand Down Expand Up @@ -74,7 +74,7 @@
<div class='row flex-column-reverse flex-md-row'>
<div class='col-md-5 col-12'>
<div class='content'>
<img src='player.png' alt='player' class='mw-full' />
<img src='player.webp' alt='player' class='mw-full' />
</div>
</div>
<div class='col-md-7 col-12'>
Expand Down
Binary file added web/static/app.webp
Binary file not shown.
File renamed without changes
Binary file added web/static/player.webp
Binary file not shown.
File renamed without changes

0 comments on commit 9f164a5

Please sign in to comment.