From 71b4a0cd8fc4d486654cabddbe4a5c31c8375a58 Mon Sep 17 00:00:00 2001 From: Iris Date: Wed, 7 Aug 2024 12:40:34 +0200 Subject: [PATCH] feat: update metdata (#16) --- app/layout.tsx | 61 +++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index d8ecf9d..d53c945 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,38 +1,37 @@ import React from "next"; import "./styles/globals.css"; import { Providers } from "./provider"; -// import type { Metadata } from "next"; +import type { Metadata } from "next"; -// todo: update with right values -// export const metadata: Metadata = { -// title: "The ETH button", -// description: "Generated by create next app", -// metadataBase: new URL(process.env.NEXT_PUBLIC_APP_LINK as string), -// openGraph: { -// title: "The ETH button", -// description: "Generated by create next app", -// url: process.env.NEXT_PUBLIC_APP_LINK, -// siteName: "The ETH button", -// images: [ -// { -// url: "/visuals/twitterImage.webp", -// width: 680, -// height: 680, -// }, -// ], -// locale: "en_US", -// type: "website", -// }, -// icons: { -// icon: "/icons/theethbutton.svg", -// }, -// twitter: { -// card: "summary_large_image", -// title: "The ETH button", -// description: "Generated by create next app", -// images: ["/visuals/twitterImage.webp"], -// }, -// }; +export const metadata: Metadata = { + title: "The ETH button", + description: "One Blockchain, 5 $ETH, One button.", + metadataBase: new URL(process.env.NEXT_PUBLIC_APP_LINK as string), + openGraph: { + title: "The ETH button", + description: "One Blockchain, 5 $ETH, One button.", + url: process.env.NEXT_PUBLIC_APP_LINK, + siteName: "The ETH button", + images: [ + { + url: "/visuals/twitterImage.webp", + width: 680, + height: 680, + }, + ], + locale: "en_US", + type: "website", + }, + icons: { + icon: "/icons/theethbutton.svg", + }, + twitter: { + card: "summary_large_image", + title: "The ETH button", + description: "One Blockchain, 5 $ETH, One button.", + images: ["/visuals/twitterImage.webp"], + }, +}; export default function RootLayout({ children,