feat: new theme

This commit is contained in:
BlackBerry009
2025-06-08 00:50:22 +08:00
parent cc49407bf1
commit f7ceb2f9ec
27 changed files with 1719 additions and 19 deletions

View File

@@ -0,0 +1,19 @@
import { siteConfig } from '@/lib/config'
/**
* 标题栏
* @param {*} props
* @returns
*/
export const Title = (props) => {
const { post } = props
const title = post?.title || siteConfig('DESCRIPTION')
const description = post?.description || siteConfig('AUTHOR')
return <div className="text-center px-6 py-12 mb-6 bg-gray-100 dark:bg-hexo-black-gray dark:border-hexo-black-gray border-b">
<h1 className=" text-xl md:text-4xl pb-4">{title}</h1>
<p className="leading-loose text-gray-dark">
{description}
</p>
</div>
}