Initial import of weiyuan frontend
This commit is contained in:
@@ -0,0 +1,953 @@
|
||||
/*
|
||||
Copyright (C) 2025 QuantumNous
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
|
||||
// ========== 无结果插图 ==========
|
||||
export const IllustrationNoResult = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='noResultGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='var(--brand-primary)' />
|
||||
<stop offset='100%' stopColor='var(--brand-gradient-via)' />
|
||||
</linearGradient>
|
||||
<linearGradient id='noResultGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--brand-primary) 12%, #fff)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--brand-primary) 20%, #fff)' />
|
||||
</linearGradient>
|
||||
<filter id='noResultShadow' x='-20%' y='-20%' width='140%' height='140%'>
|
||||
<feDropShadow
|
||||
dx='0'
|
||||
dy='4'
|
||||
stdDeviation='8'
|
||||
floodColor='var(--brand-primary)'
|
||||
floodOpacity='0.15'
|
||||
/>
|
||||
</filter>
|
||||
</defs>
|
||||
{/* 背景装饰圆 */}
|
||||
<circle cx='100' cy='100' r='80' fill='url(#noResultGrad2)' opacity='0.3' />
|
||||
<circle cx='100' cy='100' r='60' fill='url(#noResultGrad2)' opacity='0.5' />
|
||||
{/* 搜索放大镜 */}
|
||||
<g filter='url(#noResultShadow)'>
|
||||
<circle
|
||||
cx='90'
|
||||
cy='85'
|
||||
r='35'
|
||||
stroke='url(#noResultGrad1)'
|
||||
strokeWidth='6'
|
||||
fill='white'
|
||||
/>
|
||||
<line
|
||||
x1='115'
|
||||
y1='110'
|
||||
x2='140'
|
||||
y2='135'
|
||||
stroke='url(#noResultGrad1)'
|
||||
strokeWidth='8'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
</g>
|
||||
{/* X 标记 */}
|
||||
<g opacity='0.8'>
|
||||
<line
|
||||
x1='75'
|
||||
y1='70'
|
||||
x2='105'
|
||||
y2='100'
|
||||
stroke='var(--semi-color-danger)'
|
||||
strokeWidth='4'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
<line
|
||||
x1='105'
|
||||
y1='70'
|
||||
x2='75'
|
||||
y2='100'
|
||||
stroke='var(--semi-color-danger)'
|
||||
strokeWidth='4'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
</g>
|
||||
{/* 装饰点 */}
|
||||
<circle cx='45' cy='60' r='4' fill='var(--brand-primary)' opacity='0.4'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.4;0.8;0.4'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='160' cy='50' r='3' fill='var(--brand-gradient-via)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.5;1;0.5'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='155' cy='140' r='5' fill='var(--brand-gradient-to)' opacity='0.3'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.3;0.7;0.3'
|
||||
dur='3s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
export const IllustrationNoResultDark = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient
|
||||
id='noResultGradDark1'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='var(--brand-gradient-from)' />
|
||||
<stop offset='100%' stopColor='var(--brand-gradient-to)' />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id='noResultGradDark2'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--brand-primary) 25%, #000)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--brand-gradient-via) 25%, #000)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='80'
|
||||
fill='url(#noResultGradDark2)'
|
||||
opacity='0.3'
|
||||
/>
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='60'
|
||||
fill='url(#noResultGradDark2)'
|
||||
opacity='0.5'
|
||||
/>
|
||||
<g>
|
||||
<circle
|
||||
cx='90'
|
||||
cy='85'
|
||||
r='35'
|
||||
stroke='url(#noResultGradDark1)'
|
||||
strokeWidth='6'
|
||||
fill='color-mix(in srgb, var(--brand-primary) 15%, #000)'
|
||||
/>
|
||||
<line
|
||||
x1='115'
|
||||
y1='110'
|
||||
x2='140'
|
||||
y2='135'
|
||||
stroke='url(#noResultGradDark1)'
|
||||
strokeWidth='8'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
</g>
|
||||
<g opacity='0.8'>
|
||||
<line
|
||||
x1='75'
|
||||
y1='70'
|
||||
x2='105'
|
||||
y2='100'
|
||||
stroke='var(--semi-color-danger)'
|
||||
strokeWidth='4'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
<line
|
||||
x1='105'
|
||||
y1='70'
|
||||
x2='75'
|
||||
y2='100'
|
||||
stroke='var(--semi-color-danger)'
|
||||
strokeWidth='4'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
</g>
|
||||
<circle cx='45' cy='60' r='4' fill='var(--brand-gradient-from)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.5;1;0.5'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='160' cy='50' r='3' fill='var(--brand-gradient-to)' opacity='0.6'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='155' cy='140' r='5' fill='var(--brand-primary-hover)' opacity='0.4'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.4;0.8;0.4'
|
||||
dur='3s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// ========== 页面未找到插图 ==========
|
||||
export const IllustrationNotFound = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='notFoundGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='var(--semi-color-warning)' />
|
||||
<stop offset='100%' stopColor='var(--semi-color-danger)' />
|
||||
</linearGradient>
|
||||
<linearGradient id='notFoundGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-warning) 15%, #fff)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--semi-color-danger) 25%, #fff)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
{/* 背景 */}
|
||||
<circle cx='100' cy='100' r='75' fill='url(#notFoundGrad2)' opacity='0.4' />
|
||||
{/* 404 文字 */}
|
||||
<text
|
||||
x='100'
|
||||
y='90'
|
||||
textAnchor='middle'
|
||||
fontSize='48'
|
||||
fontWeight='bold'
|
||||
fill='url(#notFoundGrad1)'
|
||||
>
|
||||
404
|
||||
</text>
|
||||
{/* 底部线条 */}
|
||||
<path
|
||||
d='M50 120 Q100 140 150 120'
|
||||
stroke='url(#notFoundGrad1)'
|
||||
strokeWidth='3'
|
||||
fill='none'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
{/* 问号 */}
|
||||
<text
|
||||
x='100'
|
||||
y='160'
|
||||
textAnchor='middle'
|
||||
fontSize='24'
|
||||
fill='url(#notFoundGrad1)'
|
||||
opacity='0.6'
|
||||
>
|
||||
?
|
||||
</text>
|
||||
{/* 装饰星星 */}
|
||||
<path
|
||||
d='M40 40 L42 48 L50 50 L42 52 L40 60 L38 52 L30 50 L38 48 Z'
|
||||
fill='var(--semi-color-warning)'
|
||||
opacity='0.6'
|
||||
>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='1.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</path>
|
||||
<path
|
||||
d='M160 60 L161.5 66 L168 68 L161.5 70 L160 76 L158.5 70 L152 68 L158.5 66 Z'
|
||||
fill='var(--semi-color-danger)'
|
||||
opacity='0.5'
|
||||
>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.5;0.9;0.5'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</path>
|
||||
</svg>
|
||||
);
|
||||
|
||||
export const IllustrationNotFoundDark = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient
|
||||
id='notFoundGradDark1'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='var(--semi-color-warning)' />
|
||||
<stop offset='100%' stopColor='var(--semi-color-danger)' />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id='notFoundGradDark2'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-warning) 30%, #000)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--semi-color-danger) 30%, #000)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='75'
|
||||
fill='url(#notFoundGradDark2)'
|
||||
opacity='0.4'
|
||||
/>
|
||||
<text
|
||||
x='100'
|
||||
y='90'
|
||||
textAnchor='middle'
|
||||
fontSize='48'
|
||||
fontWeight='bold'
|
||||
fill='url(#notFoundGradDark1)'
|
||||
>
|
||||
404
|
||||
</text>
|
||||
<path
|
||||
d='M50 120 Q100 140 150 120'
|
||||
stroke='url(#notFoundGradDark1)'
|
||||
strokeWidth='3'
|
||||
fill='none'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
<text
|
||||
x='100'
|
||||
y='160'
|
||||
textAnchor='middle'
|
||||
fontSize='24'
|
||||
fill='url(#notFoundGradDark1)'
|
||||
opacity='0.6'
|
||||
>
|
||||
?
|
||||
</text>
|
||||
<path
|
||||
d='M40 40 L42 48 L50 50 L42 52 L40 60 L38 52 L30 50 L38 48 Z'
|
||||
fill='var(--semi-color-warning)'
|
||||
opacity='0.7'
|
||||
>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.7;1;0.7'
|
||||
dur='1.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</path>
|
||||
<path
|
||||
d='M160 60 L161.5 66 L168 68 L161.5 70 L160 76 L158.5 70 L152 68 L158.5 66 Z'
|
||||
fill='var(--semi-color-danger)'
|
||||
opacity='0.6'
|
||||
>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</path>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// ========== 无权限插图 ==========
|
||||
export const IllustrationNoAccess = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='noAccessGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='var(--semi-color-danger)' />
|
||||
<stop offset='100%' stopColor='var(--brand-gradient-via)' />
|
||||
</linearGradient>
|
||||
<linearGradient id='noAccessGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='#fce7f3' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--brand-gradient-via) 10%, #fff)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
{/* 背景 */}
|
||||
<circle cx='100' cy='100' r='75' fill='url(#noAccessGrad2)' opacity='0.5' />
|
||||
{/* 锁身 */}
|
||||
<rect
|
||||
x='65'
|
||||
y='90'
|
||||
width='70'
|
||||
height='55'
|
||||
rx='8'
|
||||
fill='url(#noAccessGrad1)'
|
||||
/>
|
||||
{/* 锁孔 */}
|
||||
<circle cx='100' cy='112' r='8' fill='white' />
|
||||
<rect x='96' y='112' width='8' height='18' rx='2' fill='white' />
|
||||
{/* 锁钩 */}
|
||||
<path
|
||||
d='M75 90 V70 C75 55 85 45 100 45 C115 45 125 55 125 70 V90'
|
||||
stroke='url(#noAccessGrad1)'
|
||||
strokeWidth='8'
|
||||
fill='none'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
{/* 装饰 */}
|
||||
<circle cx='45' cy='70' r='4' fill='var(--semi-color-danger)' opacity='0.4'>
|
||||
<animate
|
||||
attributeName='r'
|
||||
values='4;6;4'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='160' cy='130' r='5' fill='var(--brand-gradient-via)' opacity='0.4'>
|
||||
<animate
|
||||
attributeName='r'
|
||||
values='5;7;5'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
export const IllustrationNoAccessDark = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient
|
||||
id='noAccessGradDark1'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='var(--semi-color-danger)' />
|
||||
<stop offset='100%' stopColor='var(--brand-gradient-to)' />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id='noAccessGradDark2'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-danger) 30%, #000)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--brand-gradient-via) 25%, #000)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='75'
|
||||
fill='url(#noAccessGradDark2)'
|
||||
opacity='0.4'
|
||||
/>
|
||||
<rect
|
||||
x='65'
|
||||
y='90'
|
||||
width='70'
|
||||
height='55'
|
||||
rx='8'
|
||||
fill='url(#noAccessGradDark1)'
|
||||
/>
|
||||
<circle cx='100' cy='112' r='8' fill='color-mix(in srgb, var(--brand-primary) 15%, #000)' />
|
||||
<rect x='96' y='112' width='8' height='18' rx='2' fill='color-mix(in srgb, var(--brand-primary) 15%, #000)' />
|
||||
<path
|
||||
d='M75 90 V70 C75 55 85 45 100 45 C115 45 125 55 125 70 V90'
|
||||
stroke='url(#noAccessGradDark1)'
|
||||
strokeWidth='8'
|
||||
fill='none'
|
||||
strokeLinecap='round'
|
||||
/>
|
||||
<circle cx='45' cy='70' r='4' fill='var(--semi-color-danger)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='r'
|
||||
values='4;6;4'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='160' cy='130' r='5' fill='var(--brand-gradient-to)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='r'
|
||||
values='5;7;5'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// ========== 建设中插图 ==========
|
||||
export const IllustrationConstruction = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='constructGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='var(--semi-color-success)' />
|
||||
<stop offset='100%' stopColor='var(--accent-teal)' />
|
||||
</linearGradient>
|
||||
<linearGradient id='constructGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-success) 15%, #fff)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--accent-teal) 15%, #fff)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
{/* 背景 */}
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='75'
|
||||
fill='url(#constructGrad2)'
|
||||
opacity='0.4'
|
||||
/>
|
||||
{/* 齿轮1 */}
|
||||
<g transform='translate(70, 80)'>
|
||||
<circle
|
||||
cx='20'
|
||||
cy='20'
|
||||
r='15'
|
||||
stroke='url(#constructGrad1)'
|
||||
strokeWidth='4'
|
||||
fill='white'
|
||||
/>
|
||||
<circle cx='20' cy='20' r='6' fill='url(#constructGrad1)' />
|
||||
{[0, 45, 90, 135, 180, 225, 270, 315].map((angle, i) => (
|
||||
<rect
|
||||
key={i}
|
||||
x='17'
|
||||
y='0'
|
||||
width='6'
|
||||
height='8'
|
||||
rx='2'
|
||||
fill='url(#constructGrad1)'
|
||||
transform={`rotate(${angle} 20 20)`}
|
||||
/>
|
||||
))}
|
||||
<animateTransform
|
||||
attributeName='transform'
|
||||
type='rotate'
|
||||
from='0 90 100'
|
||||
to='360 90 100'
|
||||
dur='8s'
|
||||
repeatCount='indefinite'
|
||||
additive='sum'
|
||||
/>
|
||||
</g>
|
||||
{/* 齿轮2 */}
|
||||
<g transform='translate(105, 95)'>
|
||||
<circle
|
||||
cx='15'
|
||||
cy='15'
|
||||
r='12'
|
||||
stroke='url(#constructGrad1)'
|
||||
strokeWidth='3'
|
||||
fill='white'
|
||||
/>
|
||||
<circle cx='15' cy='15' r='5' fill='url(#constructGrad1)' />
|
||||
{[0, 60, 120, 180, 240, 300].map((angle, i) => (
|
||||
<rect
|
||||
key={i}
|
||||
x='13'
|
||||
y='0'
|
||||
width='4'
|
||||
height='6'
|
||||
rx='1'
|
||||
fill='url(#constructGrad1)'
|
||||
transform={`rotate(${angle} 15 15)`}
|
||||
/>
|
||||
))}
|
||||
<animateTransform
|
||||
attributeName='transform'
|
||||
type='rotate'
|
||||
from='360 120 110'
|
||||
to='0 120 110'
|
||||
dur='6s'
|
||||
repeatCount='indefinite'
|
||||
additive='sum'
|
||||
/>
|
||||
</g>
|
||||
{/* 扳手 */}
|
||||
<path
|
||||
d='M55 55 L65 65 L60 70 L50 60 Z'
|
||||
fill='url(#constructGrad1)'
|
||||
opacity='0.7'
|
||||
/>
|
||||
{/* 装饰 */}
|
||||
<circle cx='150' cy='50' r='4' fill='var(--semi-color-success)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.5;1;0.5'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='50' cy='150' r='3' fill='var(--accent-teal)' opacity='0.4'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.4;0.8;0.4'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
export const IllustrationConstructionDark = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient
|
||||
id='constructGradDark1'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='var(--semi-color-success)' />
|
||||
<stop offset='100%' stopColor='var(--accent-teal)' />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id='constructGradDark2'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-success) 25%, #000)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--accent-teal) 25%, #000)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='75'
|
||||
fill='url(#constructGradDark2)'
|
||||
opacity='0.4'
|
||||
/>
|
||||
<g transform='translate(70, 80)'>
|
||||
<circle
|
||||
cx='20'
|
||||
cy='20'
|
||||
r='15'
|
||||
stroke='url(#constructGradDark1)'
|
||||
strokeWidth='4'
|
||||
fill='#0f172a'
|
||||
/>
|
||||
<circle cx='20' cy='20' r='6' fill='url(#constructGradDark1)' />
|
||||
{[0, 45, 90, 135, 180, 225, 270, 315].map((angle, i) => (
|
||||
<rect
|
||||
key={i}
|
||||
x='17'
|
||||
y='0'
|
||||
width='6'
|
||||
height='8'
|
||||
rx='2'
|
||||
fill='url(#constructGradDark1)'
|
||||
transform={`rotate(${angle} 20 20)`}
|
||||
/>
|
||||
))}
|
||||
<animateTransform
|
||||
attributeName='transform'
|
||||
type='rotate'
|
||||
from='0 90 100'
|
||||
to='360 90 100'
|
||||
dur='8s'
|
||||
repeatCount='indefinite'
|
||||
additive='sum'
|
||||
/>
|
||||
</g>
|
||||
<g transform='translate(105, 95)'>
|
||||
<circle
|
||||
cx='15'
|
||||
cy='15'
|
||||
r='12'
|
||||
stroke='url(#constructGradDark1)'
|
||||
strokeWidth='3'
|
||||
fill='#0f172a'
|
||||
/>
|
||||
<circle cx='15' cy='15' r='5' fill='url(#constructGradDark1)' />
|
||||
{[0, 60, 120, 180, 240, 300].map((angle, i) => (
|
||||
<rect
|
||||
key={i}
|
||||
x='13'
|
||||
y='0'
|
||||
width='4'
|
||||
height='6'
|
||||
rx='1'
|
||||
fill='url(#constructGradDark1)'
|
||||
transform={`rotate(${angle} 15 15)`}
|
||||
/>
|
||||
))}
|
||||
<animateTransform
|
||||
attributeName='transform'
|
||||
type='rotate'
|
||||
from='360 120 110'
|
||||
to='0 120 110'
|
||||
dur='6s'
|
||||
repeatCount='indefinite'
|
||||
additive='sum'
|
||||
/>
|
||||
</g>
|
||||
<path
|
||||
d='M55 55 L65 65 L60 70 L50 60 Z'
|
||||
fill='url(#constructGradDark1)'
|
||||
opacity='0.7'
|
||||
/>
|
||||
<circle cx='150' cy='50' r='4' fill='var(--semi-color-success)' opacity='0.6'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='50' cy='150' r='3' fill='var(--accent-teal)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.5;0.9;0.5'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// ========== 无内容插图 ==========
|
||||
export const IllustrationNoContent = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='noContentGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='var(--accent-blue)' />
|
||||
<stop offset='100%' stopColor='var(--brand-gradient-via)' />
|
||||
</linearGradient>
|
||||
<linearGradient id='noContentGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--accent-blue) 12%, #fff)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--brand-gradient-via) 10%, #fff)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
{/* 背景 */}
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='75'
|
||||
fill='url(#noContentGrad2)'
|
||||
opacity='0.4'
|
||||
/>
|
||||
{/* 文件夹 */}
|
||||
<path
|
||||
d='M50 70 L50 140 C50 145 55 150 60 150 L140 150 C145 150 150 145 150 140 L150 85 C150 80 145 75 140 75 L100 75 L90 65 L60 65 C55 65 50 70 50 75 Z'
|
||||
fill='url(#noContentGrad1)'
|
||||
opacity='0.9'
|
||||
/>
|
||||
<path
|
||||
d='M50 85 L150 85 L150 140 C150 145 145 150 140 150 L60 150 C55 150 50 145 50 140 Z'
|
||||
fill='white'
|
||||
opacity='0.9'
|
||||
/>
|
||||
{/* 虚线 */}
|
||||
<line
|
||||
x1='70'
|
||||
y1='105'
|
||||
x2='130'
|
||||
y2='105'
|
||||
stroke='url(#noContentGrad1)'
|
||||
strokeWidth='3'
|
||||
strokeDasharray='8,4'
|
||||
opacity='0.5'
|
||||
/>
|
||||
<line
|
||||
x1='70'
|
||||
y1='120'
|
||||
x2='110'
|
||||
y2='120'
|
||||
stroke='url(#noContentGrad1)'
|
||||
strokeWidth='3'
|
||||
strokeDasharray='8,4'
|
||||
opacity='0.3'
|
||||
/>
|
||||
<line
|
||||
x1='70'
|
||||
y1='135'
|
||||
x2='90'
|
||||
y2='135'
|
||||
stroke='url(#noContentGrad1)'
|
||||
strokeWidth='3'
|
||||
strokeDasharray='8,4'
|
||||
opacity='0.2'
|
||||
/>
|
||||
{/* 装饰 */}
|
||||
<circle cx='160' cy='55' r='4' fill='var(--accent-blue)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.5;1;0.5'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='40' cy='145' r='3' fill='var(--brand-gradient-via)' opacity='0.4'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.4;0.8;0.4'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
export const IllustrationNoContentDark = ({ style = {} }) => (
|
||||
<svg
|
||||
viewBox='0 0 200 200'
|
||||
fill='none'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
style={{ width: 150, height: 150, ...style }}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient
|
||||
id='noContentGradDark1'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='var(--accent-blue)' />
|
||||
<stop offset='100%' stopColor='var(--brand-gradient-to)' />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id='noContentGradDark2'
|
||||
x1='0%'
|
||||
y1='0%'
|
||||
x2='100%'
|
||||
y2='100%'
|
||||
>
|
||||
<stop offset='0%' stopColor='color-mix(in srgb, var(--accent-blue) 25%, #000)' />
|
||||
<stop offset='100%' stopColor='color-mix(in srgb, var(--brand-gradient-via) 25%, #000)' />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle
|
||||
cx='100'
|
||||
cy='100'
|
||||
r='75'
|
||||
fill='url(#noContentGradDark2)'
|
||||
opacity='0.3'
|
||||
/>
|
||||
<path
|
||||
d='M50 70 L50 140 C50 145 55 150 60 150 L140 150 C145 150 150 145 150 140 L150 85 C150 80 145 75 140 75 L100 75 L90 65 L60 65 C55 65 50 70 50 75 Z'
|
||||
fill='url(#noContentGradDark1)'
|
||||
opacity='0.9'
|
||||
/>
|
||||
<path
|
||||
d='M50 85 L150 85 L150 140 C150 145 145 150 140 150 L60 150 C55 150 50 145 50 140 Z'
|
||||
fill='color-mix(in srgb, var(--brand-primary) 15%, #000)'
|
||||
opacity='0.9'
|
||||
/>
|
||||
<line
|
||||
x1='70'
|
||||
y1='105'
|
||||
x2='130'
|
||||
y2='105'
|
||||
stroke='url(#noContentGradDark1)'
|
||||
strokeWidth='3'
|
||||
strokeDasharray='8,4'
|
||||
opacity='0.5'
|
||||
/>
|
||||
<line
|
||||
x1='70'
|
||||
y1='120'
|
||||
x2='110'
|
||||
y2='120'
|
||||
stroke='url(#noContentGradDark1)'
|
||||
strokeWidth='3'
|
||||
strokeDasharray='8,4'
|
||||
opacity='0.3'
|
||||
/>
|
||||
<line
|
||||
x1='70'
|
||||
y1='135'
|
||||
x2='90'
|
||||
y2='135'
|
||||
stroke='url(#noContentGradDark1)'
|
||||
strokeWidth='3'
|
||||
strokeDasharray='8,4'
|
||||
opacity='0.2'
|
||||
/>
|
||||
<circle cx='160' cy='55' r='4' fill='var(--accent-blue)' opacity='0.6'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='40' cy='145' r='3' fill='var(--brand-gradient-to)' opacity='0.5'>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.5;0.9;0.5'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
Reference in New Issue
Block a user