import type { Metadata } from 'next'; import { Inter } from 'next/font/google'; import Script from 'next/script'; import { RootLayoutClient } from '../components/RootLayoutClient'; import './globals.css'; const inter = Inter({ subsets: ['latin'] }); export const metadata: Metadata = { title: { default: 'Puffin Offset - Carbon Offsetting for Yachts', template: '%s | Puffin Offset', }, description: 'Premium carbon offset calculator and solutions for luxury yachts. Offset your vessel\'s carbon footprint with verified climate projects.', keywords: ['carbon offset', 'yacht carbon offset', 'luxury yacht sustainability', 'marine carbon calculator', 'yacht emissions', 'climate action'], authors: [{ name: 'Puffin Offset' }], creator: 'Puffin Offset', publisher: 'Puffin Offset', metadataBase: new URL('https://puffinoffset.com'), alternates: { canonical: '/', }, openGraph: { type: 'website', locale: 'en_US', url: 'https://puffinoffset.com', title: 'Puffin Offset - Carbon Offsetting for Yachts', description: 'Premium carbon offset calculator and solutions for luxury yachts. Offset your vessel\'s carbon footprint with verified climate projects.', siteName: 'Puffin Offset', images: [ { url: '/puffinOffset.png', width: 1200, height: 630, alt: 'Puffin Offset Logo', }, ], }, twitter: { card: 'summary_large_image', title: 'Puffin Offset - Carbon Offsetting for Yachts', description: 'Premium carbon offset calculator and solutions for luxury yachts.', images: ['/puffinOffset.png'], }, robots: { index: true, follow: true, googleBot: { index: true, follow: true, 'max-video-preview': -1, 'max-image-preview': 'large', 'max-snippet': -1, }, }, verification: { // Add Google Search Console verification here when available // google: 'your-verification-code', }, }; export default function RootLayout({ children, }: { children: React.ReactNode; }) { return (
{/* Preconnect to external domains for performance */} {/* Favicon and app icons */} {/* PWA manifest */} {/* Theme color */} {/* Google Analytics - using Next.js Script component for security and performance */} {process.env.NODE_ENV === 'production' && ( <> > )}