160 lines
5.6 KiB
React
160 lines
5.6 KiB
React
/*
|
|
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 from '../components/common/logo/WeeLogo';
|
|
import { Card, Typography } from '@/components/ui';
|
|
|
|
const { Title, Text } = Typography;
|
|
|
|
const LogoShowcase = () => {
|
|
const logoStyles = [
|
|
{
|
|
name: 'minimalist',
|
|
title: '极简线条',
|
|
description: '简洁的线条设计,柔和的渐变动画,适合现代简约界面',
|
|
bg: '#f5f5f5',
|
|
textColor: '#333',
|
|
},
|
|
{
|
|
name: 'modern',
|
|
title: '现代圆润',
|
|
description: '圆润的形状设计,浮动动画效果,适合友好亲和的界面',
|
|
bg: '#ffffff',
|
|
textColor: '#333',
|
|
},
|
|
{
|
|
name: 'tech',
|
|
title: '科技未来',
|
|
description: '科技感强烈的发光效果,扫描线动画,适合科技创新主题',
|
|
bg: '#0a0e27',
|
|
textColor: '#5DADE2',
|
|
},
|
|
{
|
|
name: 'wave',
|
|
title: '波浪流动',
|
|
description: '流畅的波浪效果,液态动画,适合创意动态的界面',
|
|
bg: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
|
|
textColor: '#ffffff',
|
|
},
|
|
];
|
|
|
|
return (
|
|
<div className='min-h-screen p-8 bg-gradient-to-br from-slate-50 to-blue-50 dark:from-zinc-900 dark:to-zinc-800'>
|
|
<div className='max-w-6xl mx-auto'>
|
|
<div className='text-center mb-12'>
|
|
<Title heading={1} className='!text-4xl !font-bold !mb-4'>
|
|
WeeLogo 风格展示
|
|
</Title>
|
|
<Text className='text-lg text-gray-600 dark:text-gray-300'>
|
|
选择最适合你的 Logo 风格
|
|
</Text>
|
|
</div>
|
|
|
|
<div className='grid grid-cols-1 md:grid-cols-2 gap-8 mb-12'>
|
|
{logoStyles.map((style) => (
|
|
<Card
|
|
key={style.name}
|
|
className='overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300 hover:scale-105'
|
|
bodyStyle={{ padding: 0 }}
|
|
>
|
|
<div
|
|
className='flex flex-col items-center justify-center p-12'
|
|
style={{
|
|
background: style.bg,
|
|
minHeight: '300px',
|
|
}}
|
|
>
|
|
<WeeLogo style={style.name} size={64} />
|
|
</div>
|
|
<div className='p-6 bg-white dark:bg-zinc-800'>
|
|
<Title heading={3} className='!text-xl !font-semibold !mb-2'>
|
|
{style.title}
|
|
</Title>
|
|
<Text className='text-gray-600 dark:text-gray-300'>
|
|
{style.description}
|
|
</Text>
|
|
<div className='mt-4 p-3 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm'>
|
|
{'<WeeLogo style="' + style.name + '" size={64} />'}
|
|
</div>
|
|
</div>
|
|
</Card>
|
|
))}
|
|
</div>
|
|
|
|
<Card className='p-8 bg-white dark:bg-zinc-800 shadow-lg'>
|
|
<Title heading={2} className='!text-2xl !font-bold !mb-6'>
|
|
使用方法
|
|
</Title>
|
|
|
|
<div className='space-y-6'>
|
|
<div>
|
|
<Title heading={4} className='!text-lg !font-semibold !mb-3'>
|
|
1. 导入组件
|
|
</Title>
|
|
<div className='p-4 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm overflow-x-auto'>
|
|
{"import WeeLogo from './components/common/logo/WeeLogo';"}
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<Title heading={4} className='!text-lg !font-semibold !mb-3'>
|
|
2. 在 HeaderLogo 中使用
|
|
</Title>
|
|
<div className='p-4 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm overflow-x-auto whitespace-pre'>
|
|
{`<HeaderLogo
|
|
useSvgLogo={true} // 启用 SVG logo
|
|
logoStyle="minimalist" // 选择风格
|
|
// ... 其他 props
|
|
/>`}
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<Title heading={4} className='!text-lg !font-semibold !mb-3'>
|
|
3. 直接使用
|
|
</Title>
|
|
<div className='p-4 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm overflow-x-auto'>
|
|
{'<WeeLogo style="tech" size={48} />'}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className='mt-8 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded'>
|
|
<Text className='text-blue-800 dark:text-blue-200'>
|
|
💡 提示: 更多详细信息请查看{' '}
|
|
<code className='px-2 py-1 bg-blue-100 dark:bg-blue-900 rounded'>
|
|
web/src/components/common/logo/README.md
|
|
</code>
|
|
</Text>
|
|
</div>
|
|
</Card>
|
|
|
|
<div className='mt-8 text-center'>
|
|
<Text className='text-gray-500 dark:text-gray-400'>
|
|
所有 Logo 风格都支持平滑的动画效果和响应式设计
|
|
</Text>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default LogoShowcase;
|