import type { Metadata, Viewport } from "next"; import Script from "next/script"; import { Funnel_Display, Geist, Geist_Mono, Poppins } from "next/font/google"; import "./globals.css"; import { cn } from "@/lib/utils"; import { SiteHeader } from "@/components/site-header"; import { SiteFooter } from "@/components/site-footer"; import { ThemeProvider } from "@/components/theme/theme-provider"; import { AUTHOR, RSS_ALTERNATE, SITE_DESCRIPTION, SITE_NAME, SITE_OG_IMAGE, SITE_OG_IMAGE_ALT, SITE_TITLE, SITE_URL } from "@/lib/seo"; const display = Funnel_Display({ subsets: ["latin"], display: "swap", variable: "--font-display" }); const sans = Geist({ subsets: ["latin"], display: "swap", variable: "--font-sans" }); const mono = Geist_Mono({ subsets: ["latin"], display: "swap", variable: "--font-mono" }); // The wordmark is set in Poppins SemiBold, as on the original site const mark = Poppins({ subsets: ["latin"], weight: "600", display: "swap", variable: "--font-mark" }); // Defaults for every page; each page sets its own canonical URL, title and share card with pageMetadata() export const metadata: Metadata = { title: { default: SITE_TITLE, template: `%s | ${SITE_NAME}` }, description: SITE_DESCRIPTION, metadataBase: new URL(SITE_URL), applicationName: SITE_NAME, icons: { // app/favicon.ico is added automatically; this is the sharper icon for high-density screens icon: [{ url: "/android-chrome-192x192.png", sizes: "192x192", type: "image/png" }], apple: "/apple-touch-icon.png", }, authors: [{ name: AUTHOR.name, url: AUTHOR.path }], creator: AUTHOR.name, publisher: "AI Resource Pro", category: "technology", keywords: ["AI tutorials", "Claude Code", "Codex", "ChatGPT", "computer use", "AI agents", "open-weight models", "Runpod", "ComfyUI"], manifest: "/site.webmanifest", alternates: { types: RSS_ALTERNATE }, // Google Search Console ownership of https://airesourcepro.com/ (keep it, or the property loses verification) verification: { google: "dR3ow4mE5vjoNgGzd9u4tRYa5xvWFDHOTYwIaZIeOwU" }, openGraph: { title: SITE_TITLE, description: SITE_DESCRIPTION, siteName: SITE_NAME, locale: "en_US", type: "website", images: [{ url: SITE_OG_IMAGE, width: 1200, height: 630, alt: SITE_OG_IMAGE_ALT }], }, twitter: { card: "summary_large_image", title: SITE_TITLE, description: SITE_DESCRIPTION, images: [{ url: SITE_OG_IMAGE, width: 1200, height: 630, alt: SITE_OG_IMAGE_ALT }], }, }; export const viewport: Viewport = { themeColor: [ { media: "(prefers-color-scheme: dark)", color: "#111111" }, { media: "(prefers-color-scheme: light)", color: "#f7f7f7" }, ], colorScheme: "dark light", }; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( {/* No orphans: no single word alone on a last line (shared fix, hosting-research assets/no-orphans). */}