-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2041 from ten-protocol/jennifer/3414-add-seo-desc…
…riptions-and-titles-to-page-headers-for-our-tools Update SEO assets and metadata
- Loading branch information
Showing
22 changed files
with
392 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import Head from "next/head"; | ||
import { siteMetadata } from "../lib/siteMetadata"; | ||
import { SeoProps } from "../types"; | ||
|
||
const HeadSeo = ({ | ||
title, | ||
description, | ||
canonicalUrl, | ||
ogTwitterImage, | ||
ogImageUrl, | ||
ogType, | ||
includeDefaultKeywords = true, | ||
children, | ||
}: SeoProps) => { | ||
return ( | ||
<Head> | ||
{/* Basic metadata */} | ||
<title>{title}</title> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name={siteMetadata.metaTitle} content={siteMetadata.companyName} /> | ||
{includeDefaultKeywords && ( | ||
<meta name="keywords" content={siteMetadata.keywords} /> | ||
)} | ||
{/* Beagle Security */} | ||
<meta | ||
name="_vgeujvlkxz15hyr8vbuvqxnfmzlkm059" | ||
// @ts-ignore | ||
signature="_vd3udx2g2hfn9zclob5cat43b94q7fyk" | ||
></meta> | ||
{/* to indicate the browser shouldn't interpret the response as something other than the specified content type */} | ||
<meta http-equiv="X-Content-Type-Options" content="nosniff"></meta> | ||
{/* twitter metadata */} | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:site" content={siteMetadata.twitterHandle} /> | ||
<meta name="twitter:title" content={title} /> | ||
<meta name="twitter:description" content={description} /> | ||
<meta name="twitter:image" content={decodeURIComponent(ogTwitterImage)} /> | ||
{/* canonical link */} | ||
<link rel="canonical" href={canonicalUrl} /> | ||
{/* open graph metadata */} | ||
<meta property="og:locale" content="en_US" /> | ||
<meta property="og:site_name" content={siteMetadata.companyName} /> | ||
<meta property="og:type" content={ogType} key="og-type" /> | ||
<meta property="og:title" content={title} key="og-title" /> | ||
<meta | ||
property="og:description" | ||
content={description} | ||
key="og-description" | ||
/> | ||
<meta | ||
property="og:image" | ||
content={decodeURIComponent(ogImageUrl)} | ||
key="og-image" | ||
/> | ||
<meta property="og:url" content={canonicalUrl} key="og-url" /> | ||
{children} | ||
</Head> | ||
); | ||
}; | ||
|
||
export default HeadSeo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { environment, socialLinks } from "./constants"; | ||
|
||
export const siteMetadata = { | ||
companyName: "TEN Bridge", | ||
metaTitle: " TEN Bridge | Cross-Chain Transactions Made Easy", | ||
description: | ||
"Bridge tokens between Layer 1 and Layer 2 networks effortlessly with TEN Bridge. Ensure secure and efficient cross-chain transactions", | ||
keywords: | ||
"token bridging, cross-chain transactions, Layer 1 to Layer 2 bridge, blockchain bridge, Ten Bridge, crypto bridging, TEN network, TEN blockchain, TEN ecosystem", | ||
siteUrl: `https://${environment}-bridge.ten.xyz`, | ||
siteLogo: `/assets/images/cover.png`, | ||
siteLogoSquare: `/assets/images/cover.png`, | ||
email: "[email protected]", | ||
twitter: socialLinks.twitter, | ||
twitterHandle: socialLinks.twitterHandle, | ||
github: socialLinks.github, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
|
||
export interface SeoProps { | ||
title: string; | ||
description: string; | ||
canonicalUrl: string; | ||
ogTwitterImage: string; | ||
ogImageUrl: string; | ||
ogType: string; | ||
includeDefaultKeywords?: boolean; | ||
children?: React.ReactNode; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.