diff --git a/README.md b/README.md index 1a372641..b8fc4869 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@


-

Slash Admin -

+ +

Slash Admin

+

+ Slash Admin is a modern admin dashboard template built with React 18, Vite, Ant Design, and TypeScript. It is designed to help developers quickly create powerful admin management systems. +

**English** | [中文](./README.zh-CN.md) @@ -13,9 +16,6 @@ -## Introduction -Slash Admin is a modern admin dashboard template built with React 18, Vite, Ant Design, and TypeScript. It is designed to help developers quickly create powerful admin management systems. - ## Preview + https://admin.slashspaces.com/ diff --git a/README.zh-CN.md b/README.zh-CN.md index 3ab3d1b7..5bdfdc11 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,8 +1,12 @@


-

Slash Admin -

+ +

Slash Admin

+ + Slash Admin 是一款现代化的后台管理模板,基于 React 18、Vite、Ant Design 和 TypeScript 构建。它旨在帮助开发人员快速搭建功能强大的后台管理系统。 + +
**中文** | [English](./README.md) @@ -13,9 +17,6 @@ -## 简介 - -Slash Admin 是一个现代化的后台管理模板,基于 React 18、Vite、Ant Design 和 TypeScript 构建。它旨在帮助开发人员快速搭建功能强大的后台管理系统。 ## 预览 + https://admin.slashspaces.com/ diff --git a/index.html b/index.html index f69755fd..aca743b1 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ - Slash Admin diff --git a/src/App.tsx b/src/App.tsx index 38d5134d..66a4609f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,7 @@ import { App as AntdApp } from 'antd'; +import { Helmet } from 'react-helmet-async'; +import Logo from '@/assets/images/logo.png'; import Router from '@/router/index'; import AntdConfig from '@/theme/antd'; @@ -10,6 +12,11 @@ function App() { + + Slash Admin + + + diff --git a/src/assets/images/background/dashboard2.png b/src/assets/images/background/dashboard2.png deleted file mode 100644 index 5f008e55..00000000 Binary files a/src/assets/images/background/dashboard2.png and /dev/null differ diff --git a/src/assets/images/logo.png b/src/assets/images/logo.png new file mode 100644 index 00000000..b0eeef4a Binary files /dev/null and b/src/assets/images/logo.png differ diff --git a/src/assets/react.svg b/src/assets/react.svg deleted file mode 100644 index 6c87de9b..00000000 --- a/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/vite.svg b/src/assets/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/src/assets/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/logo/index.tsx b/src/components/logo/index.tsx index 5bdf9e69..0ea266be 100644 --- a/src/components/logo/index.tsx +++ b/src/components/logo/index.tsx @@ -2,14 +2,17 @@ import { NavLink } from 'react-router-dom'; import { useThemeToken } from '@/theme/hooks'; -function Logo({ className = '' }: { className?: string }) { +import { Iconify } from '../icon'; + +interface Props { + size?: number | string; +} +function Logo({ size = 50 }: Props) { const { colorPrimary } = useThemeToken(); return ( - - + + ); } diff --git a/src/layouts/_common/header-simple.tsx b/src/layouts/_common/header-simple.tsx index 512cbfd8..ddeb67d8 100644 --- a/src/layouts/_common/header-simple.tsx +++ b/src/layouts/_common/header-simple.tsx @@ -5,7 +5,7 @@ import SettingButton from './setting-button'; export default function HeaderSimple() { return (
- +
); diff --git a/src/layouts/dashboard/header.tsx b/src/layouts/dashboard/header.tsx index 80fb9ec7..3d766913 100644 --- a/src/layouts/dashboard/header.tsx +++ b/src/layouts/dashboard/header.tsx @@ -66,9 +66,9 @@ export default function Header({ className = '', offsetTop = false }: Props) { ) : ( - + )} -
{breadCrumb ? : null}
+
{breadCrumb ? : null}
diff --git a/src/layouts/dashboard/index.tsx b/src/layouts/dashboard/index.tsx index 22644dd4..12339c50 100644 --- a/src/layouts/dashboard/index.tsx +++ b/src/layouts/dashboard/index.tsx @@ -49,7 +49,6 @@ function DashboardLayout() { return ( -
{themeLayout === ThemeLayout.Mini ? ( - + ) : ( - +
+ + + Slash Admin + +
)}