feat: complete newspaperui component library with docs site
- 18 React components (Layout/Section/Article/Layer/Masthead/Rule + Headline/Subhead/Kicker/BodyText/Quote/Byline/Dateline/Caption + Image/Figure/Video/PullQuote) - Theme: warm off-white palette, Source Serif 4 / Cormorant Garamond / Inter / Noto Serif SC/JP, visual weight mapping, dark mode - Docs: Landing page, 6 Blocks (zh/en/jp), component API docs - GitHub Pages deployment via static export Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,16 @@ export interface BylineProps {
|
||||
children: ReactNode; // e.g. "BY ALICE SMITH"
|
||||
}
|
||||
|
||||
/**
|
||||
* Byline — 署名(Inter small-caps)
|
||||
*
|
||||
* - Inter 字体 + OpenType small-caps 特性
|
||||
* - 用于文章作者署名,通常置于标题下方
|
||||
* - 字号、字重、间距由 visualWeights 数据驱动
|
||||
*
|
||||
* @example
|
||||
* <Byline>BY ALICE SMITH</Byline>
|
||||
*/
|
||||
export const Byline: React.FC<BylineProps> = ({ className, style, children }) => {
|
||||
const config = visualWeights.Byline.Standard!;
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user