Logo.tsx
776 Bytes
interface LogoProps {
size?: number;
}
/**
* 品牌标识:渐变圆角方 + UJ 字标。
* 深色背景(Sider / 登录区)与浅色卡片均可用,靠自身渐变保证对比度。
*/
export function Logo({ size = 36 }: LogoProps) {
return (
<div
style={{
width: size,
height: size,
borderRadius: size * 0.28,
background: 'linear-gradient(135deg, #2B5CE6 0%, #5B8DEF 100%)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: '#fff',
fontWeight: 800,
fontSize: size * 0.4,
letterSpacing: 1,
boxShadow: '0 6px 16px -6px rgba(43,92,230,.6)',
flexShrink: 0,
userSelect: 'none',
}}
>
UJ
</div>
);
}