Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
refactor: update home page metadata (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 authored Apr 5, 2024
1 parent 246886d commit 1ed4db5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
6 changes: 6 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -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 <PageSelect />;
}
6 changes: 6 additions & 0 deletions src/app/records/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 6 additions & 0 deletions src/app/records/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<>
Expand Down

0 comments on commit 1ed4db5

Please sign in to comment.