Initial import of weiyuan frontend

This commit is contained in:
qiubaishen
2026-10-15 16:33:46 +08:00
commit d8f3aee261
774 changed files with 374914 additions and 0 deletions
@@ -0,0 +1,34 @@
/*
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';
const DiscordIcon = ({ style = {}, ...props }) => {
return (
<svg
viewBox='0 0 24 24'
fill='currentColor'
style={{ width: '20px', height: '20px', ...style }}
{...props}
>
<path d='M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z' />
</svg>
);
};
export default DiscordIcon;
+169
View File
@@ -0,0 +1,169 @@
/* Dolphin Logo Styles - 海豚图标动画样式 */
.dolphin-logo {
display: inline-block;
overflow: visible;
}
/* 整体游泳动画 */
.dolphin-animated .dolphin-body {
animation: dolphinSwim 3s ease-in-out infinite;
transform-origin: center center;
}
@keyframes dolphinSwim {
0%,
100% {
transform: translateY(0) rotate(0deg);
}
25% {
transform: translateY(-3px) rotate(-2deg);
}
50% {
transform: translateY(0) rotate(0deg);
}
75% {
transform: translateY(2px) rotate(2deg);
}
}
/* 尾巴摆动 */
.dolphin-animated .dolphin-tail {
animation: tailWag 0.8s ease-in-out infinite;
transform-origin: 20px 48px;
}
@keyframes tailWag {
0%,
100% {
transform: rotate(0deg);
}
50% {
transform: rotate(-8deg);
}
}
/* 背鳍微动 */
.dolphin-animated .dolphin-fin {
animation: finMove 2s ease-in-out infinite;
transform-origin: 45px 25px;
}
@keyframes finMove {
0%,
100% {
transform: rotate(0deg);
}
50% {
transform: rotate(-3deg);
}
}
/* 胸鳍划水 */
.dolphin-animated .dolphin-pectoral {
animation: pectoralMove 1.5s ease-in-out infinite;
transform-origin: 38px 55px;
}
@keyframes pectoralMove {
0%,
100% {
transform: rotate(0deg);
}
50% {
transform: rotate(5deg);
}
}
/* 眼睛眨眼 */
.dolphin-animated .dolphin-eye {
animation: blink 4s ease-in-out infinite;
}
@keyframes blink {
0%,
45%,
55%,
100% {
transform: scaleY(1);
}
50% {
transform: scaleY(0.1);
}
}
/* 眼睛高光闪烁 */
.dolphin-animated .dolphin-eye-highlight {
animation: eyeSparkle 2s ease-in-out infinite;
}
@keyframes eyeSparkle {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
/* 光泽流动 */
.dolphin-animated .dolphin-shine {
animation: shineMove 3s ease-in-out infinite;
}
@keyframes shineMove {
0%,
100% {
opacity: 0.8;
transform: translateX(0);
}
50% {
opacity: 0.4;
transform: translateX(2px);
}
}
/* 气泡上浮已在 SVG 中定义 */
/* 悬停效果 */
.dolphin-logo:hover .dolphin-body {
animation: dolphinJump 0.6s ease-out;
}
@keyframes dolphinJump {
0% {
transform: translateY(0) rotate(0deg);
}
30% {
transform: translateY(-8px) rotate(-5deg);
}
60% {
transform: translateY(-4px) rotate(3deg);
}
100% {
transform: translateY(0) rotate(0deg);
}
}
/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
.dolphin-logo {
filter: brightness(1.1);
}
}
/* 禁用动画时的静态样式 */
.dolphin-logo:not(.dolphin-animated) .dolphin-body,
.dolphin-logo:not(.dolphin-animated) .dolphin-tail,
.dolphin-logo:not(.dolphin-animated) .dolphin-fin,
.dolphin-logo:not(.dolphin-animated) .dolphin-pectoral,
.dolphin-logo:not(.dolphin-animated) .dolphin-eye,
.dolphin-logo:not(.dolphin-animated) .dolphin-eye-highlight,
.dolphin-logo:not(.dolphin-animated) .dolphin-shine {
animation: none;
}
.dolphin-logo:not(.dolphin-animated) .bubbles {
display: none;
}
+327
View File
@@ -0,0 +1,327 @@
/*
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 './DolphinLogo.css';
/**
* Dolphin Logo Component - 海豚动画图标
* @param {number} size - Logo 大小(像素),默认 32
* @param {string} className - 额外的 CSS 类名
* @param {boolean} animated - 是否启用动画,默认 true
*/
const DolphinLogo = ({ size = 32, className = '', animated = true }) => {
return (
<svg
viewBox='0 0 100 100'
xmlns='http://www.w3.org/2000/svg'
width={size}
height={size}
className={`dolphin-logo ${animated ? 'dolphin-animated' : ''} ${className}`}
>
<defs>
{/* 主渐变 - 海洋蓝 */}
<linearGradient
id='dolphinGradient'
x1='0%'
y1='0%'
x2='100%'
y2='100%'
>
<stop offset='0%' stopColor='#4facfe'>
<animate
attributeName='stop-color'
values='#4facfe;#00f2fe;#38bdf8;#4facfe'
dur='4s'
repeatCount='indefinite'
/>
</stop>
<stop offset='50%' stopColor='#00c6fb'>
<animate
attributeName='stop-color'
values='#00c6fb;#4facfe;#00f2fe;#00c6fb'
dur='4s'
repeatCount='indefinite'
/>
</stop>
<stop offset='100%' stopColor='#005bea'>
<animate
attributeName='stop-color'
values='#005bea;#0083b0;#4facfe;#005bea'
dur='4s'
repeatCount='indefinite'
/>
</stop>
</linearGradient>
{/* 腹部渐变 - 浅色 */}
<linearGradient id='bellyGradient' x1='0%' y1='0%' x2='0%' y2='100%'>
<stop offset='0%' stopColor='#e0f7ff' />
<stop offset='100%' stopColor='#b8e8fc' />
</linearGradient>
{/* 光泽效果 */}
<linearGradient id='shineGradient' x1='0%' y1='0%' x2='100%' y2='100%'>
<stop offset='0%' stopColor='#ffffff' stopOpacity='0.6' />
<stop offset='50%' stopColor='#ffffff' stopOpacity='0.2' />
<stop offset='100%' stopColor='#ffffff' stopOpacity='0' />
</linearGradient>
{/* 阴影滤镜 */}
<filter id='dolphinShadow' x='-20%' y='-20%' width='140%' height='140%'>
<feDropShadow
dx='0'
dy='2'
stdDeviation='2'
floodColor='#0066cc'
floodOpacity='0.3'
/>
</filter>
{/* 水波纹效果 */}
<filter id='waterRipple'>
<feTurbulence
type='fractalNoise'
baseFrequency='0.02'
numOctaves='2'
result='turbulence'
>
<animate
attributeName='baseFrequency'
values='0.02;0.025;0.02'
dur='3s'
repeatCount='indefinite'
/>
</feTurbulence>
<feDisplacementMap
in='SourceGraphic'
in2='turbulence'
scale='1'
xChannelSelector='R'
yChannelSelector='G'
/>
</filter>
</defs>
{/* 海豚主体 */}
<g className='dolphin-body' filter='url(#dolphinShadow)'>
{/* 身体 */}
<path
className='dolphin-main'
d='M 75 45
C 80 35, 78 25, 70 22
C 62 19, 50 20, 42 25
C 34 30, 25 38, 20 48
C 15 58, 18 68, 28 72
C 38 76, 55 74, 68 65
C 78 58, 82 50, 75 45
Z'
fill='url(#dolphinGradient)'
/>
{/* 腹部 */}
<path
className='dolphin-belly'
d='M 68 52
C 65 58, 55 65, 42 66
C 32 67, 25 63, 24 56
C 23 50, 28 44, 38 42
C 50 40, 62 44, 68 52
Z'
fill='url(#bellyGradient)'
opacity='0.9'
/>
{/* 嘴巴/吻部 */}
<path
className='dolphin-snout'
d='M 70 22
C 75 20, 82 22, 88 28
C 85 30, 78 30, 72 28
C 70 26, 70 24, 70 22
Z'
fill='url(#dolphinGradient)'
/>
{/* 背鳍 */}
<path
className='dolphin-fin'
d='M 45 25
C 48 18, 52 12, 50 8
C 48 12, 44 18, 42 25
Z'
fill='url(#dolphinGradient)'
/>
{/* 胸鳍 */}
<path
className='dolphin-pectoral'
d='M 38 55
C 32 58, 25 65, 20 70
C 22 68, 28 62, 35 58
C 36 56, 37 55, 38 55
Z'
fill='url(#dolphinGradient)'
/>
{/* 尾鳍 */}
<path
className='dolphin-tail'
d='M 20 48
C 14 42, 8 38, 5 42
C 8 45, 12 48, 15 52
M 20 48
C 14 54, 8 58, 5 54
C 8 52, 12 50, 15 48
Z'
fill='url(#dolphinGradient)'
/>
{/* 眼睛 */}
<ellipse
className='dolphin-eye'
cx='62'
cy='32'
rx='3'
ry='3.5'
fill='#1a365d'
/>
{/* 眼睛高光 */}
<ellipse
className='dolphin-eye-highlight'
cx='63'
cy='31'
rx='1'
ry='1.2'
fill='#ffffff'
/>
{/* 身体光泽 */}
<path
className='dolphin-shine'
d='M 55 28
C 60 26, 65 28, 68 32
C 65 30, 58 28, 52 30
C 50 31, 52 29, 55 28
Z'
fill='url(#shineGradient)'
/>
{/* 微笑线条 */}
<path
className='dolphin-smile'
d='M 75 28 Q 80 30, 84 28'
fill='none'
stroke='#1a365d'
strokeWidth='1'
strokeLinecap='round'
opacity='0.5'
/>
</g>
{/* 水花气泡 */}
<g className='bubbles'>
<circle
className='bubble bubble-1'
cx='15'
cy='75'
r='2'
fill='#4facfe'
opacity='0.6'
>
<animate
attributeName='cy'
values='75;65;55'
dur='2s'
repeatCount='indefinite'
/>
<animate
attributeName='opacity'
values='0.6;0.3;0'
dur='2s'
repeatCount='indefinite'
/>
<animate
attributeName='r'
values='2;3;2'
dur='2s'
repeatCount='indefinite'
/>
</circle>
<circle
className='bubble bubble-2'
cx='22'
cy='80'
r='1.5'
fill='#00c6fb'
opacity='0.5'
>
<animate
attributeName='cy'
values='80;68;56'
dur='2.5s'
repeatCount='indefinite'
/>
<animate
attributeName='opacity'
values='0.5;0.2;0'
dur='2.5s'
repeatCount='indefinite'
/>
<animate
attributeName='r'
values='1.5;2.5;1.5'
dur='2.5s'
repeatCount='indefinite'
/>
</circle>
<circle
className='bubble bubble-3'
cx='10'
cy='82'
r='1'
fill='#38bdf8'
opacity='0.4'
>
<animate
attributeName='cy'
values='82;72;62'
dur='3s'
repeatCount='indefinite'
/>
<animate
attributeName='opacity'
values='0.4;0.2;0'
dur='3s'
repeatCount='indefinite'
/>
<animate
attributeName='r'
values='1;2;1'
dur='3s'
repeatCount='indefinite'
/>
</circle>
</g>
</svg>
);
};
export default DolphinLogo;
@@ -0,0 +1,56 @@
/*
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 { Icon } from '@douyinfe/semi-ui';
const LinuxDoIcon = (props) => {
function CustomIcon() {
return (
<svg
className='icon'
viewBox='0 0 16 16'
version='1.1'
xmlns='http://www.w3.org/2000/svg'
width='1em'
height='1em'
{...props}
>
<g id='linuxdo_icon' data-name='linuxdo_icon'>
<path
d='m7.44,0s.09,0,.13,0c.09,0,.19,0,.28,0,.14,0,.29,0,.43,0,.09,0,.18,0,.27,0q.12,0,.25,0t.26.08c.15.03.29.06.44.08,1.97.38,3.78,1.47,4.95,3.11.04.06.09.12.13.18.67.96,1.15,2.11,1.3,3.28q0,.19.09.26c0,.15,0,.29,0,.44,0,.04,0,.09,0,.13,0,.09,0,.19,0,.28,0,.14,0,.29,0,.43,0,.09,0,.18,0,.27,0,.08,0,.17,0,.25q0,.19-.08.26c-.03.15-.06.29-.08.44-.38,1.97-1.47,3.78-3.11,4.95-.06.04-.12.09-.18.13-.96.67-2.11,1.15-3.28,1.3q-.19,0-.26.09c-.15,0-.29,0-.44,0-.04,0-.09,0-.13,0-.09,0-.19,0-.28,0-.14,0-.29,0-.43,0-.09,0-.18,0-.27,0-.08,0-.17,0-.25,0q-.19,0-.26-.08c-.15-.03-.29-.06-.44-.08-1.97-.38-3.78-1.47-4.95-3.11q-.07-.09-.13-.18c-.67-.96-1.15-2.11-1.3-3.28q0-.19-.09-.26c0-.15,0-.29,0-.44,0-.04,0-.09,0-.13,0-.09,0-.19,0-.28,0-.14,0-.29,0-.43,0-.09,0-.18,0-.27,0-.08,0-.17,0-.25q0-.19.08-.26c.03-.15.06-.29.08-.44.38-1.97,1.47-3.78,3.11-4.95.06-.04.12-.09.18-.13C4.42.73,5.57.26,6.74.1,7,.07,7.15,0,7.44,0Z'
fill='#EFEFEF'
/>
<path
d='m1.27,11.33h13.45c-.94,1.89-2.51,3.21-4.51,3.88-1.99.59-3.96.37-5.8-.57-1.25-.7-2.67-1.9-3.14-3.3Z'
fill='#FEB005'
/>
<path
d='m12.54,1.99c.87.7,1.82,1.59,2.18,2.68H1.27c.87-1.74,2.33-3.13,4.2-3.78,2.44-.79,5-.47,7.07,1.1Z'
fill='#1D1D1F'
/>
</g>
</svg>
);
}
return <Icon svg={<CustomIcon />} />;
};
export default LinuxDoIcon;
+57
View File
@@ -0,0 +1,57 @@
/*
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 { Icon } from '@douyinfe/semi-ui';
const OIDCIcon = (props) => {
function CustomIcon() {
return (
<svg
t='1723135116886'
className='icon'
viewBox='0 0 1024 1024'
version='1.1'
xmlns='http://www.w3.org/2000/svg'
p-id='10969'
width='20'
height='20'
>
<path
d='M512 960C265 960 64 759 64 512S265 64 512 64s448 201 448 448-201 448-448 448z m0-882.6c-239.7 0-434.6 195-434.6 434.6s195 434.6 434.6 434.6 434.6-195 434.6-434.6S751.7 77.4 512 77.4z'
p-id='10970'
fill='#2c2c2c'
stroke='#2c2c2c'
stroke-width='60'
></path>
<path
d='M197.7 512c0-78.3 31.6-98.8 87.2-98.8 56.2 0 87.2 20.5 87.2 98.8s-31 98.8-87.2 98.8c-55.7 0-87.2-20.5-87.2-98.8z m130.4 0c0-46.8-7.8-64.5-43.2-64.5-35.2 0-42.9 17.7-42.9 64.5 0 47.1 7.8 63.7 42.9 63.7 35.4 0 43.2-16.6 43.2-63.7zM409.7 415.9h42.1V608h-42.1V415.9zM653.9 512c0 74.2-37.1 96.1-93.6 96.1h-65.9V415.9h65.9c56.5 0 93.6 16.1 93.6 96.1z m-43.5 0c0-49.3-17.7-60.6-52.3-60.6h-21.6v120.7h21.6c35.4 0 52.3-13.3 52.3-60.1zM686.5 512c0-74.2 36.3-98.8 92.7-98.8 18.3 0 33.2 2.2 44.8 6.4v36.3c-11.9-4.2-26-6.6-42.1-6.6-34.6 0-49.8 15.5-49.8 62.6 0 50.1 15.2 62.6 49.3 62.6 15.8 0 30.2-2.2 44.8-7.5v36c-11.3 4.7-28.5 8-46.8 8-56.1-0.2-92.9-18.7-92.9-99z'
p-id='10971'
fill='#2c2c2c'
stroke='#2c2c2c'
stroke-width='20'
></path>
</svg>
);
}
return <Icon svg={<CustomIcon />} />;
};
export default OIDCIcon;
+246
View File
@@ -0,0 +1,246 @@
# WeeLogo 组件使用说明
## 简介
WeeLogo 是一个基于 SVG 的动画 Logo 组件,提供 4 种不同的视觉风格。这个组件从原始的 HTML logo 文件中提取并转换为 React 组件。
## 可用风格
1. **minimalist** - 极简线条风格(默认)
- 简洁的线条设计
- 柔和的渐变动画
- 适合现代简约的界面
2. **modern** - 现代圆润风格
- 圆润的形状设计
- 浮动动画效果
- 适合友好、亲和的界面
3. **tech** - 科技未来风格
- 科技感强烈的发光效果
- 扫描线动画
- 适合科技、创新主题
4. **wave** - 波浪流动风格
- 流畅的波浪效果
- 液态动画
- 适合创意、动态的界面
## 基本使用
### 导入组件
```jsx
import WeeLogo from '../../components/common/logo/WeeLogo';
```
### 使用示例
#### 1. 默认使用(极简风格,32px)
```jsx
<WeeLogo />
```
#### 2. 指定风格
```jsx
<WeeLogo style="modern" />
<WeeLogo style="tech" />
<WeeLogo style="wave" />
```
#### 3. 自定义大小
```jsx
{
/* 64px 高度 */
}
<WeeLogo size={64} />;
{
/* 48px 高度 */
}
<WeeLogo style='tech' size={48} />;
```
#### 4. 添加自定义样式
```jsx
<WeeLogo style='modern' size={40} className='my-custom-class' />
```
## 在 HeaderLogo 中使用
HeaderLogo 组件已经集成了 WeeLogo 支持:
```jsx
<HeaderLogo
useSvgLogo={true} // 启用 SVG logo
logoStyle='minimalist' // 选择风格
// ... 其他 props
/>
```
### 完整示例
```jsx
import React from 'react';
import HeaderLogo from './components/layout/headerbar/HeaderLogo';
function App() {
return (
<HeaderLogo
isMobile={false}
isConsoleRoute={false}
logo='/path/to/fallback-logo.png'
logoLoaded={true}
isLoading={false}
systemName='My System'
isSelfUseMode={false}
isDemoSiteMode={false}
t={(key) => key}
useSvgLogo={true} // 使用 SVG logo
logoStyle='tech' // 科技风格
/>
);
}
```
## Props 说明
### WeeLogo
| Prop | 类型 | 默认值 | 说明 |
| --------- | ------ | ------------ | ------------------------------------------------------- |
| style | string | 'minimalist' | Logo 风格: 'minimalist' \| 'modern' \| 'tech' \| 'wave' |
| size | number | 32 | Logo 高度(像素),宽度自动按 2:1 比例计算 |
| className | string | '' | 自定义 CSS 类名 |
### HeaderLogo (新增 Props)
| Prop | 类型 | 默认值 | 说明 |
| ---------- | ------- | ------------ | -------------------------- |
| useSvgLogo | boolean | false | 是否使用 SVG logo 而非图片 |
| logoStyle | string | 'minimalist' | SVG logo 风格 |
## 样式自定义
可以通过 CSS 覆盖默认样式:
```css
/* 修改动画速度 */
.wee-logo-minimalist .letter {
animation-duration: 5s !important;
}
/* 修改颜色(需要修改 SVG gradient) */
.my-custom-logo {
filter: hue-rotate(45deg);
}
/* 修改大小(也可以用 size prop) */
.wee-logo {
transform: scale(1.5);
}
```
## 注意事项
1. **性能**: SVG 动画比图片稍微占用更多 CPU,但在现代浏览器中性能表现良好
2. **兼容性**: 所有现代浏览器都支持 SVG 动画,包括移动端
3. **尺寸**: Logo 的宽高比固定为 2:1,只需设置高度即可
4. **主题**: Logo 动画颜色是硬编码的,如需适配深色/浅色主题,可能需要添加额外的 CSS
## 迁移指南
### 从图片 Logo 迁移到 SVG Logo
**之前:**
```jsx
<HeaderLogo
logo='/logo.png'
logoLoaded={true}
// ...
/>
```
**之后:**
```jsx
<HeaderLogo
logo='/logo.png' // 保留作为后备
logoLoaded={true}
useSvgLogo={true} // 启用 SVG
logoStyle='minimalist' // 选择风格
// ...
/>
```
## 文件位置
- 组件: `web/src/components/common/logo/WeeLogo.jsx`
- 样式: `web/src/components/common/logo/WeeLogo.css`
- 原始设计: `web/src/components/common/logo/wee-logo-style*.html`
## 示例页面
可以创建一个专门的页面来展示所有 Logo 风格:
```jsx
import React from 'react';
import WeeLogo from './components/common/logo/WeeLogo';
function LogoShowcase() {
const styles = ['minimalist', 'modern', 'tech', 'wave'];
return (
<div style={{ padding: '40px' }}>
<h1>WeeLogo 风格展示</h1>
<div
style={{
display: 'grid',
gridTemplateColumns: 'repeat(2, 1fr)',
gap: '40px',
}}
>
{styles.map((style) => (
<div
key={style}
style={{
padding: '20px',
background: style === 'tech' ? '#0a0e27' : '#f5f5f5',
borderRadius: '10px',
textAlign: 'center',
}}
>
<h3>{style}</h3>
<WeeLogo style={style} size={48} />
</div>
))}
</div>
</div>
);
}
export default LogoShowcase;
```
## 故障排除
### Logo 不显示
- 检查 WeeLogo.css 是否正确导入
- 检查浏览器控制台是否有错误
- 确认 style prop 的值是有效的
### 动画不流畅
- 检查是否同时显示了太多动画元素
- 考虑在移动设备上禁用复杂动画
### 大小不正确
- 确认 size prop 是数字类型,不是字符串
- 检查父容器是否有限制大小的样式
+55
View File
@@ -0,0 +1,55 @@
/*
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 { Icon } from '@douyinfe/semi-ui';
const WeChatIcon = () => {
function CustomIcon() {
return (
<svg
t='1709714447384'
className='icon'
viewBox='0 0 1024 1024'
version='1.1'
xmlns='http://www.w3.org/2000/svg'
p-id='5091'
width='20'
height='20'
>
<path
d='M690.1 377.4c5.9 0 11.8 0.2 17.6 0.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6 5.5 3.9 9.1 10.3 9.1 17.6 0 2.4-0.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-0.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-0.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4 0.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-0.1 17.8-0.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8z m-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1z m-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1z'
p-id='5092'
></path>
<path
d='M866.7 792.7c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-0.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7 2.4 0 4.7-0.9 6.4-2.6 1.7-1.7 2.6-4 2.6-6.4 0-2.2-0.9-4.4-1.4-6.6-0.3-1.2-7.6-28.3-12.2-45.3-0.5-1.9-0.9-3.8-0.9-5.7 0.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9z m179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c-0.1 19.8-16.2 35.9-36 35.9z'
p-id='5093'
></path>
</svg>
);
}
return (
<div>
<Icon svg={<CustomIcon />} />
</div>
);
};
export default WeChatIcon;
+144
View File
@@ -0,0 +1,144 @@
/* Wee Logo Styles */
.wee-logo {
display: inline-block;
overflow: visible;
}
/* Minimalist Style */
.wee-logo-minimalist .letter {
animation: pulse 3s ease-in-out infinite;
}
.wee-logo-minimalist .w1 {
animation-delay: 0s;
}
.wee-logo-minimalist .e1 {
animation-delay: 0.3s;
}
.wee-logo-minimalist .e2 {
animation-delay: 0.6s;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
/* Modern Style */
.wee-logo-modern .w-letter,
.wee-logo-modern .e1-letter,
.wee-logo-modern .e2-letter {
animation: float 2s ease-in-out infinite;
transform-origin: center;
}
.wee-logo-modern .e1-letter {
animation-delay: 0.2s;
}
.wee-logo-modern .e2-letter {
animation-delay: 0.4s;
}
@keyframes float {
0%,
100% {
transform: translateY(0px);
}
50% {
transform: translateY(-2px);
}
}
/* Tech Style */
.wee-logo-tech .letter-group {
animation: glow 2s ease-in-out infinite;
}
.wee-logo-tech .w-tech {
animation-delay: 0s;
}
.wee-logo-tech .e1-tech {
animation-delay: 0.3s;
}
.wee-logo-tech .e2-tech {
animation-delay: 0.6s;
}
.wee-logo-tech .scan-line {
animation: scan 3s ease-in-out infinite;
}
@keyframes glow {
0%,
100% {
filter: drop-shadow(0 0 2px rgba(74, 144, 226, 0.4))
drop-shadow(0 0 4px rgba(74, 144, 226, 0.3));
}
50% {
filter: drop-shadow(0 0 4px rgba(74, 144, 226, 0.6))
drop-shadow(0 0 8px rgba(74, 144, 226, 0.4));
}
}
@keyframes scan {
0% {
transform: translateX(-100%);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: translateX(500%);
opacity: 0;
}
}
/* Wave Style */
.wee-logo-wave .liquid-bg {
animation: liquidMove 8s ease-in-out infinite;
}
.wee-logo-wave .flow-w,
.wee-logo-wave .flow-e1,
.wee-logo-wave .flow-e2 {
animation: flowText 2s ease-in-out infinite alternate;
}
.wee-logo-wave .flow-e1 {
animation-delay: 0.2s;
}
.wee-logo-wave .flow-e2 {
animation-delay: 0.4s;
}
@keyframes liquidMove {
0%,
100% {
transform: translateY(0) scale(1);
}
50% {
transform: translateY(-2px) scale(1.01);
}
}
@keyframes flowText {
0% {
transform: translateX(0);
}
100% {
transform: translateX(2px);
}
}
+502
View File
@@ -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;
@@ -0,0 +1,160 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wee Logo - Style 1: Minimalist Lines</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f5f5f5;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.container {
text-align: center;
}
.logo-container {
background: white;
padding: 60px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
svg {
width: 400px;
height: 200px;
}
.letter {
fill: url(#blueGradient);
stroke-width: 0;
}
.w1 {
animation: slideIn 1s ease-out forwards;
}
.e1 {
animation: slideIn 1s ease-out 0.2s forwards;
}
.e2 {
animation: slideIn 1s ease-out 0.4s forwards;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.letter {
animation: pulse 3s ease-in-out infinite;
}
.w1 {
animation-delay: 0s;
}
.e1 {
animation-delay: 0.3s;
}
.e2 {
animation-delay: 0.6s;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
h2 {
color: #333;
margin-top: 20px;
font-weight: 300;
}
</style>
</head>
<body>
<div class="container">
<div class="logo-container">
<svg viewBox="0 0 400 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient
id="blueGradient"
x1="0%"
y1="0%"
x2="100%"
y2="100%"
>
<stop offset="0%" style="stop-color: #4a90e2; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#4A90E2;#2E5C8A;#4A90E2"
dur="4s"
repeatCount="indefinite"
/>
</stop>
<stop offset="100%" style="stop-color: #1e3a5f; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#1E3A5F;#4A90E2;#1E3A5F"
dur="4s"
repeatCount="indefinite"
/>
</stop>
</linearGradient>
</defs>
<!-- W -->
<path
class="letter w1"
d="M 20 60 L 40 140 L 60 100 L 80 140 L 100 60"
stroke-width="8"
stroke-linecap="round"
stroke-linejoin="round"
fill="none"
stroke="url(#blueGradient)"
/>
<!-- E -->
<path
class="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"
stroke-width="8"
stroke-linecap="round"
stroke-linejoin="round"
fill="none"
stroke="url(#blueGradient)"
/>
<!-- E -->
<path
class="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"
stroke-width="8"
stroke-linecap="round"
stroke-linejoin="round"
fill="none"
stroke="url(#blueGradient)"
/>
</svg>
</div>
<h2>Style 1: Minimalist Lines</h2>
</div>
</body>
</html>
@@ -0,0 +1,149 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wee Logo - Style 2: Modern Rounded</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f5f5f5;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.container {
text-align: center;
}
.logo-container {
background: white;
padding: 60px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
svg {
width: 400px;
height: 200px;
}
.letter {
fill: url(#blueGradient2);
}
@keyframes float {
0%,
100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.w-letter {
animation: float 2s ease-in-out infinite;
transform-origin: center;
}
.e1-letter {
animation: float 2s ease-in-out infinite;
animation-delay: 0.2s;
transform-origin: center;
}
.e2-letter {
animation: float 2s ease-in-out infinite;
animation-delay: 0.4s;
transform-origin: center;
}
h2 {
color: #333;
margin-top: 20px;
font-weight: 300;
}
</style>
</head>
<body>
<div class="container">
<div class="logo-container">
<svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient
id="blueGradient2"
x1="0%"
y1="0%"
x2="100%"
y2="100%"
>
<stop offset="0%" style="stop-color: #5dade2; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#5DADE2;#3498DB;#2E86C1;#5DADE2"
dur="3s"
repeatCount="indefinite"
/>
</stop>
<stop offset="50%" style="stop-color: #3498db; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#3498DB;#2E86C1;#5DADE2;#3498DB"
dur="3s"
repeatCount="indefinite"
/>
</stop>
<stop offset="100%" style="stop-color: #2874a6; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#2874A6;#5DADE2;#3498DB;#2874A6"
dur="3s"
repeatCount="indefinite"
/>
</stop>
</linearGradient>
</defs>
<!-- W -->
<g class="w-letter">
<path
class="letter"
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 class="e1-letter">
<path
class="letter"
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 class="e2-letter">
<path
class="letter"
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>
</div>
<h2>Style 2: Modern Rounded</h2>
</div>
</body>
</html>
@@ -0,0 +1,293 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wee Logo - Style 3: Tech Futuristic</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #0a0e27;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.container {
text-align: center;
}
.logo-container {
background: linear-gradient(135deg, #1a1f3a 0%, #0f1229 100%);
padding: 60px;
border-radius: 20px;
box-shadow:
0 10px 40px rgba(0, 0, 0, 0.5),
0 0 60px rgba(74, 144, 226, 0.3);
}
svg {
width: 400px;
height: 200px;
filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.5));
}
.letter {
fill: url(#techGradient);
stroke: url(#glowGradient);
stroke-width: 2;
}
@keyframes glow {
0%,
100% {
filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.8))
drop-shadow(0 0 10px rgba(74, 144, 226, 0.6))
drop-shadow(0 0 15px rgba(74, 144, 226, 0.4));
}
50% {
filter: drop-shadow(0 0 10px rgba(74, 144, 226, 1))
drop-shadow(0 0 20px rgba(74, 144, 226, 0.8))
drop-shadow(0 0 30px rgba(74, 144, 226, 0.6));
}
}
@keyframes scan {
0% {
transform: translateX(-100%);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: translateX(500%);
opacity: 0;
}
}
.scan-line {
animation: scan 3s ease-in-out infinite;
}
.letter-group {
animation: glow 2s ease-in-out infinite;
}
.w-tech {
animation-delay: 0s;
}
.e1-tech {
animation-delay: 0.3s;
}
.e2-tech {
animation-delay: 0.6s;
}
@keyframes flicker {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.95;
}
75% {
opacity: 0.98;
}
}
h2 {
color: #5dade2;
margin-top: 20px;
font-weight: 300;
text-shadow: 0 0 10px rgba(93, 173, 226, 0.5);
}
.particles {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
}
.particle {
position: absolute;
width: 2px;
height: 2px;
background: #5dade2;
border-radius: 50%;
animation: particle-float 4s ease-in-out infinite;
}
@keyframes particle-float {
0%,
100% {
transform: translateY(0) translateX(0);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: translateY(-100px) translateX(20px);
}
}
</style>
</head>
<body>
<div class="container">
<div class="logo-container">
<svg viewBox="0 0 400 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient
id="techGradient"
x1="0%"
y1="0%"
x2="100%"
y2="100%"
>
<stop offset="0%" style="stop-color: #00d9ff; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#00D9FF;#0099FF;#0066FF;#00D9FF"
dur="2s"
repeatCount="indefinite"
/>
</stop>
<stop offset="100%" style="stop-color: #0066ff; stop-opacity: 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="stop-color: #4a90e2; stop-opacity: 0.5"
/>
<stop offset="50%" style="stop-color: #00d9ff; stop-opacity: 1">
<animate
attributeName="offset"
values="0;1;0"
dur="2s"
repeatCount="indefinite"
/>
</stop>
<stop
offset="100%"
style="stop-color: #4a90e2; stop-opacity: 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
class="scan-line"
x="0"
y="0"
width="20"
height="200"
fill="url(#glowGradient)"
opacity="0.3"
/>
<!-- W -->
<g class="letter-group w-tech">
<text
class="letter"
x="10"
y="140"
font-family="'Arial Black', sans-serif"
font-size="120"
font-weight="900"
filter="url(#glow)"
>
W
</text>
</g>
<!-- E -->
<g class="letter-group e1-tech">
<text
class="letter"
x="140"
y="140"
font-family="'Arial Black', sans-serif"
font-size="120"
font-weight="900"
filter="url(#glow)"
>
E
</text>
</g>
<!-- E -->
<g class="letter-group e2-tech">
<text
class="letter"
x="260"
y="140"
font-family="'Arial Black', sans-serif"
font-size="120"
font-weight="900"
filter="url(#glow)"
>
E
</text>
</g>
<!-- Grid lines for tech effect -->
<line
x1="0"
y1="180"
x2="400"
y2="180"
stroke="#0099FF"
stroke-width="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"
stroke-width="0.5"
opacity="0.2"
>
<animate
attributeName="opacity"
values="0.2;0.5;0.2"
dur="2s"
repeatCount="indefinite"
/>
</line>
</svg>
</div>
<h2>Style 3: Tech Futuristic</h2>
</div>
</body>
</html>
@@ -0,0 +1,293 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wee Logo - Style 4: Wave Flow</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.container {
text-align: center;
}
.logo-container {
background: rgba(255, 255, 255, 0.95);
padding: 60px;
border-radius: 30px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
}
svg {
width: 500px;
height: 200px;
overflow: visible;
}
.wave-text {
fill: url(#waveGradient);
font-family:
'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
font-size: 140px;
font-weight: 900;
}
@keyframes wave {
0%,
100% {
d: path('M0,100 Q25,80 50,100 T100,100');
}
50% {
d: path('M0,100 Q25,120 50,100 T100,100');
}
}
@keyframes morphW {
0%,
100% {
d: path(
'M 20,60 L 35,130 Q 37,140 45,140 Q 53,140 55,130 L 65,85 L 75,130 Q 77,140 85,140 Q 93,140 95,130 L 110,60'
);
}
50% {
d: path(
'M 20,65 L 35,125 Q 37,135 45,135 Q 53,135 55,125 L 65,90 L 75,125 Q 77,135 85,135 Q 93,135 95,125 L 110,65'
);
}
}
.liquid-bg {
animation: liquidMove 8s ease-in-out infinite;
}
@keyframes liquidMove {
0%,
100% {
transform: translateY(0) scale(1);
}
50% {
transform: translateY(-5px) scale(1.02);
}
}
h2 {
color: #fff;
margin-top: 20px;
font-weight: 300;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
@keyframes flowText {
0% {
transform: translateX(0);
}
100% {
transform: translateX(5px);
}
}
.flow-w {
animation: flowText 2s ease-in-out infinite alternate;
}
.flow-e1 {
animation: flowText 2s ease-in-out infinite alternate;
animation-delay: 0.2s;
}
.flow-e2 {
animation: flowText 2s ease-in-out infinite alternate;
animation-delay: 0.4s;
}
</style>
</head>
<body>
<div class="container">
<div class="logo-container">
<svg viewBox="0 0 500 220" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient
id="waveGradient"
x1="0%"
y1="0%"
x2="100%"
y2="100%"
>
<stop offset="0%" style="stop-color: #2193b0; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#2193b0;#6dd5ed;#4facfe;#2193b0"
dur="4s"
repeatCount="indefinite"
/>
</stop>
<stop offset="50%" style="stop-color: #4facfe; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#4facfe;#00f2fe;#2193b0;#4facfe"
dur="4s"
repeatCount="indefinite"
/>
</stop>
<stop offset="100%" style="stop-color: #00f2fe; stop-opacity: 1">
<animate
attributeName="stop-color"
values="#00f2fe;#4facfe;#6dd5ed;#00f2fe"
dur="4s"
repeatCount="indefinite"
/>
</stop>
</linearGradient>
<filter id="wave-blur">
<feGaussianBlur in="SourceGraphic" stdDeviation="1" />
</filter>
<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
class="liquid-bg"
cx="100"
cy="150"
rx="80"
ry="60"
fill="url(#waveGradient)"
opacity="0.1"
filter="url(#liquid)"
/>
<ellipse
class="liquid-bg"
cx="250"
cy="140"
rx="90"
ry="70"
fill="url(#waveGradient)"
opacity="0.1"
filter="url(#liquid)"
style="animation-delay: 1s"
/>
<ellipse
class="liquid-bg"
cx="400"
cy="145"
rx="85"
ry="65"
fill="url(#waveGradient)"
opacity="0.1"
filter="url(#liquid)"
style="animation-delay: 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 class="wave-text" font-size="120" font-weight="900">
<textPath href="#wavePath" startOffset="8%">
<tspan class="flow-w">w</tspan>
<tspan class="flow-e1">e</tspan>
<tspan class="flow-e2">e</tspan>
<animate
attributeName="startOffset"
values="8%;10%;8%"
dur="3s"
repeatCount="indefinite"
/>
</textPath>
</text>
<!-- Animated wave path -->
<animateTransform
attributeName="transform"
type="translate"
values="0,0; 0,-3; 0,0"
dur="3s"
repeatCount="indefinite"
/>
<!-- 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>
</div>
<h2>Style 4: Wave Flow</h2>
</div>
</body>
</html>