mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-20 07:26:46 +00:00
38 lines
1008 B
JavaScript
38 lines
1008 B
JavaScript
import { BeiAnGongAn } from '@/components/BeiAnGongAn'
|
|
import DarkModeButton from '@/components/DarkModeButton'
|
|
import { siteConfig } from '@/lib/config'
|
|
|
|
/**
|
|
* 页脚
|
|
* @param {*} props
|
|
* @returns
|
|
*/
|
|
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
|
|
|
|
return (
|
|
<footer>
|
|
<DarkModeButton className='pt-4' />
|
|
|
|
<div className='font-bold text-[var(--primary-color)] py-6 text-sm flex flex-col gap-2 items-center'>
|
|
<div>
|
|
©{`${copyrightDate}`} {siteConfig('AUTHOR')}.
|
|
</div>
|
|
<div>All rights reserved.</div>
|
|
<div>
|
|
Powered by
|
|
<a
|
|
href='https://github.com/tangly1024/NotionNext'
|
|
className=' hover:underline'>
|
|
NotionNext {siteConfig('VERSION')}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
)
|
|
}
|