import { RefreshRouteOnSave } from '@/components/RefreshRouteOnSave' import { ThemeProvider } from '@/components/ThemeProvider' import { getCachedDocumentById } from '@/utilities/documentReads' import { getCachedGlobal } from '@/utilities/globalReads' import { resolveSiteMetadata } from '@/utilities/seo' import { Analytics } from '@vercel/analytics/next' import { SpeedInsights } from '@vercel/speed-insights/next' import { Metadata } from 'next' import { Arimo, Exo_2, Inter } from 'next/font/google' import React from 'react' import './styles.css' const inter = Inter({ subsets: ['latin'], variable: '--font-sans' }) // Campanha 2026: Exo 2 para display (títulos/CTAs) e Arimo para cards/tags — // mesmo uso das peças do Penpot e do santinho. OFL, self-hosted pelo next/font. const exo2 = Exo_2({ subsets: ['latin'], variable: '--font-exo2' }) const arimo = Arimo({ subsets: ['latin'], variable: '--font-arimo' }) export async function generateMetadata(): Promise { const payload = await getCachedGlobal('metadata')() const { siteUrl, title, description, siteName, twitterCreator, twitterDescription, keywords } = resolveSiteMetadata(payload) let image = payload.image if (typeof image === 'number') { image = await getCachedDocumentById('media', String(payload.image))() } return { title, description, keywords, authors: [ { name: 'Francisco Solla', url: 'https://solla.dev' }, { name: 'Teqo', url: 'https://teqo.app' }, ], creator: 'Francisco Solla', publisher: 'Teqo', robots: { index: true, follow: true, }, openGraph: { type: 'website', locale: 'pt-BR', ...(siteUrl ? { url: siteUrl } : {}), siteName, title, description, images: image?.url ? [ { url: image.url, width: image.width!, height: image.height!, alt: image.alt, }, ] : [], }, twitter: { card: 'summary_large_image', title, description: twitterDescription, creator: twitterCreator, images: image?.url ? [image.url] : [], }, } } export default async function RootLayout(props: { children: React.ReactNode }) { const { children } = props return ( {process.env.VERCEL === '1' ? ( <> ) : null} {children} ) }