mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
40 lines
1.7 KiB
JavaScript
40 lines
1.7 KiB
JavaScript
import React from 'react'
|
|
import BLOG from '@/blog.config'
|
|
import DarkModeButton from '@/components/DarkModeButton'
|
|
|
|
const Footer = ({ title }) => {
|
|
const d = new Date()
|
|
const currentYear = d.getFullYear()
|
|
const copyrightDate = (function () {
|
|
if (Number.isInteger(BLOG.SINCE) && BLOG.SINCE < currentYear) {
|
|
return BLOG.SINCE + '-' + currentYear
|
|
}
|
|
return currentYear
|
|
})()
|
|
|
|
return (
|
|
<footer
|
|
className='max-w-3xl z-10 dark:bg-hexo-black-gray flex-shrink-0 justify-center text-center mx-auto w-full leading-6 text-sm px-6 pb-6 relative'
|
|
>
|
|
<hr />
|
|
|
|
<div className='flex justify-between'>
|
|
<div className='flex'>© {`${copyrightDate}`} <div><i className='mx-1 animate-pulse fas fa-heart' /> <a href={BLOG.LINK} className='underline font-bold text-gray-500 dark:text-gray-300 '>{BLOG.AUTHOR}</a>.<br /></div></div>
|
|
<div className='text-xs font-serif'><a href='https://github.com/tangly1024/NotionNext' className='underline text-gray-500 dark:text-gray-300'>NotionNext {BLOG.VERSION}</a></div>
|
|
</div>
|
|
|
|
{BLOG.BEI_AN && <><i className='fas fa-shield-alt' /> <a href='https://beian.miit.gov.cn/' className='mr-2'>{BLOG.BEI_AN}</a><br /></>}
|
|
|
|
<span className='hidden busuanzi_container_site_pv'>
|
|
<i className='fas fa-eye' /><span className='px-1 busuanzi_value_site_pv'> </span> </span>
|
|
<span className='pl-2 hidden busuanzi_container_site_uv'>
|
|
<i className='fas fa-users' /> <span className='px-1 busuanzi_value_site_uv'> </span> </span>
|
|
<br />
|
|
<h1>{title}</h1>
|
|
|
|
</footer>
|
|
)
|
|
}
|
|
|
|
export default Footer
|