Files
NotionNext/themes/typography/components/Footer.js
Blackberry009 c8c7769e9a 黑暗模式
2025-06-13 18:23:27 +08:00

30 lines
797 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)] dark:text-white py-6 text-sm flex flex-col gap-2 items-center'>
<div>
&copy;{`${copyrightDate}`} {siteConfig('AUTHOR')}.
</div>
<div>All rights reserved.</div>
</div>
</footer>
)
}