diff --git a/sites/svelte.dev/scripts/get_contributors.js b/sites/svelte.dev/scripts/get_contributors.js index 70e66327b301..00c783009638 100644 --- a/sites/svelte.dev/scripts/get_contributors.js +++ b/sites/svelte.dev/scripts/get_contributors.js @@ -68,11 +68,6 @@ try { new URL(`../src/routes/_components/Supporters/contributors.jpg`, import.meta.url).pathname ); - // TODO: Optimizing the static/contributors.jpg image should probably get automated as well - console.log( - 'remember to additionally optimize the resulting /static/contributors.jpg image file via e.g. https://squoosh.app ' - ); - const str = `[\n\t${authors.map((a) => `'${a.login}'`).join(',\n\t')}\n]`; writeFile(outputFile, `export default ${str};`); diff --git a/sites/svelte.dev/scripts/get_donors.js b/sites/svelte.dev/scripts/get_donors.js index 6383548f3b06..60749f21c50e 100644 --- a/sites/svelte.dev/scripts/get_donors.js +++ b/sites/svelte.dev/scripts/get_donors.js @@ -61,10 +61,6 @@ try { .writeAsync( new URL(`../src/routes/_components/Supporters/donors.jpg`, import.meta.url).pathname ); - // TODO: Optimizing the static/donors.jpg image should probably get automated as well - console.log( - 'remember to additionally optimize the resulting /static/donors.jpg image file via e.g. https://squoosh.app ' - ); const str = `[\n\t${included.map((a) => `${JSON.stringify(a.backer.name)}`).join(',\n\t')}\n]`; diff --git a/sites/svelte.dev/src/routes/_components/Supporters/index.svelte b/sites/svelte.dev/src/routes/_components/Supporters/index.svelte index 589e10dda097..3b220a52ce00 100644 --- a/sites/svelte.dev/src/routes/_components/Supporters/index.svelte +++ b/sites/svelte.dev/src/routes/_components/Supporters/index.svelte @@ -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'; + // @ts-ignore + import donors_img from './donors.jpg?w=1200&format=webp';
@@ -20,6 +25,7 @@ {contributor} @@ -37,6 +43,7 @@ {donor} {/each} @@ -85,14 +92,6 @@ filter: drop-shadow(1px 2px 8px rgba(0, 0, 0, 0.3)); } - .contributors .supporter { - background-image: url(./contributors.jpg); - } - - .donors .supporter { - background-image: url(./donors.jpg); - } - @media (min-width: 480px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr));