|
| 1 | +import "../../styles/globals.css"; |
| 2 | +import { Suspense, type ReactNode } from "react"; |
| 3 | +import { GeistSans } from "geist/font/sans"; |
| 4 | +import { GeistMono } from "geist/font/mono"; |
| 5 | +import NavMenu from "../../components/NavMenu"; |
| 6 | +import Footer from "../../components/Footer"; |
| 7 | +import FotoLinceBanner from "../../components/FotoLinceBanner"; |
| 8 | +import { LocaleProvider } from "../../i18n/LocaleProvider"; |
| 9 | +import { GoogleAnalyticsScripts } from "../../components/analytics/GoogleAnalyticsScripts"; |
| 10 | +import { GaPageViewTracker } from "../../components/analytics/GaPageViewTracker"; |
| 11 | +import { WebVitalsReporter } from "../../components/analytics/WebVitalsReporter"; |
| 12 | +import CookieBanner from "../../components/CookieBanner"; |
| 13 | +import { SchemaOrg } from "../../components/SchemaOrg"; |
| 14 | + |
| 15 | +import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH } from "../../lib/metadata-shared"; |
| 16 | + |
| 17 | +const LOCALE = "it" as const; |
| 18 | + |
| 19 | +export const metadata = { |
| 20 | + metadataBase: METADATA_BASE, |
| 21 | + title: "PDFLince - Merge, Compress, Split, and Convert PDFs Online", |
| 22 | + description: "Free online PDF tools to merge, compress, split, extract, and convert PDFs. 100% private, local processing in your browser.", |
| 23 | + icons: SHARED_ICONS, |
| 24 | + alternates: { |
| 25 | + canonical: "https://pdflince.com/en", |
| 26 | + languages: { |
| 27 | + 'es-ES': 'https://pdflince.com', |
| 28 | + 'es-MX': 'https://pdflince.com', |
| 29 | + 'es-CO': 'https://pdflince.com', |
| 30 | + 'es-AR': 'https://pdflince.com', |
| 31 | + 'es': 'https://pdflince.com', |
| 32 | + 'en': 'https://pdflince.com/en', |
| 33 | + 'en-US': 'https://pdflince.com/en', |
| 34 | + 'pt': 'https://pdflince.com/pt', |
| 35 | + 'pt-BR': 'https://pdflince.com/pt', |
| 36 | + 'de': 'https://pdflince.com/de', |
| 37 | + 'de-DE': 'https://pdflince.com/de', |
| 38 | + 'it': 'https://pdflince.com/it', |
| 39 | + 'it-IT': 'https://pdflince.com/it', |
| 40 | + 'x-default': 'https://pdflince.com', |
| 41 | + }, |
| 42 | + }, |
| 43 | + openGraph: { |
| 44 | + ...SHARED_OPEN_GRAPH, |
| 45 | + title: "PDFLince - Strumenti PDF gratuiti e privati nel tuo browser", |
| 46 | + description: "Unisci, comprimi, dividi e converti PDF senza dover caricare i file online. Elaborazione sicura e completamente privata.", |
| 47 | + url: "https://pdflince.com/it", |
| 48 | + locale: "it_IT", |
| 49 | + type: "website", |
| 50 | + }, |
| 51 | +}; |
| 52 | + |
| 53 | +export default function ItLayout({ children }: { children: ReactNode }) { |
| 54 | + return ( |
| 55 | + <html lang={LOCALE}> |
| 56 | + <head> |
| 57 | + <GoogleAnalyticsScripts /> |
| 58 | + <SchemaOrg /> |
| 59 | + </head> |
| 60 | + <body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}> |
| 61 | + <LocaleProvider locale={LOCALE}> |
| 62 | + <WebVitalsReporter /> |
| 63 | + <Suspense fallback={null}> |
| 64 | + <GaPageViewTracker /> |
| 65 | + </Suspense> |
| 66 | + <NavMenu /> |
| 67 | + <main>{children}</main> |
| 68 | + <FotoLinceBanner /> |
| 69 | + <Footer /> |
| 70 | + <CookieBanner /> |
| 71 | + </LocaleProvider> |
| 72 | + </body> |
| 73 | + </html> |
| 74 | + ); |
| 75 | +} |
0 commit comments