feat: 添加footer
This commit is contained in:
parent
df7c2bb696
commit
07776bee0a
@ -47,7 +47,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "^4.8.1",
|
||||
"@ant-design/pro-components": "^2.6.48",
|
||||
"@ant-design/pro-components": "^2.8.7",
|
||||
"@monaco-editor/react": "^4.7.0",
|
||||
"@umijs/route-utils": "^2.2.2",
|
||||
"antd": "5.24.5",
|
||||
|
@ -1,32 +1,43 @@
|
||||
import { GithubOutlined } from '@ant-design/icons';
|
||||
import { GithubOutlined, HeartFilled, WechatOutlined, MailOutlined } from '@ant-design/icons';
|
||||
import { DefaultFooter } from '@ant-design/pro-components';
|
||||
import React from 'react';
|
||||
|
||||
const Footer: React.FC = () => {
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
return (
|
||||
<DefaultFooter
|
||||
|
||||
style={{
|
||||
background: 'none',
|
||||
|
||||
color: '#fff',
|
||||
padding: '24px 0',
|
||||
}}
|
||||
copyright={
|
||||
<div>
|
||||
<div >
|
||||
Copyright © 2023-{currentYear} 陕西科技大学镐京学院
|
||||
</div>
|
||||
<div >
|
||||
Powered by <HeartFilled /> SunHe
|
||||
</div>
|
||||
|
||||
</div>
|
||||
}
|
||||
links={[
|
||||
{
|
||||
key: 'Ant Design Pro',
|
||||
title: 'Ant Design Pro',
|
||||
href: 'https://pro.ant.design',
|
||||
key: 'home',
|
||||
title: '镐京学院',
|
||||
href: 'https://www.sust.edu.cn/',
|
||||
blankTarget: true,
|
||||
},
|
||||
{
|
||||
key: 'github',
|
||||
title: <GithubOutlined />,
|
||||
href: 'https://github.com/ant-design/ant-design-pro',
|
||||
blankTarget: true,
|
||||
},
|
||||
{
|
||||
key: 'Ant Design',
|
||||
title: 'Ant Design',
|
||||
href: 'https://ant.design',
|
||||
href: 'https://github.com/shuguangnet',
|
||||
blankTarget: true,
|
||||
},
|
||||
|
||||
]}
|
||||
/>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user