部分组件统一;magzine页脚微调

This commit is contained in:
tangly1024.com
2024-10-31 12:19:24 +08:00
parent 176b66ef6a
commit 5347ffe7db
21 changed files with 324 additions and 224 deletions

View File

@@ -0,0 +1,26 @@
import { siteConfig } from '@/lib/config'
/**
* 网站版权日期
* 示例: 2021-2024
* @returns
*/
export default function CopyRightDate() {
const d = new Date()
const currentYear = d.getFullYear()
const since = siteConfig('SINCE')
const copyrightDate =
parseInt(since) < currentYear ? since + '-' + currentYear : currentYear
return (
<span className='whitespace-nowrap flex items-center gap-x-1'>
<i className='fas fa-copyright' />
<span>{copyrightDate}</span>
<a
href={siteConfig('LINK')}
className='underline font-semibold dark:text-gray-300 '>
{siteConfig('AUTHOR')}
</a>
</span>
)
}