Skip to content

Commit f9563f5

Browse files
committed
refactor: change project logo and update readme.md
1 parent a126c51 commit f9563f5

File tree

13 files changed

+37
-25
lines changed

13 files changed

+37
-25
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<div align="center">
22
<br>
33
<br>
4-
<h1>Slash Admin
5-
</h1>
4+
<img src="./src/assets/images/logo.png" height="140" />
5+
<h1> Slash Admin </h1>
6+
<p style="font-size: 14px">
7+
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.
8+
</p>
69
</div>
710

811
**English** | [中文](./README.zh-CN.md)
@@ -13,9 +16,6 @@
1316
<img style="width:300px" src="https://d3george.github.io/github-static/pay/buymeacoffee.png" />
1417
</div>
1518

16-
## Introduction
17-
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.
18-
1919
## Preview
2020
+ https://admin.slashspaces.com/
2121

README.zh-CN.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<div align="center">
22
<br>
33
<br>
4-
<h1>Slash Admin
5-
</h1>
4+
<img src="./src/assets/images/logo.png" height="140" />
5+
<h1> Slash Admin </h1>
6+
<span style="font-size: 14px">
7+
Slash Admin 是一款现代化的后台管理模板,基于 React 18、Vite、Ant Design 和 TypeScript 构建。它旨在帮助开发人员快速搭建功能强大的后台管理系统。
8+
</span>
9+
610
</div>
711

812
**中文** | [English](./README.md)
@@ -13,9 +17,6 @@
1317
<img style="width:300px" src="https://d3george.github.io/github-static/pay/buymeacoffee.png" />
1418
</div>
1519

16-
## 简介
17-
18-
Slash Admin 是一个现代化的后台管理模板,基于 React 18、Vite、Ant Design 和 TypeScript 构建。它旨在帮助开发人员快速搭建功能强大的后台管理系统。
1920

2021
## 预览
2122
+ https://admin.slashspaces.com/

index.html

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
76
<title>Slash Admin</title>
87
</head>

src/App.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { App as AntdApp } from 'antd';
2+
import { Helmet } from 'react-helmet-async';
23

4+
import Logo from '@/assets/images/logo.png';
35
import Router from '@/router/index';
46
import AntdConfig from '@/theme/antd';
57

@@ -10,6 +12,11 @@ function App() {
1012
<AntdConfig>
1113
<AntdApp>
1214
<MotionLazy>
15+
<Helmet>
16+
<title>Slash Admin</title>
17+
<link rel="icon" href={Logo} />
18+
</Helmet>
19+
1320
<Router />
1421
</MotionLazy>
1522
</AntdApp>
-248 KB
Binary file not shown.

src/assets/images/logo.png

13.1 KB
Loading

src/assets/react.svg

-1
This file was deleted.

src/assets/vite.svg

-1
This file was deleted.

src/components/logo/index.tsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ import { NavLink } from 'react-router-dom';
22

33
import { useThemeToken } from '@/theme/hooks';
44

5-
function Logo({ className = '' }: { className?: string }) {
5+
import { Iconify } from '../icon';
6+
7+
interface Props {
8+
size?: number | string;
9+
}
10+
function Logo({ size = 50 }: Props) {
611
const { colorPrimary } = useThemeToken();
712

813
return (
9-
<NavLink to="/" className="no-underline">
10-
<button className={`font-semibold ${className}`} style={{ color: colorPrimary }}>
11-
Logo
12-
</button>
14+
<NavLink to="/">
15+
<Iconify icon="solar:code-square-bold" color={colorPrimary} size={size} />
1316
</NavLink>
1417
);
1518
}

src/layouts/_common/header-simple.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import SettingButton from './setting-button';
55
export default function HeaderSimple() {
66
return (
77
<header className="flex h-16 w-full items-center justify-between px-6">
8-
<Logo />
8+
<Logo size={30} />
99
<SettingButton />
1010
</header>
1111
);

src/layouts/dashboard/header.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ export default function Header({ className = '', offsetTop = false }: Props) {
6666
<SvgIcon icon="ic-menu" size="24" />
6767
</IconButton>
6868
) : (
69-
<Logo className="mr-2 text-xl" />
69+
<Logo />
7070
)}
71-
<div className="hidden md:block">{breadCrumb ? <BreadCrumb /> : null}</div>
71+
<div className="ml-4 hidden md:block">{breadCrumb ? <BreadCrumb /> : null}</div>
7272
</div>
7373

7474
<div className="flex">

src/layouts/dashboard/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function DashboardLayout() {
4949
return (
5050
<StyleWrapper $themeMode={themeMode}>
5151
<ProgressBar />
52-
5352
<div
5453
className={`flex h-screen overflow-hidden ${
5554
themeLayout === ThemeLayout.Horizontal ? 'flex-col' : ''

src/layouts/dashboard/nav.tsx

+8-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Nav(props: Props) {
2424
const matches = useMatches();
2525
const { pathname } = useLocation();
2626

27-
const { colorTextBase, colorBgElevated, colorBorder } = useThemeToken();
27+
const { colorPrimary, colorTextBase, colorBgElevated, colorBorder } = useThemeToken();
2828

2929
const settings = useSettings();
3030
const { themeLayout } = settings;
@@ -122,9 +122,14 @@ export default function Nav(props: Props) {
122122
>
123123
<div className="relative flex h-20 items-center justify-center py-4">
124124
{themeLayout === ThemeLayout.Mini ? (
125-
<Logo className="text-lg" />
125+
<Logo />
126126
) : (
127-
<Logo className="text-4xl" />
127+
<div className="flex items-center gap-2">
128+
<Logo />
129+
<span className="text-xl font-bold" style={{ color: colorPrimary }}>
130+
Slash Admin
131+
</span>
132+
</div>
128133
)}
129134
<button
130135
onClick={toggleCollapsed}

0 commit comments

Comments
 (0)