Skip to content

Commit

Permalink
feat: use metadata object
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukTheCoder committed Dec 21, 2024
1 parent fb1141f commit 061d518
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,35 @@ const APP_NAME = 'Rango Exchange Explorer';

export const metadata: Metadata = {
title: 'Rango Exchange Explorer',
description: description,
keywords:
'Rango Exchange, Rango dApp, Multi-chain DEX aggregator, Cross-Chain Swap, binance bridge, 1inch, crypto API, Metamask',
icons: {
icon: '/favicon.svg',
shortcut: {
url: '/favicon.png',
type: 'image/png',
},
},
twitter: {
card: 'summary_large_image',
site: '@rangoexchange',
title: 'socialTitle',
description,
creator: '@rangoexchange',
images: 'https://scan.rango.exchange/preview.jpg',
},
openGraph: {
title: socialTitle,
type: 'website',
url: `${BASE_URL}/`,
images: {
url: 'https://scan.rango.exchange/preview.jpg',
alt: 'Rango Exchange Explorer',
},
description,
siteName: APP_NAME,
},
};

export default function RootLayout({
Expand All @@ -19,36 +48,6 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<head>
<link rel="icon" href="/favicon.svg" />
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
<meta name="Description" content={description} />
<meta
name="keywords"
content="Rango Exchange, Rango dApp, Multi-chain DEX aggregator, Cross-Chain Swap, binance bridge, 1inch, crypto API, Metamask"
/>

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@rangoexchange" />
<meta name="twitter:title" content={socialTitle} />
<meta name="twitter:description" content={description} />
<meta name="twitter:creator" content="@rangoexchange" />
<meta
name="twitter:image"
content="https://scan.rango.exchange/preview.jpg"
/>

<meta property="og:title" content={socialTitle} />
<meta property="og:type" content="site" />
<meta property="og:url" content={`${BASE_URL}/`} />
<meta
property="og:image"
content="https://scan.rango.exchange/preview.jpg"
/>
<meta property="og:image:alt" content="Rango Exchange Explorer" />
<meta property="og:description" content={description} />
<meta property="og:site_name" content={APP_NAME} />
</head>
<body className="bg-background max-h-full w-full">
<Header theme={'light'} />
<main className="w-full min-h-600 md:min-h-[800px] pb-30 md:pb-50 bg-neutral-300 bg-body-mask bg-cover">
Expand Down

0 comments on commit 061d518

Please sign in to comment.