refactor: 前端应用骨架迁移至 zustand 并统一路由权限壳
This commit is contained in:
24
apps/admin/src/components/BrandLogo.tsx
Normal file
24
apps/admin/src/components/BrandLogo.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user