diff --git a/apps/web/package.json b/apps/web/package.json index 0f11e24b..b4a0561f 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -22,6 +22,7 @@ "@trpc/next": "^10.26.0", "@trpc/react-query": "^10.26.0", "@trpc/server": "^10.26.0", + "@vercel/analytics": "^1.2.2", "alchemy-sdk": "^2.8.3", "clsx": "^2.1.0", "design-system": "workspace:*", diff --git a/apps/web/public/medias/bridge_thumbnail.png b/apps/web/public/medias/bridge_thumbnail.png new file mode 100644 index 00000000..d47ad6ea Binary files /dev/null and b/apps/web/public/medias/bridge_thumbnail.png differ diff --git a/apps/web/src/app/(routes)/layout.tsx b/apps/web/src/app/(routes)/layout.tsx index 75c9f968..da3d860b 100644 --- a/apps/web/src/app/(routes)/layout.tsx +++ b/apps/web/src/app/(routes)/layout.tsx @@ -1,38 +1,33 @@ -"use client"; - +import { Analytics } from "@vercel/analytics/react"; import clsx from "clsx"; -// import { type Metadata } from "next"; +import { type Metadata } from "next"; import localFont from "next/font/local"; +import { type PropsWithChildren } from "react"; import "~/styles/globals.css"; -import { api } from "~/utils/api"; -import Header from "../_components/Header"; -import MobilePlaceholder from "../_components/MobilePlaceholder"; -import useCurrentChain from "../_hooks/useCurrentChain"; -import Providers from "./providers"; +import RootLayoutContainer from "./root-layout-container"; -// export const metadata: Metadata = { -// description: "", -// // openGraph: { -// // description: -// // "", -// // images: [""], -// // title: "ArkProject", -// // type: "website", -// // url: "https://www.arkproject.dev", -// // }, -// title: "ArkProject Bridge", -// // twitter: { -// // card: "summary_large_image", -// // creator: "@ArkProjectNFTs", -// // description: -// // "", -// // images: [""], -// // site: "@ArkProjectNFTs", -// // title: "ArkProject", -// // }, -// }; +export const metadata: Metadata = { + description: "Start moving your Everai on Starknet", + metadataBase: new URL("https://bridge.arkproject.dev"), + openGraph: { + description: "Start moving your Everai on Starknet", + images: ["https://bridge.arkproject.dev/medias/bridge_thumbnail.png"], + title: "ArkProject", + type: "website", + url: "https://bridge.arkproject.dev", + }, + title: "ArkProject Bridge", + twitter: { + card: "summary_large_image", + creator: "@ArkProjectNFTs", + description: "Start moving your Everai on Starknet", + images: ["https://bridge.arkproject.dev/medias/bridge_thumbnail.png"], + site: "@ArkProjectNFTs", + title: "ArkProject", + }, +}; const arkProjectFont = localFont({ src: [ @@ -91,9 +86,7 @@ const styreneAFont = localFont({ variable: "--font-styrene-a", }); -function RootLayout({ children }: { children: React.ReactNode }) { - const { targetChain } = useCurrentChain(); - +function RootLayout({ children }: PropsWithChildren) { return ( is updated before page load by next-themes suppressHydrationWarning > -
-