From 07776bee0a5cd814a05554656f20e1127ae92514 Mon Sep 17 00:00:00 2001 From: Shu Guang <61069967+shuguangnet@users.noreply.github.com> Date: Thu, 17 Apr 2025 22:19:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0footer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/Footer/index.tsx | 37 +++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 8ffcfa3..509d801 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index f204ac2..83e069d 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -1,35 +1,46 @@ -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 ( +
+ Copyright © 2023-{currentYear} 陕西科技大学镐京学院 +
+
+ Powered by SunHe +
+ + + } 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: , - 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, }, + ]} /> ); }; -export default Footer; +export default Footer; \ No newline at end of file