@@ -15,27 +15,27 @@ export default function createProduct(id, numColors = 4) {
1515 priceText : `$${ price } ` ,
1616 rating : ( 10 - ( id % 10 ) ) / 2.0 ,
1717 thumbnail : {
18- src : `https://via.placeholder .com/400x400/${ colors [ color ] . background } /${
18+ src : `https://dummyimage .com/400x400/${ colors [ color ] . background } /${
1919 colors [ color ] . foreground
2020 } ?text=${ encodeURIComponent ( 'Product ' + id ) } `,
2121 alt : `Product ${ id } ` ,
2222 } ,
2323 media : {
2424 full : variants . map ( ( key , i ) => ( {
25- src : `https://via.placeholder .com/${ i === 2 ? 400 : 600 } x${ i === 1 ? 400 : 600 } /${
25+ src : `https://dummyimage .com/${ i === 2 ? 400 : 600 } x${ i === 1 ? 400 : 600 } /${
2626 colors [ key ] . background
2727 } /${ colors [ key ] . foreground } ?text=${ encodeURIComponent ( 'Product ' + id ) } `,
2828 alt : `Product ${ id } ` ,
2929 magnify : {
3030 height : i === 1 ? 800 : 1200 ,
3131 width : i === 2 ? 800 : 1200 ,
32- src : `https://via.placeholder .com/${ i === 2 ? 800 : 1200 } x${ i === 1 ? 800 : 1200 } /${
32+ src : `https://dummyimage .com/${ i === 2 ? 800 : 1200 } x${ i === 1 ? 800 : 1200 } /${
3333 colors [ key ] . background
3434 } /${ colors [ key ] . foreground } ?text=${ encodeURIComponent ( 'Product ' + id ) } `,
3535 } ,
3636 } ) ) ,
3737 thumbnails : variants . map ( ( key , i ) => ( {
38- src : `https://via.placeholder .com/${ i === 2 ? 233 : 300 } x${ i === 1 ? 233 : 300 } /${
38+ src : `https://dummyimage .com/${ i === 2 ? 233 : 300 } x${ i === 1 ? 233 : 300 } /${
3939 colors [ key ] . background
4040 } /${ colors [ key ] . foreground } ?text=${ encodeURIComponent ( 'Product ' + id ) } `,
4141 alt : `Product ${ id } ` ,
@@ -57,33 +57,33 @@ export default function createProduct(id, numColors = 4) {
5757 id : name ,
5858 disabled : idx === 2 ,
5959 image : {
60- src : `https://via.placeholder. com/48x48/${
61- colors [ name ] . background
62- } ?text= ${ encodeURIComponent ( ' ' ) } `,
60+ src : `https://dummyimage. com/48x48/${ colors [ name ] . background } ?text= ${ encodeURIComponent (
61+ ' ' ,
62+ ) } `,
6363 alt : name ,
6464 } ,
6565 media : {
6666 full : [ name , name , name ] . map ( ( key , i ) => ( {
67- src : `https://via.placeholder .com/${ i === 2 ? 400 : 600 } x${ i === 1 ? 400 : 600 } /${
67+ src : `https://dummyimage .com/${ i === 2 ? 400 : 600 } x${ i === 1 ? 400 : 600 } /${
6868 colors [ key ] . background
6969 } /${ colors [ key ] . foreground } ?text=${ encodeURIComponent ( 'Product ' + id ) } `,
7070 alt : `Product ${ id } ` ,
7171 magnify : {
7272 height : i === 1 ? 800 : 1200 ,
7373 width : i === 2 ? 800 : 1200 ,
74- src : `https://via.placeholder .com/${ i === 2 ? 800 : 1200 } x${ i === 1 ? 800 : 1200 } /${
74+ src : `https://dummyimage .com/${ i === 2 ? 800 : 1200 } x${ i === 1 ? 800 : 1200 } /${
7575 colors [ key ] . background
7676 } /${ colors [ key ] . foreground } ?text=${ encodeURIComponent ( 'Product ' + id ) } `,
7777 } ,
7878 } ) ) ,
7979 thumbnails : [ name , name , name ] . map ( ( key , i ) => ( {
80- src : `https://via.placeholder .com/${ i === 2 ? 300 : 400 } x${ i === 1 ? 300 : 400 } /${
80+ src : `https://dummyimage .com/${ i === 2 ? 300 : 400 } x${ i === 1 ? 300 : 400 } /${
8181 colors [ key ] . background
8282 } /${ colors [ key ] . foreground } ?text=${ encodeURIComponent ( `Product ${ id } ` ) } `,
8383 alt : key ,
8484 } ) ) ,
8585 thumbnail : [ name ] . map ( key => ( {
86- src : `https://via.placeholder .com/400x400/${ colors [ key ] . background } /${
86+ src : `https://dummyimage .com/400x400/${ colors [ key ] . background } /${
8787 colors [ key ] . foreground
8888 } ?text=${ encodeURIComponent ( 'Product ' + id ) } `,
8989 alt : `Product ${ id } ` ,
0 commit comments