Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change meta data #193

Open
wants to merge 3 commits into
base: suite
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/components/PageContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import React from 'react'
import { Helmet } from 'react-helmet-async'
import { Container } from '@mui/material'
import { StringArraySupportOption } from 'prettier'

export default function PageContainer({
pageTitle,
metaContent,
metaKeywords,
children,
}: {
pageTitle: string
metaContent: string
metaKeywords?: string
children: React.ReactNode
}) {
return (
<Container maxWidth="xl" sx={{ minHeight: '500px', p: '0px !important' }}>
<Helmet>
<title>{pageTitle}</title>
<meta name="description" content={metaContent} />
<meta name="keywords" content={metaKeywords} />
</Helmet>
{children}
</Container>
Expand Down
6 changes: 5 additions & 1 deletion src/app/pages/CChainPages/CChainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ export default function CChainPage() {
}

return (
<PageContainer pageTitle="C chain" metaContent="chain-overview c-chain">
<PageContainer
pageTitle="C chain"
metaContent="Track and analyze transactions, smart contracts, and dApps on Camino C-Chain. Explore travel-related on-chain data on Camino Network's EVM-compatible C-Chain."
metaKeywords="Camino C-Chain"
>
{isError && error ? (
<>
<Typography
Expand Down
6 changes: 5 additions & 1 deletion src/app/pages/PChainPages/PChainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ export default function PChainPage() {
})

return (
<PageContainer pageTitle="P chain" metaContent="chain-overview p-chain">
<PageContainer
pageTitle="P chain"
metaContent="Explore Camino P-Chain on-chain transactions for managing validators, network governance, and subnet development."
metaKeywords="Camino P-Chain"
>
<DataControllers />
<OverviewCards
numberOfTransactions={numberOfTransactions}
Expand Down
6 changes: 5 additions & 1 deletion src/app/pages/Statistics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ const Statistics: FC = () => {
const dark = theme.palette.mode === 'light' ? false : true

return (
<PageContainer pageTitle="Statistics" metaContent="statistics">
<PageContainer
pageTitle="Camino Statistics and Blockchain Data Dashboard"
metaContent="Explore the Camino statistics dashboard for real-time data on network activity, transactions, gas, wallets, and more. Keep track of the travel blockchain performance."
metaKeywords='Camino Statistics'
>
<Paper
variant="outlined"
square
Expand Down
6 changes: 5 additions & 1 deletion src/app/pages/Validators/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ const Validators: FC = () => {
}

return (
<PageContainer pageTitle="Validators" metaContent="validators">
<PageContainer
pageTitle="Camino Validators"
metaContent="Discover the active validators on Camino Network. View detailed node stats, uptime, and contributions to monitor the network security and governance."
metaKeywords="Camino Validators"
>
<Paper
variant="outlined"
square
Expand Down
7 changes: 5 additions & 2 deletions src/app/pages/XChainPages/XChainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { getChainID } from 'api/utils'
import { XPTransaction } from 'types/transaction'

export default function XChainPage() {

const routesConfig = RoutesConfig()
const dispatch = useAppDispatch()
const CHAIN_ID = getChainID('x')
Expand All @@ -34,7 +33,11 @@ export default function XChainPage() {
})

return (
<PageContainer pageTitle="X chain" metaContent="chain-overview x-chain">
<PageContainer
pageTitle="X chain"
metaContent="Explore Camino X-Chain DAG-based transaction processing for secure, efficient asset creation, management, and exchange on Camino Network."
metaKeywords="Camino X-Chain"
>
<DataControllers />
<OverviewCards
numberOfTransactions={numberOfTransactions}
Expand Down
Loading