Files
gongxue-base/apps/admin/src/components/BrandLogo.tsx

25 lines
586 B
TypeScript

import { ReadOutlined } from '@ant-design/icons';
const BRAND_COLOR = '#7e14ff';
/** 全局品牌标识:登录页 / 侧边栏 / 页头统一使用 */
export function BrandLogo({ size = 32 }: { size?: number }) {
return (
<span
style={{
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
width: size,
height: size,
borderRadius: 8,
background: BRAND_COLOR,
color: '#fff',
flexShrink: 0,
}}
>
<ReadOutlined style={{ fontSize: size * 0.55 }} />
</span>
);
}