diff --git a/apps/playground/package.json b/apps/playground/package.json
index e815de1d1..e8bbc59b8 100644
--- a/apps/playground/package.json
+++ b/apps/playground/package.json
@@ -20,6 +20,7 @@
"@meshsdk/react": "*",
"@next/mdx": "^14.2.3",
"@next/third-parties": "^14.2.5",
+ "@vercel/og": "^0.6.3",
"copy-to-clipboard": "^3.3.3",
"flowbite": "^2.5.1",
"flowbite-react": "^0.9.0",
diff --git a/apps/playground/src/components/sections/hero-two-sections.tsx b/apps/playground/src/components/sections/hero-two-sections.tsx
index 6b525d7cf..33ec15fb1 100644
--- a/apps/playground/src/components/sections/hero-two-sections.tsx
+++ b/apps/playground/src/components/sections/hero-two-sections.tsx
@@ -42,7 +42,7 @@ export default function HeroTwoSections({
{code && }
- {children && children}
+ {children &&
{typeof image === "string" ?
: image}
diff --git a/apps/playground/src/components/site/metatags.tsx b/apps/playground/src/components/site/metatags.tsx
index 10d0911e0..c5270fe8d 100644
--- a/apps/playground/src/components/site/metatags.tsx
+++ b/apps/playground/src/components/site/metatags.tsx
@@ -4,7 +4,7 @@ export default function Metatags({
title,
keywords,
description,
- image = "/logo-mesh/mesh.png",
+ image,
}: {
title?: string;
keywords?: string;
@@ -15,43 +15,57 @@ export default function Metatags({
description =
"Intuitive and easy-to-use Web3 development framework to build amazing applications on Cardano.";
}
+
if (keywords === undefined) {
keywords =
"developer, tools, cardano, blockchain, sdk, plutus, crypto, web3, metaverse, gaming, ecommerce, nfts, apis, aiken";
}
+
if (title === undefined) {
- title = "Cardano Web3 TypeScript SDK & off-chain Framework";
+ title = "Mesh JS - Cardano Web3 TypeScript SDK & Off-Chain Framework";
+ } else {
+ title = title + " - Mesh JS";
}
- title = title + " - Mesh JS";
-
return (
-
{title}
+ {title &&
{title}}
-
-
+ {title &&
}
+ {title &&
}
{image && (
)}
- {image &&
}
+ {title && image === undefined && (
+
+ )}
+ {title &&
}
-
+ {title &&
}
{image && (
-
+
+ )}
+ {title && image === undefined && (
+
)}
- {image &&
}
+ {title &&
}
{
Whoops! This page doesn't exist.
+
+ Check the links below to find what you're looking for.
diff --git a/apps/playground/src/pages/_app.tsx b/apps/playground/src/pages/_app.tsx
index e2ffc9d81..e646e218a 100644
--- a/apps/playground/src/pages/_app.tsx
+++ b/apps/playground/src/pages/_app.tsx
@@ -9,7 +9,6 @@ import { Toaster } from "react-hot-toast";
import { MeshProvider } from "@meshsdk/react";
import Footer from "~/components/site/footer";
-import Metatags from "~/components/site/metatags";
import Navbar from "~/components/site/navbar";
import Providers from "~/contexts/providers";
@@ -19,7 +18,6 @@ export default function App({ Component, pageProps }: AppProps) {
return (