From 7f3b91da37e68e7657b34e988044e06eaab28572 Mon Sep 17 00:00:00 2001 From: MananTank Date: Fri, 7 Feb 2025 21:02:35 +0000 Subject: [PATCH] [TOOL-3346] Portal: Add Nebula icon support in dynamic OG image generation (#6199) --- apps/portal/public/og/icons/nebula.svg | 13 +++++++++++++ apps/portal/src/app/nebula/layout.tsx | 4 ++++ apps/portal/src/components/Document/metadata.ts | 1 + 3 files changed, 18 insertions(+) create mode 100644 apps/portal/public/og/icons/nebula.svg diff --git a/apps/portal/public/og/icons/nebula.svg b/apps/portal/public/og/icons/nebula.svg new file mode 100644 index 00000000000..504d50e6b3e --- /dev/null +++ b/apps/portal/public/og/icons/nebula.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/apps/portal/src/app/nebula/layout.tsx b/apps/portal/src/app/nebula/layout.tsx index 2c1a868e190..213305a88e7 100644 --- a/apps/portal/src/app/nebula/layout.tsx +++ b/apps/portal/src/app/nebula/layout.tsx @@ -12,6 +12,10 @@ export default async function Layout(props: { children: React.ReactNode }) { export const metadata = createMetadata({ title: "thirdweb Nebula Documentation", + image: { + title: "Nebula Docs", + icon: "nebula", + }, description: "thirdweb Nebula Docs : explore the Nebula API Reference and unlock the most powerful AI to interact with the blockchain yet.", }); diff --git a/apps/portal/src/components/Document/metadata.ts b/apps/portal/src/components/Document/metadata.ts index 38e329de43b..0312002d8c1 100644 --- a/apps/portal/src/components/Document/metadata.ts +++ b/apps/portal/src/components/Document/metadata.ts @@ -20,6 +20,7 @@ type DynamicImageOptions = { | "storage" | "changelog" | "dotnet" + | "nebula" | "unreal-engine" | "insight"; };