From 0c5e42d8c359239b4ecdd983fb5b23d219c6c1fe Mon Sep 17 00:00:00 2001 From: Daniel Helm Date: Wed, 12 Jan 2022 09:48:09 -0600 Subject: [PATCH] fix brand color and image compression artifacts --- packages/website/src/images/logo.svg | 6 +++--- packages/website/src/pages/news.js | 16 +++++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/packages/website/src/images/logo.svg b/packages/website/src/images/logo.svg index 16c695f9..1cf1118d 100644 --- a/packages/website/src/images/logo.svg +++ b/packages/website/src/images/logo.svg @@ -2,7 +2,7 @@ - - - + + + \ No newline at end of file diff --git a/packages/website/src/pages/news.js b/packages/website/src/pages/news.js index f3b9a220..ebc7374e 100644 --- a/packages/website/src/pages/news.js +++ b/packages/website/src/pages/news.js @@ -24,12 +24,12 @@ const NewsCard = ({ frontmatter, fields }) => { )} - + {title} {description && ( - + {description} )} @@ -49,7 +49,7 @@ const NewsPage = ({ data }) => {
{/* this is the gray box in the top left corner, 400px height is totally arbitrary but it works */}
@@ -81,12 +81,18 @@ export const query = graphql` external thumbnail { childImageSharp { - gatsbyImageData(width: 320, height: 170, placeholder: BLURRED, transformOptions: { cropFocus: CENTER }) + gatsbyImageData( + width: 320 + height: 170 + placeholder: BLURRED + formats: [AUTO, AVIF, WEBP] + transformOptions: { fit: COVER, cropFocus: CENTER } + ) } } avatar { childImageSharp { - gatsbyImageData(width: 40, placeholder: BLURRED, transformOptions: { cropFocus: CENTER }) + gatsbyImageData(width: 40, placeholder: BLURRED, transformOptions: { fit: COVER, cropFocus: CENTER }) } } }