Files
NotionNext/themes/photo/components/ArticleInfo.js
2024-11-04 10:57:09 +08:00

24 lines
557 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 文章页头
* @param {*} props
* @returns
*/
export const ArticleHeader = props => {
const { post } = props
return (
<section className='w-full mx-auto mb-4'>
{/* 标题部分 */}
{/* 将标题字体大小设置为 16px并将字体粗细设置为细体 */}
<h2
className='py-10 dark:text-white text-center'
style={{
fontSize: '16px', // 设置字体大小为 16px
fontWeight: '300' // 设置字体粗细为细体
}}>
{post?.title}
</h2>
</section>
)
}