From 21a74c9707397d07437426b22aef548eae8afcc9 Mon Sep 17 00:00:00 2001 From: Sawit Trisirisatayawong Date: Thu, 2 Feb 2023 19:49:08 +0700 Subject: [PATCH] feat: initial working og --- src/lib/components/Meta.tsx | 33 +++++++++++++++++++++++++++++++-- src/lib/components/Seo.tsx | 2 +- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/lib/components/Meta.tsx b/src/lib/components/Meta.tsx index 257a81b31..c0d62d1fc 100644 --- a/src/lib/components/Meta.tsx +++ b/src/lib/components/Meta.tsx @@ -1,6 +1,10 @@ +import { SELECTED_CHAIN } from "env"; + const APP_NAME = "celatone"; const Meta = () => { + const chainName = SELECTED_CHAIN || ""; + const title = `${chainName.charAt(0).toUpperCase() + chainName.slice(1)}`; return ( <> @@ -10,10 +14,35 @@ const Meta = () => { + {`${title} Explorer | Celatone`} + - + {/* Open Graph / Facebook */} + + + + - + {/* Twitter */} + + + + ); }; diff --git a/src/lib/components/Seo.tsx b/src/lib/components/Seo.tsx index be5e401af..987e3a6f6 100644 --- a/src/lib/components/Seo.tsx +++ b/src/lib/components/Seo.tsx @@ -3,7 +3,7 @@ import { NextSeo } from "next-seo"; export const CelatoneSeo = () => { const { currentChainRecord } = useWallet(); - const title = `Celatone ${currentChainRecord?.chain.pretty_name} Explorer`; + const title = `${currentChainRecord?.chain.pretty_name} Explorer | Celatone`; return (