canina/frontend/application/app/layout.tsx
parsa aghaei 7615aa0e51 fix: resolve seed encoding, search param, and wiki data source issues
- Fix seed-products.ts TS error (implicit any) and BOM handling
- Re-run full seed to restore correct Persian encoding in DB
- Fix productService query→search param mismatch
- Fix IngredientWiki hardcoded port 4000→use settingsStore
- Restore seed-products-data.json from git after accidental corruption
2026-07-11 15:40:49 +03:30

82 lines
2.6 KiB
TypeScript

import type { Metadata } from 'next';
import './globals.css';
import ClientLayout from './ClientLayout';
export const metadata: Metadata = {
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://canino-iran.com'),
title: {
template: '%s | کانینا ایران',
default: 'کانینا ایران - مکمل‌های درمانی حیوانات خانگی',
},
description: 'تدارک هوشمندانه سلامت برای همراهان وفادار شما. کانینا ایران واردکننده انحصاری مکمل‌های درمانی با گرید دارویی اختصاصی از آلمان.',
keywords: ['مکمل حیوانات خانگی', 'مکمل سگ', 'مکمل گربه', 'کانینا', 'داروی حیوانات', 'Canina Iran'],
authors: [{ name: 'Canina Iran' }],
creator: 'Canina Iran',
publisher: 'Canina Iran',
formatDetection: {
email: false,
address: false,
telephone: false,
},
openGraph: {
title: 'کانینا ایران - مکمل‌های درمانی حیوانات خانگی',
description: 'واردکننده انحصاری مکمل‌های درمانی با گرید دارویی اختصاصی از آلمان',
url: 'https://canino-iran.com',
siteName: 'کانینا ایران',
locale: 'fa_IR',
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: 'کانینا ایران',
description: 'مکمل‌های درمانی حیوانات خانگی کانینا',
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
const jsonLd = {
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'کانینا ایران',
url: 'https://canino-iran.com',
logo: 'https://canina.de/media/fb/d5/47/1683116813/Logo.png',
contactPoint: {
'@type': 'ContactPoint',
telephone: '+98-21-88884444',
contactType: 'customer service',
email: 'info@canino-iran.com',
areaServed: 'IR',
availableLanguage: 'Persian'
}
};
return (
<html lang="fa" dir="rtl">
<body className="min-h-screen bg-medical-gray-50 font-sans">
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
<ClientLayout>
{children}
</ClientLayout>
</body>
</html>
);
}