@@ -15,11 +15,12 @@ export const OG_SIZE = { width: OG_IMAGE.width, height: OG_IMAGE.height };
1515
1616/**
1717 * @param kicker small caps line above the title, e.g. 'NIT ROURKELA'.
18- * @param kickerSub optional smaller second kicker line, e.g. 'STUDENT ACTIVITY CENTRE PRESENTS'.
18+ * @param kickerSub optional smaller second kicker line, e.g. 'STUDENT ACTIVITY CENTRE'.
19+ * @param kickerTail optional smallest third kicker line, e.g. 'PRESENTS'.
1920 * @param title the big serif line; anything longer than INNOVISION is set smaller and may wrap onto two lines.
2021 * @param subtitle the gold line under the title.
2122 */
22- export async function ogCard ( { kicker, kickerSub, title, subtitle } : { kicker : string ; kickerSub ?: string ; title : string ; subtitle : string } ) {
23+ export async function ogCard ( { kicker, kickerSub, kickerTail , title, subtitle } : { kicker : string ; kickerSub ?: string ; kickerTail ?: string ; title : string ; subtitle : string } ) {
2324 const [ serif , starfield , logo ] = await Promise . all ( [
2425 readFile ( join ( process . cwd ( ) , 'src/assets/fonts/DMSerifDisplay-Regular.ttf' ) ) ,
2526 readFile ( join ( process . cwd ( ) , 'public/assets/starfield.svg' ) ) ,
@@ -44,6 +45,7 @@ export async function ogCard({ kicker, kickerSub, title, subtitle }: { kicker: s
4445 < img src = { `data:image/png;base64,${ logo . toString ( 'base64' ) } ` } alt = "" width = { 84 } height = { 84 } style = { { marginBottom : 18 } } />
4546 < div style = { { color : BONE , fontSize : 20 , letterSpacing : 6 , fontWeight : 700 } } > { kicker } </ div >
4647 { kickerSub && < div style = { { color : BONE , opacity : 0.78 , fontSize : 17 , letterSpacing : 4 , fontWeight : 700 , marginTop : 8 } } > { kickerSub } </ div > }
48+ { kickerTail && < div style = { { color : BONE , opacity : 0.66 , fontSize : 14 , letterSpacing : 4 , fontWeight : 500 , marginTop : 7 } } > { kickerTail } </ div > }
4749 < div
4850 style = { {
4951 display : 'flex' , justifyContent : 'center' , maxWidth : 470 , textAlign : 'center' , color : '#fff' , fontFamily : 'DM Serif Display' ,
0 commit comments