diff --git a/src/theme/Footer/Copyright/index.tsx b/src/theme/Footer/Copyright/index.tsx index 3551d01d..0afbae3e 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; +}