Skip to content

Commit

Permalink
Merge pull request #11 from GovTechSG/release/opengraph
Browse files Browse the repository at this point in the history
release: add opengraph tags
  • Loading branch information
superical authored Nov 15, 2023
2 parents 4c636c9 + 8c246a5 commit 811b076
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Binary file added packages/app/public/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { PBMTokenProvider } from '@app/contexts/pbm-token-context'
import { WagmiRainbowKitProvider } from '@app/utils/wagmi-provider'
import type { Session } from 'next-auth'
import { AppProps, type AppType } from 'next/app'
import Head from 'next/head'
import Script from 'next/script'
import React from 'react'

Expand All @@ -15,6 +16,15 @@ const App: AppType<{ session: Session | null }> = ({ Component, pageProps }: App

return (
<>
<Head>
<title>Purpose Bound Money (PBM) Portal</title>
<meta property="og:image:type" content="image/png" />
<meta property="og:image" content="/opengraph-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Purpose Bound Money Portal" />
</Head>

<Script src={`https://www.googletagmanager.com/gtag/js?id=${gaMeasurementId}`} />
<Script id="google-analytics">
{`
Expand Down
1 change: 1 addition & 0 deletions packages/web/app/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Project Orchid – Purpose Bound Money (PBM)
Binary file added packages/web/app/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 811b076

Please sign in to comment.