Skip to content

Commit 49284ed

Browse files
authored
Merge pull request #72 from aeternity/feature/add-featured-wallets
Add featured wallets and improve SEO
2 parents 90722ec + a3a6132 commit 49284ed

File tree

7 files changed

+124
-6
lines changed

7 files changed

+124
-6
lines changed

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

public/google720b7348bf455d4b.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: google720b7348bf455d4b.html

public/manifest.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"short_name": "React App",
3-
"name": "Create React App Sample",
2+
"short_name": "Superhero Swap",
3+
"name": "Superhero Swap — Web3 DEX Bridge",
4+
"description": "Swap ETH and aeTH on the æternity blockchain with the Superhero DEX bridge. Fast, low-fee, no KYC.",
45
"icons": [
56
{
67
"src": "favicon.ico",
@@ -18,8 +19,10 @@
1819
"sizes": "512x512"
1920
}
2021
],
21-
"start_url": ".",
22+
"start_url": "/",
23+
"scope": "/",
2224
"display": "standalone",
25+
"orientation": "portrait",
2326
"theme_color": "#000000",
2427
"background_color": "#ffffff"
2528
}

public/robots.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# https://www.robotstxt.org/robotstxt.html
22
User-agent: *
3-
Disallow:
3+
Allow: /
4+
Sitemap: https://swap.superhero.com/sitemap.xml

public/sitemap.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://swap.superhero.com/</loc>
5+
<changefreq>weekly</changefreq>
6+
<priority>1.0</priority>
7+
</url>
8+
</urlset>

src/app/layout.tsx

Lines changed: 102 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,79 @@ const font = Tomorrow({
99
display: 'swap',
1010
});
1111

12+
const siteUrl = 'https://swap.superhero.com'.replace(/\/$/, '');
13+
1214
export const metadata: Metadata = {
13-
title: 'Superhero Swap',
15+
metadataBase: new URL(siteUrl),
16+
applicationName: 'Superhero Swap',
17+
title: {
18+
default: 'Superhero Swap',
19+
template: '%s | Superhero Swap',
20+
},
1421
description:
1522
'Superhero Swap is a simple Web3 DEX bridge on the æternity blockchain. It allows users to swap ETH and aeTH quickly and securely across chains, with low fees and no KYC. Designed for fast cross-chain swaps, it is available within your Superhero wallet and works seamlessly on both desktop and mobile browsers.',
23+
keywords: [
24+
'Superhero Swap',
25+
'æternity',
26+
'aeternity',
27+
'DEX',
28+
'bridge',
29+
'cross-chain',
30+
'ETH',
31+
'aeTH',
32+
'crypto',
33+
'web3',
34+
],
35+
authors: [{ name: 'Superhero' }],
36+
alternates: {
37+
canonical: '/',
38+
languages: {
39+
'en': '/',
40+
},
41+
},
42+
openGraph: {
43+
type: 'website',
44+
url: siteUrl + '/',
45+
title: 'Superhero Swap',
46+
siteName: 'Superhero Swap',
47+
description:
48+
'Swap ETH and aeTH on the æternity blockchain with the Superhero DEX bridge. Fast, low-fee, and no KYC.',
49+
images: [
50+
{
51+
url: '/logo512.png',
52+
alt: 'Superhero Swap',
53+
},
54+
],
55+
},
56+
twitter: {
57+
card: 'summary_large_image',
58+
title: 'Superhero Swap',
59+
description:
60+
'Swap ETH and aeTH on the æternity blockchain with the Superhero DEX bridge. Fast, low-fee, and no KYC.',
61+
images: ['/logo512.png'],
62+
},
63+
robots: {
64+
index: true,
65+
follow: true,
66+
googleBot: {
67+
index: true,
68+
follow: true,
69+
'max-image-preview': 'large',
70+
'max-snippet': -1,
71+
'max-video-preview': -1,
72+
},
73+
},
74+
manifest: '/manifest.json',
75+
icons: {
76+
icon: [
77+
{ url: '/favicon.ico' },
78+
],
79+
apple: [
80+
{ url: '/logo192.png', sizes: '192x192' },
81+
],
82+
},
83+
themeColor: '#000000',
84+
category: 'technology',
1685
};
1786

1887
export default function RootLayout({
@@ -24,6 +93,38 @@ export default function RootLayout({
2493
<html lang="en" className={font.variable}>
2594
<head>
2695
<meta name="theme-color" content="#000000" />
96+
<link rel="canonical" href={`${siteUrl}/`} />
97+
<script
98+
type="application/ld+json"
99+
dangerouslySetInnerHTML={{
100+
__html: JSON.stringify({
101+
'@context': 'https://schema.org',
102+
'@graph': [
103+
{
104+
'@type': 'WebSite',
105+
name: 'Superhero Swap',
106+
url: siteUrl + '/',
107+
description:
108+
'Superhero Swap is a Web3 DEX bridge on the æternity blockchain.',
109+
potentialAction: {
110+
'@type': 'SearchAction',
111+
target: `${siteUrl}/?q={search_term_string}`,
112+
'query-input': 'required name=search_term_string',
113+
},
114+
},
115+
{
116+
'@type': 'Organization',
117+
name: 'Superhero',
118+
url: siteUrl + '/',
119+
logo: {
120+
'@type': 'ImageObject',
121+
url: `${siteUrl}/assets/superheroswaplogo.svg`,
122+
},
123+
},
124+
],
125+
}),
126+
}}
127+
/>
27128
</head>
28129
<body>
29130
<noscript>You need to enable JavaScript to run this app.</noscript>

src/context/AppKitProvider.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ createAppKit({
2222
': -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;',
2323
'--w3m-border-radius-master': '.5px',
2424
},
25+
featuredWalletIds: [
26+
'd15c9975084e5bc349d63aa83be8d9a053941483aa2c3934d00d4c4d73d45667',
27+
'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96'
28+
],
2529
features: {
2630
analytics: false,
2731
email: false,

0 commit comments

Comments
 (0)