Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: og meta tags #31

Merged
merged 2 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,20 @@ const App: AppType<{ session: Session | null }> = ({ Component, pageProps }: App
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Purpose Bound Money (PBM) Portal" />
<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."
/>
<meta property="og:title" content="Purpose Bound Money (PBM) Portal" />
<meta name="twitter:title" content="Purpose Bound Money (PBM) Portal" />
<meta
name="twitter:description"
content="A protocol, developed as part of Project Orchid, enabling the use of digital money with automated on-chain escrow payment releases."
/>
<meta name="twitter:image" content="/opengraph-image.png" />
<meta name="twitter:image:width" content="1200" />
<meta name="twitter:image:height" content="630" />
<meta name="twitter:image:alt" content="Purpose Bound Money (PBM) Portal" />
<meta name="twitter:card" content="summary_large_image" />
<meta
property="og:description"
Expand Down
17 changes: 14 additions & 3 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!),
twitter: {
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.",
card: "summary_large_image",
images: [
{
url: "/opengraph-image.png",
width: 1200,
height: 630,
alt: "Purpose Bound Money (PBM)",
},
],
},
openGraph: {
type: "website",
title: "The Purpose Bound Money (PBM)",
Expand All @@ -62,9 +76,6 @@ 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