Skip to content

Commit 2aad56c

Browse files
committed
Center title and enlarge section label on OG cards
1 parent e457db2 commit 2aad56c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/generateOgImages.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ function card(title, pagePath) {
100100
el(
101101
'div',
102102
{
103-
marginTop: 'auto',
104-
marginBottom: 'auto',
103+
flexGrow: 1,
104+
display: 'flex',
105+
alignItems: 'center',
105106
fontSize: title.length > 24 ? 72 : 96,
106107
fontFamily: 'Optimistic Display Bold',
107108
color: '#f6f7f9',
@@ -113,7 +114,7 @@ function card(title, pagePath) {
113114
el(
114115
'div',
115116
{
116-
fontSize: 32,
117+
fontSize: 40,
117118
fontFamily: 'Optimistic Display Medium',
118119
color: '#99a1b3',
119120
},

0 commit comments

Comments
 (0)