From 1ed4db5404e39df1a4085f229d36e8b5d9d450fb Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 5 Apr 2024 12:07:09 +0800 Subject: [PATCH] refactor: update home page metadata (#15) --- src/app/layout.tsx | 4 ++-- src/app/page.tsx | 6 ++++++ src/app/records/[id]/page.tsx | 6 ++++++ src/app/records/page.tsx | 6 ++++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a43ce551..494d6507 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -14,8 +14,8 @@ const ibm_plex_sans = IBM_Plex_Sans({ }); export const metadata: Metadata = { - title: "Darwinia xToken - Helix Bridge", - description: "Darwinia xToken cross-chain powered by Helix Bridge.", + title: "Helix xToken - Helix Bridge", + description: "Helix Bridge for xToken cross-chain.", }; export default function RootLayout({ children }: { children: React.ReactNode }) { diff --git a/src/app/page.tsx b/src/app/page.tsx index 09146587..284506da 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,13 @@ +import { Metadata } from "next"; import dynamic from "next/dynamic"; const PageSelect = dynamic(() => import("@/components/page-select"), { ssr: false }); +export const metadata: Metadata = { + title: "Darwinia xToken - Helix Bridge", + description: "Darwinia xToken cross-chain powered by Helix Bridge.", +}; + export default function Home() { return ; } diff --git a/src/app/records/[id]/page.tsx b/src/app/records/[id]/page.tsx index 1ca3efa7..b9ca9433 100644 --- a/src/app/records/[id]/page.tsx +++ b/src/app/records/[id]/page.tsx @@ -2,6 +2,12 @@ import Footer from "@/components/footer"; import Header from "@/components/header"; import RecordDetail from "@/components/record-detail"; import PageWrap from "@/ui/page-wrap"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "Darwinia xToken - Helix Bridge", + description: "Darwinia xToken cross-chain powered by Helix Bridge.", +}; interface Props { params: { diff --git a/src/app/records/page.tsx b/src/app/records/page.tsx index dc7c10ac..6dcbf640 100644 --- a/src/app/records/page.tsx +++ b/src/app/records/page.tsx @@ -1,10 +1,16 @@ import Footer from "@/components/footer"; import Header from "@/components/header"; import PageWrap from "@/ui/page-wrap"; +import { Metadata } from "next"; import dynamic from "next/dynamic"; const HistoryRecords = dynamic(() => import("@/components/history-records")); +export const metadata: Metadata = { + title: "Darwinia xToken - Helix Bridge", + description: "Darwinia xToken cross-chain powered by Helix Bridge.", +}; + export default function RecordsPage() { return ( <>