Skip to content

Commit

Permalink
修改登录逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuaige1234567 committed Dec 9, 2023
1 parent 4911b45 commit 3e47c32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
9 changes: 5 additions & 4 deletions frontend/src/components/sider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ const items: MenuItemType[] = [

getItem("Home", '1', <HomeOutlined style={{
color: '#D3D540',
fontSize: '30px'
fontSize: '20px'
}}/>),
getItem("Explore", '2', <SearchOutlined style={{
color: '#D3D540',
fontSize: '30px'
fontSize: '20px'
}}/>),
getItem("Profile", '3', <ProfileOutlined style={{
color: '#D3D540',
fontSize: '30px'
fontSize: '20px'
}}/>),
getItem("Settings", '4', <SettingOutlined style={{
color: '#D3D540',
fontSize: '30px'
fontSize: '20px'
}}/>),

];
Expand Down Expand Up @@ -93,6 +93,7 @@ export default function Sider() {
</h1>

<Menu
className={"sider"}
mode="vertical"
items={items}
style={{
Expand Down
15 changes: 10 additions & 5 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

.sider .ant-menu-item {
display: flex;
align-items: center;
}

0 comments on commit 3e47c32

Please sign in to comment.