change icons & logo

mgy
Dawn_Ocean 2024-03-25 19:33:25 +08:00
parent 57c0fed976
commit 31188c0bb0
4 changed files with 11 additions and 9 deletions

View File

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> <link rel="icon" href="%PUBLIC_URL%/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" /> <meta name="theme-color" content="#000000" />
<meta <meta
@ -15,7 +15,7 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
--> -->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>EVA-Notify Admin Page</title> <title>EVA Tea</title>
</head> </head>
<body style="margin: 0;"> <body style="margin: 0;">
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

BIN
public/logo.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -2,9 +2,11 @@ import { FC } from 'react';
import { useLocation, useNavigate } from 'react-router-dom'; import { useLocation, useNavigate } from 'react-router-dom';
import { import {
TeamOutlined, TeamOutlined,
UserOutlined,
DesktopOutlined,
HomeOutlined, HomeOutlined,
SmileOutlined,
CrownOutlined,
ClockCircleOutlined,
ThunderboltOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import type { MenuProps } from 'antd'; import type { MenuProps } from 'antd';
import { Breadcrumb, Layout, Menu, theme } from 'antd'; import { Breadcrumb, Layout, Menu, theme } from 'antd';
@ -62,16 +64,16 @@ function defSubMenu(
} }
const items: MenuItem[] = [ const items: MenuItem[] = [
defMenu('主页', 'mainpage', <DesktopOutlined />, routes.main), defMenu('主页', 'mainpage', <SmileOutlined />, routes.main),
defRootMenu('主席团管理', 'admin', <UserOutlined />, [ defRootMenu('主席团管理', 'admin', <CrownOutlined />, [
defSubMenu('排班表管理', 'dutytable', routes.admin.dutyTable), defSubMenu('排班表管理', 'dutytable', routes.admin.dutyTable),
defSubMenu('值班信息管理', 'dutyinfo', routes.admin.dutyInfo), defSubMenu('值班信息管理', 'dutyinfo', routes.admin.dutyInfo),
]), ]),
defRootMenu('值班组长', 'leader', <TeamOutlined />, [ defRootMenu('值班组长', 'leader', <TeamOutlined />, [
defSubMenu('值班总结', 'conclusion', routes.duty.conclusion), defSubMenu('值班总结', 'conclusion', routes.duty.conclusion),
]), ]),
defMenu('日志', 'logspage', <UserOutlined />, routes.about), defMenu('日志', 'logspage', <ClockCircleOutlined />, routes.logs),
defMenu('关于我们', 'aboutpage', <UserOutlined />, routes.about), defMenu('关于我们', 'aboutpage', <ThunderboltOutlined />, routes.about),
]; ];
interface BreadcrumbItem { interface BreadcrumbItem {

View File

@ -14,7 +14,7 @@ const PageFooter: React.FC = () => {
return ( return (
<div> <div>
<Footer style={{ textAlign: 'center', color: '#808080' }}> <Footer style={{ textAlign: 'center', color: '#808080' }}>
EVA-Tea <br /> <br /> EVA Tea <br /> <br />
&copy; {yearStr} EVA Tech &copy; {yearStr} EVA Tech
</Footer> </Footer>
</div> </div>