From ccbe5b80a845e8b3e91315aa4e526f87b9d0a724 Mon Sep 17 00:00:00 2001 From: WANG Xuerui Date: Sat, 21 Oct 2023 18:12:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[WIP]=20add=20provisional=20ICP=20?= =?UTF-8?q?=E5=A4=87=E6=A1=88=20&=20=E5=85=AC=E5=AE=89=E5=A4=87=E6=A1=88?= =?UTF-8?q?=20info=20to=20footer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/theme/Footer/Copyright/index.tsx | 40 ++++++++++++++++++++ src/theme/Footer/Copyright/styles.module.css | 10 +++++ 2 files changed, 50 insertions(+) create mode 100644 src/theme/Footer/Copyright/styles.module.css diff --git a/src/theme/Footer/Copyright/index.tsx b/src/theme/Footer/Copyright/index.tsx index 3551d01d..260f3d62 100644 --- a/src/theme/Footer/Copyright/index.tsx +++ b/src/theme/Footer/Copyright/index.tsx @@ -1,10 +1,50 @@ import React from 'react' import Copyright from '@theme-original/Footer/Copyright' +import styles from './styles.module.css' + +function ICPBeianLink( + { + province, + recordNumber, + subRecordNumber, + }: { + province: string, + recordNumber: number, + subRecordNumber: number, + }, +): JSX.Element { + return ( + {province}ICP备{recordNumber}号-{subRecordNumber} + ) +} + +function MPSBeianLink( + { + province, + recordNumber, + }: { + province: string, + recordNumber: number, + }, +): JSX.Element { + const queryLinkURL = `http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${recordNumber}` + return ( + <> + + {province}公网安备{recordNumber}号 + + ) +} + export default function CopyrightWrapper(props: any): JSX.Element { return ( <> + ) } diff --git a/src/theme/Footer/Copyright/styles.module.css b/src/theme/Footer/Copyright/styles.module.css new file mode 100644 index 00000000..70d11799 --- /dev/null +++ b/src/theme/Footer/Copyright/styles.module.css @@ -0,0 +1,10 @@ +/* 备案信息 */ +.footer__beian li { + list-style: none; + display: inline; +} + +.mpsLogo { + margin: 0 0.5rem; + vertical-align: text-bottom; +}