Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ committed Jul 11, 2023
1 parent 9da320b commit 72cdd71
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sites/svelte.dev/src/routes/_components/Supporters/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import { Section } from '@sveltejs/site-kit/components';
import contributors from './contributors.js';
import donors from './donors.js';
// @ts-ignore
import contributors_img from './contributors.jpg?w=1200&format=webp;jpg&as=picture';
// @ts-check
import donors_img from './donors.jpg?w=1200&format=webp;jpg&as=picture';
</script>

<Section --background="var(--sk-back-2">
Expand All @@ -20,6 +25,7 @@
<a
class="supporter"
style="background-position: {(100 * i) / (contributors.length - 1)}% 0"
style:background-image="url({contributors_img.sources.webp[0].src})"
href="https://github.com/{contributor}"
>
{contributor}
Expand All @@ -37,6 +43,7 @@
<a
class="supporter"
style="background-position: {(100 * i) / (donors.length - 1)}% 0"
style:background-image="url({donors_img.sources.webp[0].src})"
href="https://opencollective.com/svelte">{donor}</a
>
{/each}
Expand Down Expand Up @@ -86,11 +93,11 @@
}
.contributors .supporter {
background-image: url(./contributors.jpg);
background-image: -webkit-image-set(url(./contributors.jpg));
}
.donors .supporter {
background-image: url(./donors.jpg);
background-image: -webkit-image-set(url(./donors.jpg));
}
@media (min-width: 480px) {
Expand Down

0 comments on commit 72cdd71

Please sign in to comment.