This commit is contained in:
Travis Fischer
2021-01-17 22:18:31 -05:00
parent 5072e28988
commit f6f31495a2
3 changed files with 6 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ async function createSocialImage(params: SocialImageConfig) {
const res = await renderSocialImage({
template: 'article',
templateParams: params,
templateStyles: `h1 { font-size: 96px; text-align: center; } h2 { font-size: 32px; text-align: center; }`,
templateStyles: `h1 { font-size: 96px; text-align: center; } h2 { margin-top: 48px; font-size: 48px; text-align: center; }`,
size: params.size,
browser
})

View File

@@ -40,7 +40,7 @@
"p-map": "^4.0.0",
"p-memoize": "^4.0.0",
"puppeteer-core": "^5.5.0",
"puppeteer-social-image-transitive-bs": "^0.8.1",
"puppeteer-social-image-transitive-bs": "^0.8.2",
"react": "17.0.1",
"react-body-classname": "^1.3.1",
"react-dom": "17.0.1",

View File

@@ -3922,10 +3922,10 @@ puppeteer-core@^5.5.0:
unbzip2-stream "^1.3.3"
ws "^7.2.3"
puppeteer-social-image-transitive-bs@^0.8.1:
version "0.8.1"
resolved "https://registry.yarnpkg.com/puppeteer-social-image-transitive-bs/-/puppeteer-social-image-transitive-bs-0.8.1.tgz#388379fd555e9ce4798629099dd4e6c0bcf161be"
integrity sha512-jYasq40M/p8gmeBYGj5/vVTwRnY2eHG9HhMBLazVPl6x4Pu7pFF9MTVkB+NLHJvyIsaayeLht+TYrnIEGXBCHg==
puppeteer-social-image-transitive-bs@^0.8.2:
version "0.8.2"
resolved "https://registry.yarnpkg.com/puppeteer-social-image-transitive-bs/-/puppeteer-social-image-transitive-bs-0.8.2.tgz#1bf09ed377aeb933af6a486f1fc1621638341825"
integrity sha512-D5CJSrIzWSn361DLuYlJpHZaMJgQIwXty9a9gdRJgxX45imza1j4nSGiawfTi2oQ9uT2qvsyIo/sy5C0k7/miQ==
dependencies:
"@babel/polyfill" "^7.4.4"
handlebars "^4.1.2"