Skip to content

Commit

Permalink
Merge pull request #17 from GovTechSG/staging
Browse files Browse the repository at this point in the history
release: refactor og tags
  • Loading branch information
superical authored Nov 16, 2023
2 parents be4f735 + ff948b6 commit f3593e3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packages/app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ const App: AppType<{ session: Session | null }> = ({ Component, pageProps }: App
<>
<Head>
<title>Purpose Bound Money (PBM) Portal</title>
<meta property="og:image:type" content="image/png" />
<meta property="og:image:type" content="website" />
<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" />
<meta property="og:image:alt" content="Purpose Bound Money (PBM) Portal" />
<meta property="og:title" content="Purpose Bound Money (PBM) Portal" />
<meta name="twitter:card" content="summary_large_image" />
<meta
property="og:description"
content="A protocol, developed as part of Project Orchid, enabling the use of digital money with automated on-chain escrow payment releases."
/>
</Head>

<Script src={`https://www.googletagmanager.com/gtag/js?id=${gaMeasurementId}`} />
Expand Down
17 changes: 17 additions & 0 deletions packages/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ export const metadata: Metadata = {
},
manifest: "/site.webmanifest",
metadataBase: new URL(process.env.NEXT_PUBLIC_BASE_URL!),
openGraph: {
type: "website",
title: "The Purpose Bound Money (PBM)",
description:
"A protocol, developed as part of Project Orchid, enabling the use of digital money with automated on-chain escrow payment releases.",
images: [
{
url: "/opengraph-image.png",
width: 1200,
height: 630,
alt: "Purpose Bound Money (PBM)",
},
],
},
};

export default function RootLayout({
Expand All @@ -48,6 +62,9 @@ export default function RootLayout({
// noinspection HtmlRequiredTitleElement
return (
<html lang="en">
<head>
<meta name="twitter:card" content="summary_large_image" />
</head>
<body
className={`${inter.variable} ${architects_daughter.variable} font-inter antialiased bg-white text-gray-700 tracking-tight bg-top bg-no-repeat bg-auto bg-blend-multiply bg-page`}
>
Expand Down
1 change: 0 additions & 1 deletion packages/web/app/opengraph-image.alt.txt

This file was deleted.

File renamed without changes

0 comments on commit f3593e3

Please sign in to comment.