diff --git a/app/_layouts/shared-layout.tsx b/app/_layouts/shared-layout.tsx deleted file mode 100644 index dab5058a9..000000000 --- a/app/_layouts/shared-layout.tsx +++ /dev/null @@ -1,176 +0,0 @@ -import { getDictionary } from "@/_dictionaries/get-dictionary"; -import { SignupLink } from "@/app/_components/analytics"; -import CustomLayout from "@/app/_components/custom-layout"; -import { Footer } from "@/app/_components/footer"; -import { Logo } from "@/app/_components/logo"; -import NavBarButton from "@/app/_components/nav-bar-button"; -import { TranslationBanner } from "@/app/_components/translation-banner"; -import "@/app/globals.css"; -import { Discord, Github } from "@arcadeai/design-system"; -import { GoogleTagManager } from "@next/third-parties/google"; -import Link from "next/link"; -import Script from "next/script"; -import { Head } from "nextra/components"; -import { getPageMap } from "nextra/page-map"; -import { - LastUpdated, - Layout, - Navbar, - Footer as NextraFooter, -} from "nextra-theme-docs"; -import { PostHog } from "../_components/posthog"; - -export const metadata = { - title: { - default: "Arcade Docs", - template: "%s | Arcade Docs", - }, - description: "Arcade - AI platform for developers", - metadataBase: new URL("https://docs.arcade.dev"), - manifest: "/site.webmanifest", - icons: { - icon: [ - { url: "/favicon-16x16.png", sizes: "16x16", type: "image/png" }, - { url: "/favicon-32x32.png", sizes: "32x32", type: "image/png" }, - { url: "/favicon.ico" }, - ], - apple: { url: "/apple-touch-icon.png", sizes: "180x180" }, - other: [ - { rel: "mask-icon", url: "/safari-pinned-tab.svg", color: "#5bbad5" }, - ], - }, - openGraph: { - type: "website", - url: "https://docs.arcade.dev", - siteName: "Arcade Docs", - images: [ - { - url: "/images/logo/arcade-logo.png", - width: 1200, - height: 630, - alt: "Arcade", - }, - ], - }, - twitter: { - card: "summary_large_image", - site: "@TryArcade", - images: ["/images/logo/arcade-logo.png"], - }, - appleWebApp: { - title: "Arcade Documentation", - }, - other: { - "apple-mobile-web-app-title": "Arcade Documentation", - "twitter:url": "https://docs.arcade.dev", - "twitter:site:domain": "docs.arcade.dev", - }, -}; - -type SharedLayoutProps = { - children: React.ReactNode; - lang: string; -}; - -export default async function SharedLayout({ - children, - lang, -}: SharedLayoutProps) { - const dictionary = await getDictionary(lang); - const pageMap = await getPageMap(`/${lang}`); - - return ( - - - - - {/* Performance optimizations for external resources */} - - - - - {/* Translation banner for non-English locales */} - {lang !== "en" && ( - - )} - -