Initial import of weiyuan frontend
This commit is contained in:
@@ -0,0 +1,502 @@
|
||||
/*
|
||||
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';
|
||||
import './WeeLogo.css';
|
||||
|
||||
/**
|
||||
* Wee Logo Component
|
||||
* @param {string} style - Logo style: 'minimalist' | 'modern' | 'tech' | 'wave' (default: 'minimalist')
|
||||
* @param {number} size - Logo size in pixels (default: 32)
|
||||
* @param {string} className - Additional CSS classes
|
||||
*/
|
||||
const WeeLogo = ({ style = 'minimalist', size = 32, className = '' }) => {
|
||||
const aspectRatio = 2; // width/height ratio
|
||||
const width = size * aspectRatio;
|
||||
const height = size;
|
||||
|
||||
// Style 1: Minimalist Lines
|
||||
const MinimalistLogo = () => (
|
||||
<svg
|
||||
viewBox='0 0 400 200'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width={width}
|
||||
height={height}
|
||||
className={`wee-logo wee-logo-minimalist ${className}`}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='blueGradient' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' style={{ stopColor: '#4A90E2', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#4A90E2;#2E5C8A;#4A90E2'
|
||||
dur='4s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
<stop offset='100%' style={{ stopColor: '#1E3A5F', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#1E3A5F;#4A90E2;#1E3A5F'
|
||||
dur='4s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
{/* W */}
|
||||
<path
|
||||
className='letter w1'
|
||||
d='M 20 60 L 40 140 L 60 100 L 80 140 L 100 60'
|
||||
strokeWidth='8'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
fill='none'
|
||||
stroke='url(#blueGradient)'
|
||||
/>
|
||||
|
||||
{/* E */}
|
||||
<path
|
||||
className='letter e1'
|
||||
d='M 150 60 L 150 140 M 150 60 L 230 60 M 150 100 L 210 100 M 150 140 L 230 140'
|
||||
strokeWidth='8'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
fill='none'
|
||||
stroke='url(#blueGradient)'
|
||||
/>
|
||||
|
||||
{/* E */}
|
||||
<path
|
||||
className='letter e2'
|
||||
d='M 270 60 L 270 140 M 270 60 L 350 60 M 270 100 L 330 100 M 270 140 L 350 140'
|
||||
strokeWidth='8'
|
||||
strokeLinecap='round'
|
||||
strokeLinejoin='round'
|
||||
fill='none'
|
||||
stroke='url(#blueGradient)'
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// Style 2: Modern Rounded
|
||||
const ModernLogo = () => (
|
||||
<svg
|
||||
viewBox='0 0 420 200'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width={width}
|
||||
height={height}
|
||||
className={`wee-logo wee-logo-modern ${className}`}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='blueGradient2' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' style={{ stopColor: '#5DADE2', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#5DADE2;#3498DB;#2E86C1;#5DADE2'
|
||||
dur='3s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
<stop offset='50%' style={{ stopColor: '#3498DB', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#3498DB;#2E86C1;#5DADE2;#3498DB'
|
||||
dur='3s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
<stop offset='100%' style={{ stopColor: '#2874A6', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#2874A6;#5DADE2;#3498DB;#2874A6'
|
||||
dur='3s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
{/* W */}
|
||||
<g className='w-letter'>
|
||||
<path
|
||||
className='letter'
|
||||
fill='url(#blueGradient2)'
|
||||
d='M 10,50 Q 20,40 30,50 L 35,120 Q 37,130 45,130 Q 53,130 55,120 L 60,80 Q 62,70 70,70 Q 78,70 80,80 L 85,120 Q 87,130 95,130 Q 103,130 105,120 L 110,50 Q 120,40 130,50 L 135,60 L 115,130 Q 110,145 95,145 Q 85,145 80,135 L 70,105 L 60,135 Q 55,145 45,145 Q 30,145 25,130 L 5,60 Z'
|
||||
/>
|
||||
</g>
|
||||
|
||||
{/* First E */}
|
||||
<g className='e1-letter'>
|
||||
<path
|
||||
className='letter'
|
||||
fill='url(#blueGradient2)'
|
||||
d='M 170,50 Q 180,40 200,45 L 240,50 Q 250,52 248,62 Q 246,72 236,70 L 200,65 L 200,90 L 225,92 Q 235,93 233,103 Q 231,113 221,112 L 200,110 L 200,130 L 240,135 Q 250,136 248,146 Q 246,156 236,155 L 200,150 Q 180,148 170,138 Z'
|
||||
/>
|
||||
</g>
|
||||
|
||||
{/* Second E */}
|
||||
<g className='e2-letter'>
|
||||
<path
|
||||
className='letter'
|
||||
fill='url(#blueGradient2)'
|
||||
d='M 280,50 Q 290,40 310,45 L 350,50 Q 360,52 358,62 Q 356,72 346,70 L 310,65 L 310,90 L 335,92 Q 345,93 343,103 Q 341,113 331,112 L 310,110 L 310,130 L 350,135 Q 360,136 358,146 Q 356,156 346,155 L 310,150 Q 290,148 280,138 Z'
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// Style 3: Tech Futuristic
|
||||
const TechLogo = () => (
|
||||
<svg
|
||||
viewBox='0 0 400 200'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width={width}
|
||||
height={height}
|
||||
className={`wee-logo wee-logo-tech ${className}`}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='techGradient' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' style={{ stopColor: '#00D9FF', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#00D9FF;#0099FF;#0066FF;#00D9FF'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
<stop offset='100%' style={{ stopColor: '#0066FF', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#0066FF;#00D9FF;#0099FF;#0066FF'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id='glowGradient' x1='0%' y1='0%' x2='100%' y2='0%'>
|
||||
<stop
|
||||
offset='0%'
|
||||
style={{ stopColor: '#4A90E2', stopOpacity: 0.5 }}
|
||||
/>
|
||||
<stop offset='50%' style={{ stopColor: '#00D9FF', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='offset'
|
||||
values='0;1;0'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
<stop
|
||||
offset='100%'
|
||||
style={{ stopColor: '#4A90E2', stopOpacity: 0.5 }}
|
||||
/>
|
||||
</linearGradient>
|
||||
|
||||
<filter id='glow'>
|
||||
<feGaussianBlur stdDeviation='3' result='coloredBlur' />
|
||||
<feMerge>
|
||||
<feMergeNode in='coloredBlur' />
|
||||
<feMergeNode in='SourceGraphic' />
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
{/* Scan line effect */}
|
||||
<rect
|
||||
className='scan-line'
|
||||
x='0'
|
||||
y='0'
|
||||
width='20'
|
||||
height='200'
|
||||
fill='url(#glowGradient)'
|
||||
opacity='0.3'
|
||||
/>
|
||||
|
||||
{/* W */}
|
||||
<g className='letter-group w-tech'>
|
||||
<text
|
||||
className='letter'
|
||||
x='10'
|
||||
y='140'
|
||||
fontFamily="'Arial Black', sans-serif"
|
||||
fontSize='120'
|
||||
fontWeight='900'
|
||||
fill='url(#techGradient)'
|
||||
stroke='url(#glowGradient)'
|
||||
strokeWidth='2'
|
||||
filter='url(#glow)'
|
||||
>
|
||||
W
|
||||
</text>
|
||||
</g>
|
||||
|
||||
{/* E */}
|
||||
<g className='letter-group e1-tech'>
|
||||
<text
|
||||
className='letter'
|
||||
x='140'
|
||||
y='140'
|
||||
fontFamily="'Arial Black', sans-serif"
|
||||
fontSize='120'
|
||||
fontWeight='900'
|
||||
fill='url(#techGradient)'
|
||||
stroke='url(#glowGradient)'
|
||||
strokeWidth='2'
|
||||
filter='url(#glow)'
|
||||
>
|
||||
E
|
||||
</text>
|
||||
</g>
|
||||
|
||||
{/* E */}
|
||||
<g className='letter-group e2-tech'>
|
||||
<text
|
||||
className='letter'
|
||||
x='260'
|
||||
y='140'
|
||||
fontFamily="'Arial Black', sans-serif"
|
||||
fontSize='120'
|
||||
fontWeight='900'
|
||||
fill='url(#techGradient)'
|
||||
stroke='url(#glowGradient)'
|
||||
strokeWidth='2'
|
||||
filter='url(#glow)'
|
||||
>
|
||||
E
|
||||
</text>
|
||||
</g>
|
||||
|
||||
{/* Grid lines for tech effect */}
|
||||
<line
|
||||
x1='0'
|
||||
y1='180'
|
||||
x2='400'
|
||||
y2='180'
|
||||
stroke='#0099FF'
|
||||
strokeWidth='0.5'
|
||||
opacity='0.3'
|
||||
>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.3;0.6;0.3'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</line>
|
||||
<line
|
||||
x1='0'
|
||||
y1='190'
|
||||
x2='400'
|
||||
y2='190'
|
||||
stroke='#00D9FF'
|
||||
strokeWidth='0.5'
|
||||
opacity='0.2'
|
||||
>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.2;0.5;0.2'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</line>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// Style 4: Wave Flow
|
||||
const WaveLogo = () => (
|
||||
<svg
|
||||
viewBox='0 0 500 220'
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
width={width}
|
||||
height={height}
|
||||
className={`wee-logo wee-logo-wave ${className}`}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id='waveGradient' x1='0%' y1='0%' x2='100%' y2='100%'>
|
||||
<stop offset='0%' style={{ stopColor: '#2193b0', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#2193b0;#6dd5ed;#4facfe;#2193b0'
|
||||
dur='4s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
<stop offset='50%' style={{ stopColor: '#4facfe', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#4facfe;#00f2fe;#2193b0;#4facfe'
|
||||
dur='4s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
<stop offset='100%' style={{ stopColor: '#00f2fe', stopOpacity: 1 }}>
|
||||
<animate
|
||||
attributeName='stop-color'
|
||||
values='#00f2fe;#4facfe;#6dd5ed;#00f2fe'
|
||||
dur='4s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</stop>
|
||||
</linearGradient>
|
||||
|
||||
<filter id='liquid'>
|
||||
<feTurbulence
|
||||
type='fractalNoise'
|
||||
baseFrequency='0.01'
|
||||
numOctaves='3'
|
||||
result='turbulence'
|
||||
>
|
||||
<animate
|
||||
attributeName='baseFrequency'
|
||||
values='0.01;0.02;0.01'
|
||||
dur='10s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</feTurbulence>
|
||||
<feDisplacementMap
|
||||
in='SourceGraphic'
|
||||
in2='turbulence'
|
||||
scale='5'
|
||||
xChannelSelector='R'
|
||||
yChannelSelector='G'
|
||||
/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
{/* Background liquid shapes */}
|
||||
<ellipse
|
||||
className='liquid-bg'
|
||||
cx='100'
|
||||
cy='150'
|
||||
rx='80'
|
||||
ry='60'
|
||||
fill='url(#waveGradient)'
|
||||
opacity='0.1'
|
||||
filter='url(#liquid)'
|
||||
/>
|
||||
<ellipse
|
||||
className='liquid-bg'
|
||||
cx='250'
|
||||
cy='140'
|
||||
rx='90'
|
||||
ry='70'
|
||||
fill='url(#waveGradient)'
|
||||
opacity='0.1'
|
||||
filter='url(#liquid)'
|
||||
style={{ animationDelay: '1s' }}
|
||||
/>
|
||||
<ellipse
|
||||
className='liquid-bg'
|
||||
cx='400'
|
||||
cy='145'
|
||||
rx='85'
|
||||
ry='65'
|
||||
fill='url(#waveGradient)'
|
||||
opacity='0.1'
|
||||
filter='url(#liquid)'
|
||||
style={{ animationDelay: '2s' }}
|
||||
/>
|
||||
|
||||
{/* Wave path for baseline */}
|
||||
<path id='wavePath' d='M 0,140 Q 125,120 250,140 T 500,140' fill='none' />
|
||||
|
||||
{/* Text on wave path */}
|
||||
<text
|
||||
className='wave-text'
|
||||
fontSize='120'
|
||||
fontWeight='900'
|
||||
fill='url(#waveGradient)'
|
||||
fontFamily="'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif"
|
||||
>
|
||||
<textPath href='#wavePath' startOffset='8%'>
|
||||
<tspan className='flow-w'>w</tspan>
|
||||
<tspan className='flow-e1'>e</tspan>
|
||||
<tspan className='flow-e2'>e</tspan>
|
||||
<animate
|
||||
attributeName='startOffset'
|
||||
values='8%;10%;8%'
|
||||
dur='3s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
{/* Decorative dots */}
|
||||
<circle cx='50' cy='100' r='3' fill='#4facfe' opacity='0.6'>
|
||||
<animate
|
||||
attributeName='cy'
|
||||
values='100;95;100'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='450' cy='110' r='3' fill='#2193b0' opacity='0.6'>
|
||||
<animate
|
||||
attributeName='cy'
|
||||
values='110;105;110'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='2.5s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
<circle cx='250' cy='95' r='3' fill='#00f2fe' opacity='0.6'>
|
||||
<animate
|
||||
attributeName='cy'
|
||||
values='95;90;95'
|
||||
dur='2.2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
<animate
|
||||
attributeName='opacity'
|
||||
values='0.6;1;0.6'
|
||||
dur='2.2s'
|
||||
repeatCount='indefinite'
|
||||
/>
|
||||
</circle>
|
||||
</svg>
|
||||
);
|
||||
|
||||
// Select logo style
|
||||
const logos = {
|
||||
minimalist: MinimalistLogo,
|
||||
modern: ModernLogo,
|
||||
tech: TechLogo,
|
||||
wave: WaveLogo,
|
||||
};
|
||||
|
||||
const LogoComponent = logos[style] || MinimalistLogo;
|
||||
|
||||
return <LogoComponent />;
|
||||
};
|
||||
|
||||
export default WeeLogo;
|
||||
Reference in New Issue
Block a user