Skip to content

Commit

Permalink
fix: use nextjs conventions for metadata files
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukTheCoder committed Dec 22, 2024
1 parent 2ddf996 commit 466e485
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 73 deletions.
39 changes: 0 additions & 39 deletions public/favicon.svg

This file was deleted.

22 changes: 0 additions & 22 deletions public/manifest.json

This file was deleted.

File renamed without changes
Binary file added src/app/apple-icon2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/apple-icon3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/apple-icon4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/favicon.ico
Binary file not shown.
Binary file added src/app/icon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/icon2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/icon3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/icon4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,17 @@ export const metadata: Metadata = {
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,
},
Expand Down
Binary file added src/app/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions src/app/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"short_name": "Rango Exchange Explorer",
"name": "Rango Exchange Explorer",
"description": "Track all transactions on Rango Exchange",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon",
"purpose": "any maskable"
},
{
"src": "icon2.png",
"type": "image/png",
"sizes": "128x128",
"purpose": "any maskable"
},
{
"src": "icon3.png",
"type": "image/png",
"sizes": "192x192",
"purpose": "any maskable"
},
{
"src": "icon4.png",
"type": "image/png",
"sizes": "256x256",
"purpose": "any maskable"
},
{
"src": "icon5.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "any maskable"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff",
"homepage_url": "https://scan.rango.exchange"
}
1 change: 1 addition & 0 deletions src/app/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rango Exchange
File renamed without changes
8 changes: 8 additions & 0 deletions src/app/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
User-Agent: *
Allow: /

# Host
Host: https://rango.exchange

# Sitemaps
Sitemap: https://rango.exchange/sitemap.xml
31 changes: 31 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import type { MetadataRoute } from 'next';
import { WEBSITE_URL } from 'src/constant/meta';

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: WEBSITE_URL,
priority: 0.9,
},
{
url: `${WEBSITE_URL}/statistics`,
priority: 0.8,
},
{
url: `${WEBSITE_URL}/search`,
priority: 0.8,
},
{
url: `${WEBSITE_URL}/swap`,
priority: 0.8,
},
{
url: `https://app.rango.exchange/`,
priority: 0.9,
},
{
url: `https://docs.rango.exchange`,
priority: 0.9,
},
];
}
1 change: 1 addition & 0 deletions src/app/twitter-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rango Exchange
Binary file added src/app/twitter-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/constant/meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const WEBSITE_URL = 'https://explorer.rango.exchange';

0 comments on commit 466e485

Please sign in to comment.