Files
NotionNext/themes/typography/components/Footer.js
Blackberry009 d8db32d71a 优化css
2025-06-13 16:56:24 +08:00

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>
&copy;{`${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>
)
}