Skip to content

Commit 0c55ecf

Browse files
committed
feat: ✨ 完善前端
1 parent 273cd43 commit 0c55ecf

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",
6+
"author": {
7+
"name": "tcly861204",
8+
"email": "[email protected]",
9+
"url": "https://github.com/tcly861204"
10+
},
611
"scripts": {
712
"dev": "vite --mode development",
813
"build": "tsc && vite build",

src/components/ToolBar/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
IconNotification,
77
IconMoon,
88
IconSkin,
9+
IconGithub,
910
IconSettings
1011
} from '@arco-design/web-react/icon'
1112
import styles from './index.module.scss'
@@ -59,6 +60,9 @@ const Toolbar = () => {
5960
</Avatar>
6061
</Dropdown>
6162
</li>
63+
<li>
64+
<IconGithub className='pointer' onClick={() => window.open('https://github.com/tcly861204', '_blank')} style={{ fontSize: 30 }} />
65+
</li>
6266
</Space>
6367
</div>
6468
}

src/layout/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
text-indent: 5px;
2525
}
2626
img {
27-
height: 40px;
27+
height: 36px;
2828
}
2929
}
3030
}

src/layout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const App = () => {
4040
</Layout.Header>
4141
<Layout>
4242
<Layout.Sider
43-
width={220}
43+
width={240}
4444
defaultCollapsed={collapse}
4545
collapsible={true}
4646
onCollapse={onCollapse}

src/styles/global.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212

1313
.cxd-Page-body {
1414
overflow: auto;
15+
}
16+
17+
.pointer {
18+
cursor: pointer;
1519
}

0 commit comments

Comments
 (0)