feat: 模型列表数据大屏
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 194 KiB |
@ -0,0 +1,26 @@
|
||||
<svg width="265" height="172" viewBox="0 0 265 172" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect y="1" width="265" height="171" fill="url(#paint0_linear_9937_75626)"/>
|
||||
<path d="M248 170.228H264V156.052" stroke="#FFCF5F" stroke-width="2"/>
|
||||
<path d="M17 170.228H1V156.052" stroke="#FFCF5F" stroke-width="2"/>
|
||||
<path d="M248 1H264V15.1762" stroke="#20A0FD" stroke-width="2"/>
|
||||
<path d="M17 1H1V15.1762" stroke="#FFCF5F" stroke-width="2"/>
|
||||
<path opacity="0.3" d="M180 15.1763H210.443L233.103 24.0364H249" stroke="url(#paint1_linear_9937_75626)" stroke-width="1.5"/>
|
||||
<path opacity="0.3" d="M7 24.9224H37.4428L60.1027 33.7825H76" stroke="url(#paint2_linear_9937_75626)" stroke-width="1.5"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_9937_75626" x1="132.5" y1="20.284" x2="132.5" y2="172" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FFCF5F" stop-opacity="0.4"/>
|
||||
<stop offset="0.0001" stop-color="#FFCF5F" stop-opacity="0.4"/>
|
||||
<stop offset="1" stop-color="#FFCF5F" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_9937_75626" x1="180" y1="15.1763" x2="247" y2="15.1763" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FFBE18" stop-opacity="0"/>
|
||||
<stop offset="0.48" stop-color="#FFBE18"/>
|
||||
<stop offset="1" stop-color="#FFBE18" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_9937_75626" x1="7" y1="24.9224" x2="74" y2="24.9224" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FFBE18" stop-opacity="0"/>
|
||||
<stop offset="0.48" stop-color="#FFBE18"/>
|
||||
<stop offset="1" stop-color="#FFBE18" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 302 KiB |
@ -0,0 +1,19 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.40039 5.50039C4.40039 5.16902 4.66902 4.90039 5.00039 4.90039H8.00039C8.33176 4.90039 8.60039 5.16902 8.60039 5.50039C8.60039 5.83176 8.33176 6.10039 8.00039 6.10039H5.00039C4.66902 6.10039 4.40039 5.83176 4.40039 5.50039Z" fill="url(#paint0_linear_8867_89141)"/>
|
||||
<path d="M5.00039 8.90039C4.66902 8.90039 4.40039 9.16902 4.40039 9.50039C4.40039 9.83176 4.66902 10.1004 5.00039 10.1004H8.00039C8.33176 10.1004 8.60039 9.83176 8.60039 9.50039C8.60039 9.16902 8.33176 8.90039 8.00039 8.90039H5.00039Z" fill="url(#paint1_linear_8867_89141)"/>
|
||||
<path d="M2.66641 15.2664L1.3334 15.2664C1.00203 15.2664 0.733398 14.9978 0.733398 14.6664C0.733398 14.335 1.00203 14.0664 1.3334 14.0664H2.06641V1.99974C2.06641 1.48428 2.48428 1.06641 2.99974 1.06641H9.66641C10.1819 1.06641 10.5997 1.48428 10.5997 1.99974V4.6603L13.6425 6.48574C13.8232 6.59417 13.9338 6.78948 13.9338 7.00025V14.0664H14.6667C14.9981 14.0664 15.2667 14.335 15.2667 14.6664C15.2667 14.9978 14.9981 15.2664 14.6667 15.2664H13.3639C13.354 15.2669 13.3439 15.2671 13.3338 15.2671C13.3294 15.2671 13.325 15.2671 13.3205 15.267C13.3149 15.2669 13.3093 15.2667 13.3037 15.2664L9.99974 15.2664H2.66641ZM10.5997 14.0664H12.7338V7.33998L10.5997 6.05969V14.0664ZM9.39974 14.0664V2.26641H3.26641V14.0664H9.39974Z" fill="url(#paint2_linear_8867_89141)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_8867_89141" x1="7.99544" y1="0.990589" x2="3.14616" y2="15.7919" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#72BCFF"/>
|
||||
<stop offset="1" stop-color="#00F4FF"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_8867_89141" x1="7.99544" y1="0.990589" x2="3.14616" y2="15.7919" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#72BCFF"/>
|
||||
<stop offset="1" stop-color="#00F4FF"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_8867_89141" x1="7.99544" y1="0.990589" x2="3.14616" y2="15.7919" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#72BCFF"/>
|
||||
<stop offset="1" stop-color="#00F4FF"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 2.0 KiB |
@ -0,0 +1,58 @@
|
||||
<svg width="544" height="46" viewBox="0 0 544 46" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M42 39L64.3646 11H485.735L502 39H42Z" fill="url(#paint0_linear_8858_84286)"/>
|
||||
<path d="M42 33L64.3646 5H485.735L502 33H42Z" fill="url(#paint1_linear_8858_84286)" stroke="url(#paint2_linear_8858_84286)"/>
|
||||
<path d="M39.9998 31.8247L63.2352 2.09057" stroke="url(#paint3_linear_8858_84286)"/>
|
||||
<path d="M505 33L485 1" stroke="url(#paint4_linear_8858_84286)" stroke-width="1.5"/>
|
||||
<g style="mix-blend-mode:overlay" filter="url(#filter0_f_8858_84286)">
|
||||
<ellipse cx="268.5" cy="33.5" rx="41.5" ry="2.5" fill="white"/>
|
||||
</g>
|
||||
<path d="M30 14L20.1724 30L0 18.3636L30 14Z" fill="url(#paint5_linear_8858_84286)" fill-opacity="0.6"/>
|
||||
<path d="M30 11L20.1724 27L0 15.3636L30 11Z" fill="url(#paint6_linear_8858_84286)"/>
|
||||
<path d="M514 14L523.828 30L544 18.3636L514 14Z" fill="url(#paint7_linear_8858_84286)" fill-opacity="0.6"/>
|
||||
<path d="M514 11L523.828 27L544 15.3636L514 11Z" fill="url(#paint8_linear_8858_84286)"/>
|
||||
<defs>
|
||||
<filter id="filter0_f_8858_84286" x="217" y="21" width="103" height="25" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
||||
<feGaussianBlur stdDeviation="5" result="effect1_foregroundBlur_8858_84286"/>
|
||||
</filter>
|
||||
<linearGradient id="paint0_linear_8858_84286" x1="272" y1="11" x2="272" y2="39" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#1095F0" stop-opacity="0"/>
|
||||
<stop offset="1" stop-color="#1095F0" stop-opacity="0.4"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_8858_84286" x1="272" y1="7.5" x2="272" y2="33" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#1095F0" stop-opacity="0"/>
|
||||
<stop offset="1" stop-color="#1095F0" stop-opacity="0.6"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_8858_84286" x1="272" y1="23.5" x2="272" y2="33" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41E8FF" stop-opacity="0"/>
|
||||
<stop offset="0.0001" stop-color="#41D1FF" stop-opacity="0.011993"/>
|
||||
<stop offset="0.590607" stop-color="#41D1FF" stop-opacity="0.425"/>
|
||||
<stop offset="1" stop-color="#41D1FF"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint3_linear_8858_84286" x1="40.6717" y1="30.3384" x2="62.7208" y2="3.7073" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41D1FF"/>
|
||||
<stop offset="1" stop-color="#41D1FF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint4_linear_8858_84286" x1="504.487" y1="31.4516" x2="485.343" y2="2.66164" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41D1FF"/>
|
||||
<stop offset="1" stop-color="#41D1FF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint5_linear_8858_84286" x1="-1.11207e-08" y1="19.8182" x2="25.3217" y2="22.0234" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41D1FF"/>
|
||||
<stop offset="1" stop-color="#41D1FF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint6_linear_8858_84286" x1="-1.11207e-08" y1="16.8182" x2="25.3217" y2="19.0234" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41D1FF"/>
|
||||
<stop offset="1" stop-color="#41D1FF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint7_linear_8858_84286" x1="544" y1="19.8182" x2="518.678" y2="22.0234" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41D1FF"/>
|
||||
<stop offset="1" stop-color="#41D1FF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint8_linear_8858_84286" x1="544" y1="16.8182" x2="518.678" y2="19.0234" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41D1FF"/>
|
||||
<stop offset="1" stop-color="#41D1FF" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 3.5 KiB |
@ -0,0 +1,19 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.83775 4.4497C9.87625 4.32012 9.95569 4.20651 10.0642 4.12586C10.1726 4.04521 10.3043 4.00187 10.4395 4.00234H10.4633C10.5429 3.99463 10.6233 4.00606 10.6977 4.03567C10.772 4.06528 10.8383 4.11221 10.8908 4.17257C10.9342 4.23678 10.9594 4.3116 10.9636 4.389C10.9678 4.46641 10.9509 4.5435 10.9146 4.61202L9.04596 9.244C8.99643 9.38487 8.90246 9.50582 8.77822 9.58865C8.65398 9.67147 8.50619 9.71168 8.35711 9.70323C8.20803 9.71168 8.06023 9.67147 7.93599 9.58865C7.81174 9.50582 7.71778 9.38487 7.66824 9.244L5.79962 4.61202C5.76337 4.5435 5.74644 4.46641 5.75062 4.389C5.75481 4.3116 5.77996 4.23678 5.82338 4.17257C5.87595 4.11221 5.94218 4.06528 6.01654 4.03567C6.09091 4.00606 6.17127 3.99463 6.25094 4.00234H6.27469C6.40971 4.00251 6.5411 4.04609 6.64946 4.12665C6.75782 4.2072 6.83739 4.32046 6.87645 4.4497L8.36502 8.24237L9.83775 4.4497Z" fill="url(#paint0_linear_8867_89134)"/>
|
||||
<path d="M5.75 11C5.47386 11 5.25 11.2239 5.25 11.5C5.25 11.7761 5.47386 12 5.75 12H11C11.2761 12 11.5 11.7761 11.5 11.5C11.5 11.2239 11.2761 11 11 11H5.75Z" fill="url(#paint1_linear_8867_89134)"/>
|
||||
<path d="M4 1C2.89543 1 2 1.89543 2 3V12.5C2 13.6046 2.89543 14.5 4 14.5H12C13.1046 14.5 14 13.6046 14 12.5V3C14 1.89543 13.1046 1 12 1H4ZM12 2C12.5523 2 13 2.44772 13 3V12.5C13 13.0523 12.5523 13.5 12 13.5H4C3.44772 13.5 3 13.0523 3 12.5V3C3 2.44772 3.44772 2 4 2H12Z" fill="url(#paint2_linear_8867_89134)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_8867_89134" x1="7.99618" y1="0.927924" x2="2.85088" y2="14.5683" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#72BCFF"/>
|
||||
<stop offset="1" stop-color="#00F4FF"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_8867_89134" x1="7.99618" y1="0.927924" x2="2.85088" y2="14.5683" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#72BCFF"/>
|
||||
<stop offset="1" stop-color="#00F4FF"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_8867_89134" x1="7.99618" y1="0.927924" x2="2.85088" y2="14.5683" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#72BCFF"/>
|
||||
<stop offset="1" stop-color="#00F4FF"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
@ -0,0 +1,26 @@
|
||||
<svg width="265" height="171" viewBox="0 0 265 171" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="1" y="1" width="263" height="169" stroke="#20A0FD" stroke-opacity="0.4" stroke-width="2"/>
|
||||
<rect width="265" height="171" fill="url(#paint0_linear_9937_75628)" fill-opacity="0.9"/>
|
||||
<path d="M248 170H264V154" stroke="#20A0FD" stroke-width="2"/>
|
||||
<path d="M17 170H1V154" stroke="#20A0FD" stroke-width="2"/>
|
||||
<path d="M248 1H264V17" stroke="#20A0FD" stroke-width="2"/>
|
||||
<path d="M17 1H1V17" stroke="#20A0FD" stroke-width="2"/>
|
||||
<path opacity="0.3" d="M180 17H210.443L233.103 27H249" stroke="url(#paint1_linear_9937_75628)" stroke-width="1.5"/>
|
||||
<path opacity="0.3" d="M7 28H37.4428L60.1027 38H76" stroke="url(#paint2_linear_9937_75628)" stroke-width="1.5"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_9937_75628" x1="132.5" y1="0" x2="132.5" y2="171" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#07428E"/>
|
||||
<stop offset="1" stop-color="#07428E" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear_9937_75628" x1="180" y1="17" x2="247" y2="17" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#20A0FD" stop-opacity="0"/>
|
||||
<stop offset="0.48" stop-color="#20A0FD"/>
|
||||
<stop offset="1" stop-color="#20A0FD" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint2_linear_9937_75628" x1="7" y1="28" x2="74" y2="28" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#20A0FD" stop-opacity="0"/>
|
||||
<stop offset="0.48" stop-color="#20A0FD"/>
|
||||
<stop offset="1" stop-color="#20A0FD" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 307 KiB |
@ -0,0 +1,38 @@
|
||||
export function randomID(length = 6) {
|
||||
return Number(
|
||||
Math.random().toString().substr(3, length) + Date.now()
|
||||
).toString(36);
|
||||
}
|
||||
|
||||
const COLORS = ["#409EFF", "#67C23A", "#E6A23C", "#F56C6C", "#909399"];
|
||||
|
||||
function getRandomNum(min: number, max: number) {
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
function randomColor() {
|
||||
return COLORS[getRandomNum(0, 4)];
|
||||
}
|
||||
|
||||
const website = "https://www.getphotoblanket.com";
|
||||
|
||||
export const getList = ({ page = 1, pageSize = 20 }) => {
|
||||
const url = `${website}/products.json?page=${page}&limit=${pageSize}`;
|
||||
return fetch(url)
|
||||
.then(res => res.json())
|
||||
.then(res => res.products)
|
||||
.then(res => {
|
||||
return res.map((item: any) => {
|
||||
return {
|
||||
id: randomID(),
|
||||
star: false,
|
||||
price: item.variants[0].price,
|
||||
src: {
|
||||
original: item.images[0].src
|
||||
},
|
||||
backgroundColor: randomColor(),
|
||||
name: item.title
|
||||
};
|
||||
});
|
||||
});
|
||||
};
|