File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
sites/svelte.dev/src/routes/_components/Supporters Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 22 import { Section } from ' @sveltejs/site-kit/components' ;
33 import contributors from ' ./contributors.js' ;
44 import donors from ' ./donors.js' ;
5+
6+ // @ts-ignore
7+ import contributors_img from ' ./contributors.jpg?w=1200&format=webp;jpg&as=picture' ;
8+ // @ts-check
9+ import donors_img from ' ./donors.jpg?w=1200&format=webp;jpg&as=picture' ;
510 </script >
611
712<Section --background =" var(--sk-back-2" >
2025 <a
2126 class =" supporter"
2227 style ="background-position: {(100 * i ) / (contributors .length - 1 )}% 0"
28+ style:background-image ="url( {contributors_img .sources .webp [0 ].src })"
2329 href ="https://github.com/ {contributor }"
2430 >
2531 {contributor }
3743 <a
3844 class =" supporter"
3945 style ="background-position: {(100 * i ) / (donors .length - 1 )}% 0"
46+ style:background-image ="url( {donors_img .sources .webp [0 ].src })"
4047 href ="https://opencollective.com/svelte" >{donor }</a
4148 >
4249 {/each }
8693 }
8794
8895 .contributors .supporter {
89- background-image : url (./contributors.jpg );
96+ background-image : -webkit-image-set ( url (./contributors.jpg ) );
9097 }
9198
9299 .donors .supporter {
93- background-image : url (./donors.jpg );
100+ background-image : -webkit-image-set ( url (./donors.jpg ) );
94101 }
95102
96103 @media (min-width : 480px ) {
You can’t perform that action at this time.
0 commit comments