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

add opengraph metadata #7

Merged
merged 4 commits into from
Sep 17, 2024
Merged
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
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.
Loading