This commit is contained in:
xuqssq
2024-12-28 18:31:55 +08:00
parent af2375dba6
commit 58072abb1e
3 changed files with 16 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
src/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,17 +1,23 @@
import React from 'react';
import { RocketOutlined } from '@ant-design/icons';
import { Typography } from 'antd';
import React from "react";
const { Text } = Typography;
import logo from "@/assets/logo.png";
import logoCollapsed from "@/assets/logo-collapsed.png";
export const Logo = ({ collapsed, isDarkMode }) => (
<div className="logo">
<div className="flex items-center justify-center gap-2">
<RocketOutlined className="text-2xl text-primary-500" />
{!collapsed && (
<Text className="text-lg font-semibold m-0" style={{ color: 'var(--primary-color)' }}>
Uppeta
</Text>
{collapsed ? (
<div className="flex items-center justify-center">
<img
src={logoCollapsed}
alt="logo"
className="w-1/2 object-contain"
/>
</div>
) : (
<div className="flex items-center justify-center">
<img src={logo} alt="logo" className="w-1/2 object-contain mr-2" />
</div>
)}
</div>
</div>