Files
NotionNext/components/Footer.js
tangly1024 dfc0f645d4 Code🤣
2021-09-27 09:33:21 +08:00

24 lines
729 B
JavaScript

import BLOG from '@/blog.config'
import React from 'react'
import SocialButton from '@/components/SocialButton'
const Footer = ({ fullWidth = true }) => {
const d = new Date()
const y = d.getFullYear()
const from = +BLOG.since
return (
<div
className='py-4 flex-shrink-0 m-auto w-full text-gray-500 dark:text-gray-400 bottom-0'
>
<SocialButton/>
<div className='text-sm'>
<span className='fa fa-shield leading-6'><a href='https://beian.miit.gov.cn/' className='ml-1'>闽ICP备20010331号</a></span>
<br/>
<span className='fa fa-copyright leading-6'> {from === y || !from ? y : `${from} - ${y}`} {BLOG.author} </span>
</div>
</div>
)
}
export default Footer