-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dora Noda
committed
Apr 3, 2024
1 parent
d92bc7e
commit 98ddbe8
Showing
10 changed files
with
76 additions
and
19 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import Head from "next/head"; | ||
import React from "react"; | ||
import { chainConfig } from "@/shared/common/use-chain-config"; | ||
|
||
export const defaultSeoConfig = { | ||
title: chainConfig.chainName, | ||
tagline: `${chainConfig.chainName} Blockchain Explorer`, | ||
previewImageUrl: "/favicon.svg", | ||
description: | ||
"Blockroma is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.", | ||
twitter: "@stargately", | ||
}; | ||
|
||
export const SeoHead: React.FC<{ | ||
config?: Partial<typeof defaultSeoConfig>; | ||
}> = (config = { config: defaultSeoConfig }) => { | ||
const seoConfig = { | ||
...defaultSeoConfig, | ||
...config.config, | ||
}; | ||
return ( | ||
<Head> | ||
<title>{seoConfig.title}</title> | ||
<meta name="twitter:site" content={seoConfig.twitter} /> | ||
<meta name="twitter:image" content={seoConfig.previewImageUrl} /> | ||
<meta name="twitter:title" content={seoConfig.title} /> | ||
<meta name="twitter:description" content={seoConfig.description} /> | ||
<meta property="og:description" content={seoConfig.description} /> | ||
<meta | ||
property="og:image" | ||
name="og:image" | ||
content={seoConfig.previewImageUrl} | ||
/> | ||
</Head> | ||
); | ||
}; |
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