mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 23:16:54 +00:00
支持公安备案号配置
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import DarkModeButton from '@/components/DarkModeButton'
|
||||
import { GongAnBeiAn } from '@/components/GongAnBeiAn'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
@@ -6,26 +7,43 @@ import { siteConfig } from '@/lib/config'
|
||||
* @param {*} props
|
||||
* @returns
|
||||
*/
|
||||
export default function Footer (props) {
|
||||
export default function Footer(props) {
|
||||
const d = new Date()
|
||||
const currentYear = d.getFullYear()
|
||||
const since = siteConfig('SINCE')
|
||||
const copyrightDate = parseInt(since) < currentYear ? since + '-' + currentYear : currentYear
|
||||
const copyrightDate =
|
||||
parseInt(since) < currentYear ? since + '-' + currentYear : currentYear
|
||||
|
||||
return <footer className="relative w-full bg-black px-6 border-t">
|
||||
<DarkModeButton className='text-center pt-4'/>
|
||||
return (
|
||||
<footer className='relative w-full bg-black px-6 border-t'>
|
||||
<DarkModeButton className='text-center pt-4' />
|
||||
|
||||
<div className="text-yellow-300 container mx-auto max-w-4xl py-6 md:flex flex-wrap md:flex-no-wrap md:justify-between items-center text-sm">
|
||||
<div className='text-center'> ©{`${copyrightDate}`} {siteConfig('AUTHOR')}. All rights reserved.</div>
|
||||
<div className="md:p-0 text-center md:text-right text-xs">
|
||||
{/* 右侧链接 */}
|
||||
{/* <a href="#" className="text-black no-underline hover:underline">Privacy Policy</a> */}
|
||||
{siteConfig('BEI_AN') && (<a href="https://beian.miit.gov.cn/" className="text-black dark:text-gray-200 no-underline hover:underline ml-4">{siteConfig('BEI_AN')} </a>)}
|
||||
<span className='no-underline ml-4'>
|
||||
Powered by
|
||||
<a href="https://github.com/tangly1024/NotionNext" className=' hover:underline'> NotionNext {siteConfig('VERSION')} </a>
|
||||
</span>
|
||||
</div>
|
||||
<div className='text-yellow-300 container mx-auto max-w-4xl py-6 md:flex flex-wrap md:flex-no-wrap md:justify-between items-center text-sm'>
|
||||
<div className='text-center'>
|
||||
©{`${copyrightDate}`} {siteConfig('AUTHOR')}. All rights
|
||||
reserved.
|
||||
</div>
|
||||
<div className='md:p-0 text-center md:text-right text-xs'>
|
||||
{/* 右侧链接 */}
|
||||
{/* <a href="#" className="text-black no-underline hover:underline">Privacy Policy</a> */}
|
||||
{siteConfig('BEI_AN') && (
|
||||
<a
|
||||
href='https://beian.miit.gov.cn/'
|
||||
className='text-black dark:text-gray-200 no-underline hover:underline ml-4'>
|
||||
{siteConfig('BEI_AN')}
|
||||
</a>
|
||||
)}
|
||||
<GongAnBeiAn />
|
||||
<span className='no-underline ml-4'>
|
||||
Powered by
|
||||
<a
|
||||
href='https://github.com/tangly1024/NotionNext'
|
||||
className=' hover:underline'>
|
||||
NotionNext {siteConfig('VERSION')}
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user