Skip to content

Commit

Permalink
add opengraph metadata #7
Browse files Browse the repository at this point in the history
add opengraph metadata
  • Loading branch information
jazz-cb authored Sep 17, 2024
2 parents a900f25 + 7472182 commit fa9b148
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 13 deletions.
53 changes: 40 additions & 13 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ import './globals.css'

const inter = Inter({ subsets: ['latin'] })

export const metadata = {
title: 'CDP SDK Demo Apps',
description: 'Explore demo applications built with CDP (Coinbase Developer Platform) SDK.',
openGraph: {
title: 'CDP SDK Demo Apps',
description: 'Explore demo applications built with CDP (Coinbase Developer Platform) SDK.',
url: 'https://cdpsdk.xyz',
siteName: 'CDP SDK Demos',
images: [
{
url: '/cdp-sample-apps.png',
width: 1200,
height: 630,
alt: 'CDP SDK Demo Apps',
},
],
locale: 'en_US',
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: 'CDP SDK Demo Apps',
description: 'Explore demo applications built with CDP (Coinbase Developer Platform) SDK.',
images: ['/cdp-sample-apps.png'],
},
}

export default function RootLayout({
children,
}: {
Expand Down Expand Up @@ -46,19 +73,19 @@ export default function RootLayout({
{children}
</main>
<footer className="py-10 text-center text-gray-600 bg-white mt-20 border-t border-lavender-200">
<p>&copy; 2024 CDP SDK. All rights reserved.</p>
<p>
By using this app, you agree to the{' '}
<a
href="https://www.coinbase.com/legal/cloud/terms-of-service"
target="_blank"
rel="noopener noreferrer"
className="text-blue-600 hover:text-blue-800 underline"
>
Terms of Service
</a>
</p>
</footer>
<p>&copy; 2024 CDP SDK. All rights reserved.</p>
<p>
By using this app, you agree to the{' '}
<a
href="https://www.coinbase.com/legal/cloud/terms-of-service"
target="_blank"
rel="noopener noreferrer"
className="text-blue-600 hover:text-blue-800 underline"
>
Terms of Service
</a>
</p>
</footer>
</div>
</body>
</html>
Expand Down
Binary file added public/cdp-sample-apps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fa9b148

Please sign in to comment.