Skip to content

Commit a00e0ae

Browse files
authored
Fix: og:image aspect-ratio for social preview issue: (chaynHQ#998)
* Fix: og:image aspect-ratio issue: * Add: png image to og meta and root of project * Update OpenGraphMetadata and add preview images
1 parent e688c00 commit a00e0ae

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

components/head/OpenGraphMetadata.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
import Head from 'next/head';
2-
import { BASE_URL } from '../../constants/common';
31
import theme from '../../styles/theme';
42

53
const descriptionContent =
64
'Join us on your healing journey. Bloom is here for you to learn, heal and grow towards a confident future. It is bought to you by Chayn, a global non-profit, run by survivors and allies from around the world.';
75
const twitterDescriptionContent =
86
'Join us on your healing journey. Bloom is here for you to learn, heal and grow towards a confident future. It is bought to you by Chayn, a global non-profit, run by survivors and allies from around the world.';
9-
const imageContent = `${BASE_URL}/public/bloom_socials_preview.png`;
107
const imageAltContent =
118
'An cartoon drawing of a person with almost shoulder length hair against a pink background. They have flowers and leaves coming out of their head. The word "Bloom" hovers above the person.';
129

@@ -15,14 +12,14 @@ const OpenGraphMetadata = () => {
1512
<>
1613
<meta property="og:title" content="Welcome to Bloom" key="og-title" />
1714
<meta property="og:description" content={descriptionContent} key="og-description" />
18-
<meta property="og:image" content={imageContent} key="og-image"></meta>
19-
<meta property="og:image:alt" content={imageAltContent} key="og-image-alt"></meta>
20-
<meta name="twitter:card" content="summary_large_image" key="twitter-card"></meta>
15+
<meta property="og:image" content="/preview.png" key="og-image" />
16+
<meta property="og:image:alt" content={imageAltContent} key="og-image-alt" />
17+
<meta name="twitter:card" content="summary_large_image" key="twitter-card" />
2118
<meta
2219
name="twitter:description"
2320
content={twitterDescriptionContent}
2421
key="twitter-desc"
25-
></meta>
22+
/>
2623
{/** PWA specific tags **/}
2724
<link rel="manifest" href="/manifest.json" />
2825
<link rel="apple-touch-icon" href="/icons/apple/icon-120x120.png"></link>

preview.png

157 KB
Loading

public/preview.png

157 KB
Loading

0 commit comments

Comments
 (0)