feat(seo): implement B2B dedicated route, structured data schemas, archive optimizations, and SEO database backfill
Deploy Canina / deploy (push) Successful in 1m44s
Deploy Canina / deploy (push) Successful in 1m44s
This commit is contained in:
1 parent
fa69aa4c49
commit
70c2627d93
26 files changed
+18570
-15327
No files matched your search
@@ -0,0 +1,38 @@
|
||||
import React from "react";
|
||||
import type { Metadata } from "next";
|
||||
import B2BLandingClient from "@/components/B2BLandingClient";
|
||||
import { getPageMetadata } from "@/lib/seo";
|
||||
import { generateB2BServiceSchema, generateBreadcrumbSchema } from "@/lib/schema";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
return getPageMetadata('b2b', {
|
||||
canonicalPath: '/b2b',
|
||||
fallbackTitle: 'خرید عمده مکملهای پت کنینا | نمایندگی رسمی و همکاری B2B',
|
||||
fallbackDesc: 'تأمین عمده و همکاری تجاری مکملهای دارویی کنینا آلمان برای کلینیکها، بیمارستانهای دامپزشکی و پتشاپها با گواهی اصالت و بیشترین حاشیه سود.',
|
||||
});
|
||||
}
|
||||
|
||||
export default function B2BPage() {
|
||||
const b2bServiceSchema = generateB2BServiceSchema({
|
||||
siteUrl: process.env.NEXT_PUBLIC_SITE_URL || 'https://canina.ir',
|
||||
});
|
||||
|
||||
const breadcrumbs = generateBreadcrumbSchema([
|
||||
{ name: 'صفحه اصلی', url: 'https://canina.ir' },
|
||||
{ name: 'همکاری تجاری و خرید عمده (B2B)', url: 'https://canina.ir/b2b' },
|
||||
]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(b2bServiceSchema) }}
|
||||
/>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbs) }}
|
||||
/>
|
||||
<B2BLandingClient />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -10,28 +10,58 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
});
|
||||
}
|
||||
|
||||
import { generateLocalBusinessSchema, generateBreadcrumbSchema } from "@/lib/schema";
|
||||
|
||||
export default function ContactPage() {
|
||||
const localBusinessSchema = generateLocalBusinessSchema({
|
||||
name: 'کنینا ایران',
|
||||
url: 'https://canina.ir',
|
||||
telephone: '+989211231517',
|
||||
address: {
|
||||
streetAddress: 'تهران، جردن، خیابان سعیدی، ساختمان کنینا، طبقه ۵، واحد ۱۹',
|
||||
addressLocality: 'تهران',
|
||||
addressRegion: 'تهران',
|
||||
postalCode: '1967812345',
|
||||
addressCountry: 'IR',
|
||||
},
|
||||
});
|
||||
|
||||
const breadcrumbs = generateBreadcrumbSchema([
|
||||
{ name: 'صفحه اصلی', url: 'https://canina.ir' },
|
||||
{ name: 'تماس با ما', url: 'https://canina.ir/contact' },
|
||||
]);
|
||||
|
||||
return (
|
||||
<div className="bg-medical-gray-50 py-16 px-4 sm:px-6 lg:px-8 font-vazir" dir="rtl">
|
||||
<div className="max-w-6xl mx-auto space-y-16">
|
||||
|
||||
{/* Title */}
|
||||
<div className="text-center space-y-4">
|
||||
<span className="inline-flex items-center gap-2 px-4 py-2 bg-canina-blue/5 border border-canina-blue/10 rounded-full text-canina-blue text-xs font-black uppercase tracking-widest">
|
||||
پاسخگوی شما هستیم
|
||||
</span>
|
||||
<h1 className="text-4xl lg:text-5xl font-black text-medical-gray-900 leading-tight">
|
||||
تماس با <span className="text-canina-blue italic">کنینا ایران</span>
|
||||
</h1>
|
||||
<p className="text-lg text-medical-gray-500 max-w-2xl mx-auto leading-relaxed">
|
||||
جهت مشاوره تخصصی، خرید عمده و پیگیری سفارشات با ما در ارتباط باشید.
|
||||
</p>
|
||||
<>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(localBusinessSchema) }}
|
||||
/>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbs) }}
|
||||
/>
|
||||
<div className="bg-medical-gray-50 py-16 px-4 sm:px-6 lg:px-8 font-vazir" dir="rtl">
|
||||
<div className="max-w-6xl mx-auto space-y-16">
|
||||
|
||||
{/* Title */}
|
||||
<div className="text-center space-y-4">
|
||||
<span className="inline-flex items-center gap-2 px-4 py-2 bg-canina-blue/5 border border-canina-blue/10 rounded-full text-canina-blue text-xs font-black uppercase tracking-widest">
|
||||
پاسخگوی شما هستیم
|
||||
</span>
|
||||
<h1 className="text-4xl lg:text-5xl font-black text-medical-gray-900 leading-tight">
|
||||
تماس با <span className="text-canina-blue italic">کنینا ایران</span>
|
||||
</h1>
|
||||
<p className="text-lg text-medical-gray-500 max-w-2xl mx-auto leading-relaxed">
|
||||
جهت مشاوره تخصصی، خرید عمده و پیگیری سفارشات با ما در ارتباط باشید.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ContactFormClient />
|
||||
|
||||
</div>
|
||||
|
||||
<ContactFormClient />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -95,28 +95,53 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
};
|
||||
}
|
||||
|
||||
import { generateOrganizationSchema } from '../lib/schema';
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const jsonLd = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
const orgSchema = generateOrganizationSchema({
|
||||
name: 'کنینا ایران',
|
||||
alternateName: 'Canina Iran (Canina pharma GmbH)',
|
||||
url: 'https://canina.ir',
|
||||
logo: 'https://canina.de/media/fb/d5/47/1683116813/Logo.png',
|
||||
contactPoint: {
|
||||
'@type': 'ContactPoint',
|
||||
telephone: '+98-21-88884444',
|
||||
contactType: 'customer service',
|
||||
email: 'info@canina.ir',
|
||||
areaServed: 'IR',
|
||||
availableLanguage: 'Persian'
|
||||
}
|
||||
logo: 'https://canina.ir/assets/images/logo.png',
|
||||
description: 'فروشگاه تخصصی و نماینده انحصاری مکملهای دارویی و تقویتی سگ و گربه کنینا آلمان با فرمولاسیون دارویی و تاییدیه بالینی سازمان دامپزشکی کشور.',
|
||||
telephone: '+989211231517',
|
||||
email: 'caninairan@gmail.com',
|
||||
address: {
|
||||
streetAddress: 'تهران، جردن، خیابان سعیدی، ساختمان کنینا، طبقه ۵، واحد ۱۹',
|
||||
addressLocality: 'تهران',
|
||||
addressRegion: 'تهران',
|
||||
postalCode: '1967812345',
|
||||
addressCountry: 'IR',
|
||||
},
|
||||
sameAs: [
|
||||
'https://instagram.com/caninairan',
|
||||
'https://t.me/caninairan',
|
||||
'https://www.canina.de',
|
||||
],
|
||||
});
|
||||
|
||||
const webSiteSchema = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebSite',
|
||||
'@id': 'https://canina.ir/#website',
|
||||
url: 'https://canina.ir',
|
||||
name: 'کنینا ایران | نماینده رسمی مکملهای دارویی Canina آلمان',
|
||||
inLanguage: 'fa-IR',
|
||||
publisher: {
|
||||
'@id': 'https://canina.ir/#organization',
|
||||
},
|
||||
potentialAction: {
|
||||
'@type': 'SearchAction',
|
||||
target: 'https://canina.ir/shop?search={search_term_string}',
|
||||
'query-input': 'required name=search_term_string',
|
||||
},
|
||||
};
|
||||
|
||||
const safeJsonLd = JSON.stringify(jsonLd).replace(/</g, '\\u003c');
|
||||
const safeJsonLd = JSON.stringify([orgSchema, webSiteSchema]).replace(/</g, '\\u003c');
|
||||
|
||||
return (
|
||||
<html lang="fa" dir="rtl" className={`${vazirmatn.variable} ${lalezar.variable}`} suppressHydrationWarning>
|
||||
|
||||
@@ -2,10 +2,31 @@ import type { Metadata } from "next";
|
||||
import ArchivePage from "../../components/ArchivePage";
|
||||
import { getPageMetadata } from "../../lib/seo";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
export async function generateMetadata({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
|
||||
}): Promise<Metadata> {
|
||||
const resolvedParams = await searchParams;
|
||||
const category = typeof resolvedParams.category === 'string' && resolvedParams.category !== 'all' ? resolvedParams.category : '';
|
||||
|
||||
// Clean canonical: ignore faceted filter noise like symptoms, sort, search, and petType in canonical tag
|
||||
const canonicalPath = category ? `/shop?category=${encodeURIComponent(category)}` : '/shop';
|
||||
|
||||
const categoryTitles: Record<string, string> = {
|
||||
'joints': 'مکملهای مفاصل و استخوان سگ و گربه | کنینا ایران',
|
||||
'immune': 'مکملهای تقویت سیستم ایمنی و گوارش پت | کنینا ایران',
|
||||
'energy': 'ویتامینها و انرژیبخشهای درمانی سگ و گربه | کنینا ایران',
|
||||
'special-care': 'محصولات مراقبت ویژه پوست، مو و دندان پت | کنینا ایران',
|
||||
};
|
||||
|
||||
const fallbackTitle = category && categoryTitles[category]
|
||||
? categoryTitles[category]
|
||||
: 'فروشگاه تخصصی مکملهای دارویی سگ و گربه';
|
||||
|
||||
return getPageMetadata('shop', {
|
||||
canonicalPath: '/shop',
|
||||
fallbackTitle: 'فروشگاه تخصصی مکملهای دارویی سگ و گربه',
|
||||
canonicalPath,
|
||||
fallbackTitle,
|
||||
fallbackDesc: 'خرید آنلاین انواع مکملهای درمانی مفاصل، پوست و مو، گوارش و ایمنی، رشد و ویتامینه سگ و گربه با ضمانت اصالت کنینا آلمان.',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,16 +1,74 @@
|
||||
import type { Metadata } from 'next';
|
||||
import VideosPage from "../../components/VideosPage";
|
||||
import { getPageMetadata } from "../../lib/seo";
|
||||
import { generateVideoObjectSchema, generateBreadcrumbSchema } from "../../lib/schema";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
return getPageMetadata('videos', {
|
||||
canonicalPath: '/videos',
|
||||
fallbackTitle: 'ویدئوهای آموزشی و توصیههای بالینی دامپزشکان',
|
||||
fallbackDesc: 'مشاهده ویدئوهای تخصصی نحوه مصرف مکملهای درمانی، نظرات دامپزشکان و راهکارهای بالینی تصویری.',
|
||||
fallbackDesc: 'مشاهده ویدئوهای تخصصی نحوه مصرف مکملهای درمانی، نظرات دامپزشکان و راهکارهای بالینی تصویری کنینا آلمان.',
|
||||
});
|
||||
}
|
||||
|
||||
export default function Videos() {
|
||||
return <VideosPage />;
|
||||
async function getInitialVideos() {
|
||||
const apiUrl = process.env.INTERNAL_API_URL || process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4001/api';
|
||||
const apiBase = apiUrl.endsWith('/api') ? apiUrl : `${apiUrl.replace(/\/$/, '')}/api`;
|
||||
try {
|
||||
const res = await fetch(`${apiBase}/videos?limit=20`, {
|
||||
next: { revalidate: 3600, tags: ['videos'] },
|
||||
});
|
||||
if (!res.ok) return [];
|
||||
const data = await res.json();
|
||||
return Array.isArray(data) ? data : Array.isArray(data.data) ? data.data : [];
|
||||
} catch (e) {
|
||||
console.error('[Videos] Error fetching server videos for schema:', e);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
export default async function Videos() {
|
||||
const videos = await getInitialVideos();
|
||||
|
||||
const videoSchemas = videos.map((v: any) =>
|
||||
generateVideoObjectSchema({
|
||||
name: v.title || 'ویدیو آموزشی کنینا',
|
||||
description: v.description || `آموزش و توصیههای تخصصی دامپزشکی درباره مصرف مکملهای درمانی کنینا توسط ${v.doctor || 'متخصصین کنینا'}.`,
|
||||
thumbnailUrl: v.coverUrl || v.thumbnail || 'https://canina.ir/assets/images/logo.png',
|
||||
uploadDate: v.createdAt || '2025-01-01T00:00:00Z',
|
||||
contentUrl: v.videoUrl || undefined,
|
||||
embedUrl: v.videoUrl || undefined,
|
||||
})
|
||||
);
|
||||
|
||||
const breadcrumbs = generateBreadcrumbSchema([
|
||||
{ name: 'صفحه اصلی', url: 'https://canina.ir' },
|
||||
{ name: 'آکادمی ویدیوها', url: 'https://canina.ir/videos' },
|
||||
]);
|
||||
|
||||
const itemListSchema = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'ItemList',
|
||||
itemListElement: videoSchemas.map((vSchema: any, idx: number) => ({
|
||||
'@type': 'ListItem',
|
||||
position: idx + 1,
|
||||
item: vSchema,
|
||||
})),
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
{videoSchemas.length > 0 && (
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(itemListSchema) }}
|
||||
/>
|
||||
)}
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbs) }}
|
||||
/>
|
||||
<VideosPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,21 +1,39 @@
|
||||
import Link from 'next/link';
|
||||
import { ChevronRight } from 'lucide-react';
|
||||
import { ChevronRight, Sparkles, Package, ArrowLeft, ShieldCheck } from 'lucide-react';
|
||||
import type { Metadata } from 'next';
|
||||
import { getSeoConfig, formatPageTitle } from "../../../lib/seo";
|
||||
import { generateMedicalWebPageSchema, generateBreadcrumbSchema } from "../../../lib/schema";
|
||||
import SafeImage from "../../../components/SafeImage";
|
||||
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL || 'https://api.canina.ir';
|
||||
const API_URL = process.env.INTERNAL_API_URL || process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4001/api';
|
||||
const apiBase = API_URL.endsWith('/api') ? API_URL : `${API_URL.replace(/\/$/, '')}/api`;
|
||||
|
||||
async function getWikiTerm(key: string) {
|
||||
try {
|
||||
const res = await fetch(`${API_URL}/api/wiki/${encodeURIComponent(key)}`, { next: { revalidate: 60 } });
|
||||
if (!res.ok) throw new Error('Failed to fetch wiki term');
|
||||
return res.json();
|
||||
const res = await fetch(`${apiBase}/wiki/${encodeURIComponent(key)}`, {
|
||||
next: { revalidate: 3600, tags: ['wiki', `wiki-${key}`] }
|
||||
});
|
||||
if (!res.ok) return null;
|
||||
return await res.json();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
console.error('[Wiki] Error fetching term:', error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
import { getSeoConfig, formatPageTitle } from "../../../lib/seo";
|
||||
async function getRelatedProducts(termName: string) {
|
||||
try {
|
||||
const res = await fetch(`${apiBase}/products?search=${encodeURIComponent(termName)}&limit=4`, {
|
||||
next: { revalidate: 3600, tags: ['products'] },
|
||||
});
|
||||
if (!res.ok) return [];
|
||||
const json = await res.json();
|
||||
return json.data || json || [];
|
||||
} catch (error) {
|
||||
console.error('[Wiki] Error fetching related products for ingredient:', error);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
export async function generateMetadata({ params }: { params: Promise<{ slug: string }> }): Promise<Metadata> {
|
||||
const { slug } = await params;
|
||||
@@ -28,9 +46,12 @@ export async function generateMetadata({ params }: { params: Promise<{ slug: str
|
||||
};
|
||||
}
|
||||
|
||||
const rawTitle = term.metaTitle || `ترکیب علمی ${term.term}`;
|
||||
const rawTitle = term.metaTitle || `ترکیب دارویی و خواص ${term.term}`;
|
||||
const title = formatPageTitle(rawTitle, config.brandNameFa, config.titleSeparator, config.titlePosition, false);
|
||||
const description = term.metaDescription || term.definition?.replace(/<[^>]+>/g, '').substring(0, 155).trim() || config.defaultMetaDescription;
|
||||
const description =
|
||||
term.metaDescription ||
|
||||
(term.definition ? term.definition.replace(/<[^>]+>/g, '').substring(0, 155).trim() : '') ||
|
||||
`بررسی خواص بالینی، فواید و مکملهای دارویی حاوی ${term.term} در دامپزشکی کنینا آلمان.`;
|
||||
const canonicalUrl = `${config.canonicalBaseUrl.replace(/\/$/, '')}/wiki/${slug}`;
|
||||
|
||||
return {
|
||||
@@ -45,7 +66,12 @@ export async function generateMetadata({ params }: { params: Promise<{ slug: str
|
||||
url: canonicalUrl,
|
||||
siteName: config.brandNameFa,
|
||||
type: "article",
|
||||
}
|
||||
},
|
||||
twitter: {
|
||||
card: "summary",
|
||||
title,
|
||||
description,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,7 +81,7 @@ export default async function WikiTermPage({ params }: { params: Promise<{ slug:
|
||||
|
||||
if (!term) {
|
||||
return (
|
||||
<div className="min-h-[50vh] flex flex-col items-center justify-center font-vazir text-center" dir="rtl">
|
||||
<div className="min-h-[50vh] flex flex-col items-center justify-center font-vazir text-center px-4" dir="rtl">
|
||||
<h1 className="text-3xl font-black text-medical-gray-900 mb-4">ترکیب علمی یافت نشد</h1>
|
||||
<Link href="/wiki" className="text-canina-blue font-bold flex items-center gap-2">
|
||||
<ChevronRight className="w-4 h-4" />
|
||||
@@ -65,23 +91,115 @@ export default async function WikiTermPage({ params }: { params: Promise<{ slug:
|
||||
);
|
||||
}
|
||||
|
||||
const relatedProducts = await getRelatedProducts(term.term);
|
||||
|
||||
const medicalSchema = generateMedicalWebPageSchema({
|
||||
title: `ترکیب درمانی ${term.term} - دانشنامه تخصصی کنینا`,
|
||||
description: term.metaDescription || (term.definition ? term.definition.replace(/<[^>]+>/g, '').substring(0, 160) : ''),
|
||||
url: `https://canina.ir/wiki/${slug}`,
|
||||
aspects: [term.term, 'Veterinary Supplements', 'Pet Nutrition'],
|
||||
});
|
||||
|
||||
const breadcrumbs = generateBreadcrumbSchema([
|
||||
{ name: 'صفحه اصلی', url: 'https://canina.ir' },
|
||||
{ name: 'دانشنامه ترکیبات', url: 'https://canina.ir/wiki' },
|
||||
{ name: term.term, url: `https://canina.ir/wiki/${slug}` },
|
||||
]);
|
||||
|
||||
return (
|
||||
<div className="bg-white py-20 px-4 font-vazir" dir="rtl">
|
||||
<div className="max-w-4xl mx-auto">
|
||||
<Link href="/wiki" className="inline-flex items-center gap-2 text-medical-gray-400 hover:text-canina-blue transition-colors font-bold mb-8">
|
||||
<ChevronRight className="w-5 h-5" />
|
||||
بازگشت به دانشنامه
|
||||
</Link>
|
||||
<>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(medicalSchema) }}
|
||||
/>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbs) }}
|
||||
/>
|
||||
|
||||
<h1 className="text-4xl lg:text-5xl font-black text-medical-gray-900 mb-6 leading-tight">
|
||||
{term.term}
|
||||
</h1>
|
||||
<div className="bg-medical-gray-50 min-h-screen py-12 px-4 sm:px-6 lg:px-8 font-vazir" dir="rtl">
|
||||
<div className="max-w-4xl mx-auto space-y-8">
|
||||
|
||||
{/* Breadcrumb back link */}
|
||||
<nav className="flex items-center gap-2 text-xs font-bold text-medical-gray-500">
|
||||
<Link href="/" className="hover:text-canina-blue transition-colors">صفحه اصلی</Link>
|
||||
<ChevronRight className="w-3.5 h-3.5 text-medical-gray-300" />
|
||||
<Link href="/wiki" className="hover:text-canina-blue transition-colors">دانشنامه ترکیبات</Link>
|
||||
<ChevronRight className="w-3.5 h-3.5 text-medical-gray-300" />
|
||||
<span className="text-canina-blue">{term.term}</span>
|
||||
</nav>
|
||||
|
||||
<div
|
||||
className="prose prose-lg prose-medical-gray max-w-none prose-headings:font-black prose-p:leading-relaxed prose-a:text-canina-blue"
|
||||
dangerouslySetInnerHTML={{ __html: term.definition }}
|
||||
/>
|
||||
{/* Main Article Container */}
|
||||
<article className="bg-white border border-medical-gray-200 rounded-[3rem] p-8 md:p-12 shadow-xl space-y-8">
|
||||
<div className="space-y-3 border-b border-medical-gray-100 pb-6">
|
||||
<span className="inline-flex items-center gap-1.5 px-3 py-1 bg-canina-blue/5 border border-canina-blue/10 rounded-full text-canina-blue text-xs font-black">
|
||||
<Sparkles className="w-3.5 h-3.5" />
|
||||
ماده موثره و ترکیب بالینی
|
||||
</span>
|
||||
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-black text-medical-gray-900 leading-tight">
|
||||
{term.term}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="prose prose-lg max-w-none text-medical-gray-700 leading-relaxed prose-headings:font-black prose-headings:text-medical-gray-900 prose-p:leading-loose"
|
||||
dangerouslySetInnerHTML={{ __html: term.definition }}
|
||||
/>
|
||||
</article>
|
||||
|
||||
{/* Related Products: Bidirectional Internal Linking */}
|
||||
{relatedProducts && relatedProducts.length > 0 && (
|
||||
<section className="bg-gradient-to-br from-white to-blue-50/50 border border-medical-gray-200 rounded-[2.5rem] p-8 shadow-lg space-y-6">
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<span className="text-xs font-black text-canina-blue uppercase tracking-wider">
|
||||
مکملهای فرموله شده با این ماده
|
||||
</span>
|
||||
<h2 className="text-xl sm:text-2xl font-black text-medical-gray-900 mt-1">
|
||||
محصولات کنینا حاوی {term.term}
|
||||
</h2>
|
||||
</div>
|
||||
<Link
|
||||
href={`/shop?search=${encodeURIComponent(term.term)}`}
|
||||
className="text-xs font-bold text-canina-blue hover:underline flex items-center gap-1"
|
||||
>
|
||||
مشاهده همه در فروشگاه
|
||||
<ArrowLeft className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="grid sm:grid-cols-2 gap-4">
|
||||
{relatedProducts.map((p: any) => (
|
||||
<Link
|
||||
key={p.id}
|
||||
href={`/shop/${p.slug || p.artNo}`}
|
||||
className="bg-white border border-medical-gray-200 rounded-2xl p-4 flex items-center gap-4 hover:shadow-md hover:border-canina-blue/40 transition-all group"
|
||||
>
|
||||
<div className="w-16 h-16 relative bg-medical-gray-50 rounded-xl overflow-hidden shrink-0 border border-medical-gray-100">
|
||||
<SafeImage
|
||||
src={p.imageUrl || '/assets/images/placeholder-product.png'}
|
||||
alt={p.nameFa || p.name}
|
||||
width={64}
|
||||
height={64}
|
||||
className="w-full h-full object-contain p-1 group-hover:scale-105 transition-transform"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex-1 min-w-0">
|
||||
<h3 className="text-sm font-black text-medical-gray-900 group-hover:text-canina-blue transition-colors truncate">
|
||||
{p.nameFa || p.name}
|
||||
</h3>
|
||||
<p className="text-xs text-medical-gray-500 truncate mt-1">
|
||||
{p.scientificTagline || p.categorySlug || 'مکمل دارویی استاندارد آلمان'}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
)}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -671,6 +671,35 @@ export default function ArchivePage({
|
||||
))}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
|
||||
{/* SEO Category Rich Description Section (Rendered below products to maintain primary UX while boosting category SEO) */}
|
||||
{selectedCategory !== "all" && (
|
||||
<div className="mt-12 bg-white border border-medical-gray-200 rounded-[2.5rem] p-8 md:p-10 shadow-sm space-y-4 font-vazir">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="w-2.5 h-2.5 rounded-full bg-canina-blue" />
|
||||
<h3 className="text-lg md:text-xl font-black text-medical-gray-900">
|
||||
راهنمای تخصصی و درمانی {CATEGORY_LABELS[selectedCategory] || selectedCategory}
|
||||
</h3>
|
||||
</div>
|
||||
<p className="text-xs md:text-sm text-medical-gray-600 leading-relaxed">
|
||||
{selectedCategory === 'joints' &&
|
||||
'مکملهای تخصصی مفاصل و استخوان کنینا آلمان (Canina Pharma) فرموله شده با عصاره خالص صدف سبز نیوزیلند (GAG)، گلوکوزامین، کندرویتین سولفات و مواد معدنی فعال جهت درمان و پیشگیری از آرتروز، دیسپلازی مفصل ران، ضعف لیگامنتها و تسریع روند بهبود شکستگیهای استخوانی در سگها و گربهها.'}
|
||||
{selectedCategory === 'immune' &&
|
||||
'مکملهای تقویت سیستم ایمنی و سلامت دستگاه گوارش کنینا شامل پروبیوتیکهای زیستسازگار، اینولین، الگلوتامین و مخمر آبجو ارگانیک با هدف تنظیم فلور روده، جلوگیری از عفونتهای مزمن، رفع اسهال و یبوست و افزایش مقاومت طبیعی بدن پت در برابر پاتوژنها.'}
|
||||
{selectedCategory === 'energy' &&
|
||||
'مولتیویتامینها و انرژیبخشهای بالینی کنینا با نسبت بالانسشده ویتامینهای A، D3، E و گروه B، به همراه اسیدهای چرب امگا ۳ و ۶ برای ارتقای شادابی، بهبود اشتهای از دست رفته، پشتیبانی از تولههای در حال رشد و حیوانات در دوران نقاهت و سالمندی.'}
|
||||
{selectedCategory === 'special-care' &&
|
||||
'محصولات درمانی و مراقبت ویژه پوست، مو، چشم و دهان و دندان کنینا بدون مواد شیمیایی آسیبرسان و با استاندارد دارویی اروپا برای پیشگیری از ایجاد پلاک دندان، درمان ریزش موی ناشی از کمبودهای تغذیهای و التهابات آلرژیک.'}
|
||||
{!['joints', 'immune', 'energy', 'special-care'].includes(selectedCategory) &&
|
||||
'تمامی مکملهای درمانی و تقویتی کنینا آلمان با ۱۰۰٪ ترکیبات ارگانیک و مطابق با بالاترین استانداردهای داروسازی اروپا (IFS & HACCP) تولید و به صورت رسمی در ایران توزیع میگردند.'}
|
||||
</p>
|
||||
<div className="pt-2 flex flex-wrap gap-2 text-[11px] font-bold text-canina-blue">
|
||||
<span className="bg-canina-blue/5 px-3 py-1 rounded-lg border border-canina-blue/10">فرمولاسیون اختصاصی Canina Pharma آلمان</span>
|
||||
<span className="bg-canina-blue/5 px-3 py-1 rounded-lg border border-canina-blue/10">مورد تایید کلینیکهای تخصصی دامپزشکی</span>
|
||||
<span className="bg-canina-blue/5 px-3 py-1 rounded-lg border border-canina-blue/10">پروانه بهداشتی واردات رسمی</span>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<div key="empty" className="bg-white rounded-[3rem] p-20 text-center border-2 border-dashed border-medical-gray-200 flex flex-col items-center">
|
||||
|
||||
@@ -0,0 +1,442 @@
|
||||
"use client";
|
||||
|
||||
import React, { useState } from "react";
|
||||
import {
|
||||
Building2,
|
||||
ShieldCheck,
|
||||
Truck,
|
||||
TrendingUp,
|
||||
Download,
|
||||
CheckCircle2,
|
||||
FileSpreadsheet,
|
||||
PhoneCall,
|
||||
Award,
|
||||
Send,
|
||||
HelpCircle,
|
||||
Clock,
|
||||
Sparkles,
|
||||
ChevronDown
|
||||
} from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import api from "../lib/services/api";
|
||||
import Link from "next/link";
|
||||
import { useSettingsStore } from "../lib/store/settingsStore";
|
||||
|
||||
export default function B2BLandingClient() {
|
||||
const [submitting, setSubmitting] = useState(false);
|
||||
const [submitted, setSubmitted] = useState(false);
|
||||
const [openFaq, setOpenFaq] = useState<number | null>(null);
|
||||
|
||||
const getText = useSettingsStore((s) => s.getText);
|
||||
const phone = getText('contact_phone', '۰۹۲۱۱۲۳۱۵۱۷');
|
||||
const wholesaleDiscount = getText('B2B_DISCOUNT_PERCENT', '۳۰');
|
||||
|
||||
const [formData, setFormData] = useState({
|
||||
businessName: '',
|
||||
contactName: '',
|
||||
phone: '',
|
||||
city: '',
|
||||
businessType: 'کلینیک دامپزشکی',
|
||||
notes: '',
|
||||
});
|
||||
|
||||
const handleSubmit = async (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (!formData.businessName || !formData.phone) {
|
||||
toast.error('لطفاً نام مجموعه و شماره تماس را وارد کنید.');
|
||||
return;
|
||||
}
|
||||
|
||||
setSubmitting(true);
|
||||
try {
|
||||
await api.post('/wholesale/apply', {
|
||||
businessName: `${formData.businessName} (${formData.businessType} - ${formData.city}) - رابط: ${formData.contactName}`,
|
||||
licenseNumber: formData.phone,
|
||||
notes: formData.notes,
|
||||
});
|
||||
setSubmitted(true);
|
||||
toast.success('درخواست همکاری شما با موفقیت ثبت شد. همکاران ما حداکثر تا ۲۴ ساعت آینده با شما تماس خواهند گرفت.');
|
||||
} catch {
|
||||
toast.error('خطایی در ثبت درخواست رخ داد. لطفاً با پشتیبانی تماس بگیرید.');
|
||||
} finally {
|
||||
setSubmitting(false);
|
||||
}
|
||||
};
|
||||
|
||||
const faqs = [
|
||||
{
|
||||
q: 'حداقل مبلغ و تعداد برای سفارش عمده B2B چقدر است؟',
|
||||
a: 'برای اولین سفارش همکاران گرامی، حداقل سبد خرید با تخفیف همکار معادل ۵ میلیون تومان تعریف شده تا فرآیند ثبت نمایندگی و تست کشش بازار به آسانی انجام شود.',
|
||||
},
|
||||
{
|
||||
q: 'نحوه ارسال سفارشات عمده به شهرستانها چگونه است؟',
|
||||
a: 'کلیه سفارشات B2B از طریق باربریهای ویژه، تیپاکس اکسپرس یا پست ویژه در بستهبندیهای استاندارد دارویی مقاوم به ضربه و دما با بیمه کامل مرسوله ارسال میگردند.',
|
||||
},
|
||||
{
|
||||
q: 'آیا برای کلینیکها و داروخانهها فاکتور رسمی صادر میشود؟',
|
||||
a: 'بله، تمامی سفارشات عمده همراه با فاکتور رسمی معتبر شرکتی و گواهی اصالت و پروانه ورود سازمان دامپزشکی کل کشور صادر میگردد.',
|
||||
},
|
||||
{
|
||||
q: 'آیا امکان دریافت نمونه یا کاتالوگ چاپی برای ویزیتورها وجود دارد؟',
|
||||
a: 'بله، پس از تأیید حساب کاربری B2B، پکیج اختصاصی شامل کاتالوگ جامع پزشکی، بروشورهای تخصصی برای مراجعین و راهنمای درمانی به آدرس کلینیک ارسال میشود.',
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="bg-medical-gray-50 min-h-screen font-vazir" dir="rtl">
|
||||
|
||||
{/* Top Hero Banner */}
|
||||
<section className="relative overflow-hidden bg-gradient-to-br from-canina-blue via-[#0d3b66] to-medical-gray-900 text-white py-16 lg:py-24 px-4 sm:px-6 lg:px-8">
|
||||
<div className="absolute inset-0 opacity-10 bg-[radial-gradient(#ffffff_1px,transparent_1px)] [background-size:20px_20px]" />
|
||||
|
||||
<div className="max-w-6xl mx-auto relative z-10 grid lg:grid-cols-12 gap-12 items-center">
|
||||
<div className="lg:col-span-7 space-y-6 text-center lg:text-right">
|
||||
<div className="inline-flex items-center gap-2 px-4 py-2 bg-white/10 backdrop-blur-md border border-white/20 rounded-full text-blue-200 text-xs font-bold uppercase tracking-wider">
|
||||
<Building2 className="w-4 h-4 text-amber-300" />
|
||||
پرتال رسمی همکاران تجاری، کلینیکها و پتشاپها
|
||||
</div>
|
||||
|
||||
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-black leading-tight">
|
||||
تأمین عمده و همکاری تجاری مکملهای <span className="text-amber-400">کنینا آلمان</span>
|
||||
</h1>
|
||||
|
||||
<p className="text-base sm:text-lg text-white/80 leading-relaxed max-w-2xl">
|
||||
دسترسی مستقیم و بدون واسطه جامعه دامپزشکی، بیمارستانها و فروشگاههای تخصصی به کاملترین سبد مکملهای درمانی Canina با بالاترین حاشیه سود و ضمانت ۱۰۰٪ اصالت.
|
||||
</p>
|
||||
|
||||
<div className="flex flex-wrap gap-4 justify-center lg:justify-start pt-2">
|
||||
<a
|
||||
href="#b2b-form"
|
||||
className="bg-amber-400 hover:bg-amber-500 text-gray-950 font-black px-8 py-4 rounded-2xl shadow-xl shadow-amber-400/20 transition-all flex items-center gap-2 transform hover:-translate-y-0.5 cursor-pointer"
|
||||
>
|
||||
<Send className="w-5 h-5" />
|
||||
درخواست همکاری و دریافت لیست قیمت
|
||||
</a>
|
||||
<Link
|
||||
href="/catalog"
|
||||
className="bg-white/10 hover:bg-white/20 backdrop-blur-md border border-white/20 text-white font-bold px-6 py-4 rounded-2xl transition-all flex items-center gap-2 cursor-pointer"
|
||||
>
|
||||
<Download className="w-5 h-5 text-blue-300" />
|
||||
مشاهده کاتالوگ دیجیتال
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="lg:col-span-5">
|
||||
<div className="bg-white/10 backdrop-blur-xl border border-white/20 rounded-[2.5rem] p-8 text-white shadow-2xl space-y-6">
|
||||
<div className="flex items-center justify-between border-b border-white/10 pb-4">
|
||||
<span className="text-xs font-bold text-white/70">تخفیف ویژه همکاران</span>
|
||||
<span className="bg-amber-400/20 text-amber-300 border border-amber-400/30 text-xs font-black px-3 py-1 rounded-full">
|
||||
تا {wholesaleDiscount}٪ تخفیف
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<ul className="space-y-4 text-sm text-white/90">
|
||||
<li className="flex items-center gap-3">
|
||||
<CheckCircle2 className="w-5 h-5 text-emerald-400 shrink-0" />
|
||||
<span>تأمین پیوسته و بدون قطعی از انبار مرکزی تهران</span>
|
||||
</li>
|
||||
<li className="flex items-center gap-3">
|
||||
<CheckCircle2 className="w-5 h-5 text-emerald-400 shrink-0" />
|
||||
<span>پروانه بهداشتی واردات و برچسب اصالت دامپزشکی</span>
|
||||
</li>
|
||||
<li className="flex items-center gap-3">
|
||||
<CheckCircle2 className="w-5 h-5 text-emerald-400 shrink-0" />
|
||||
<span>ارسال اکسپرس رایگان برای سبدهای همکار</span>
|
||||
</li>
|
||||
<li className="flex items-center gap-3">
|
||||
<CheckCircle2 className="w-5 h-5 text-emerald-400 shrink-0" />
|
||||
<span>مشاوره علمی و وبینارهای تخصصی ارزیابی بالینی</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div className="pt-2 border-t border-white/10 flex items-center justify-between text-xs text-white/60">
|
||||
<span>پشتیبانی امور همکاران:</span>
|
||||
<a href={`tel:${phone.replace(/[^0-9]/g, '')}`} className="font-bold text-white hover:text-amber-300 transition-colors dir-ltr">
|
||||
{phone}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Value Propositions Grid */}
|
||||
<section className="py-16 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
|
||||
<div className="text-center space-y-3 mb-12">
|
||||
<span className="text-canina-blue font-black text-xs uppercase tracking-widest bg-canina-blue/5 px-4 py-1.5 rounded-full border border-canina-blue/10">
|
||||
مزایای عضویت در باشگاه همکاران
|
||||
</span>
|
||||
<h2 className="text-2xl sm:text-3xl font-black text-medical-gray-900">
|
||||
چرا کلینیکها و پتشاپها کنینا را انتخاب میکنند؟
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||
<div className="bg-white border border-medical-gray-200 rounded-[2rem] p-6 shadow-sm hover:shadow-xl transition-all hover:-translate-y-1">
|
||||
<div className="w-14 h-14 bg-canina-blue text-white rounded-2xl flex items-center justify-center mb-5 shadow-lg shadow-canina-blue/20">
|
||||
<ShieldCheck className="w-7 h-7" />
|
||||
</div>
|
||||
<h3 className="text-lg font-black text-medical-gray-900 mb-2">اصالت قطعی آلمان</h3>
|
||||
<p className="text-xs text-medical-gray-500 font-bold leading-relaxed">
|
||||
واردات قانونی تحت نظارت مستقیم Canina pharma GmbH همراه با گواهی سلامت و برچسب هولوگرام اصالت.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white border border-medical-gray-200 rounded-[2rem] p-6 shadow-sm hover:shadow-xl transition-all hover:-translate-y-1">
|
||||
<div className="w-14 h-14 bg-emerald-600 text-white rounded-2xl flex items-center justify-center mb-5 shadow-lg shadow-emerald-600/20">
|
||||
<TrendingUp className="w-7 h-7" />
|
||||
</div>
|
||||
<h3 className="text-lg font-black text-medical-gray-900 mb-2">حاشیه سود رقابتی</h3>
|
||||
<p className="text-xs text-medical-gray-500 font-bold leading-relaxed">
|
||||
تخفیفهای پلکانی متناسب با حجم خرید و آفرهای فصلی ویژه همکاران فعال جهت بیشینهسازی سودآوری.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white border border-medical-gray-200 rounded-[2rem] p-6 shadow-sm hover:shadow-xl transition-all hover:-translate-y-1">
|
||||
<div className="w-14 h-14 bg-amber-500 text-white rounded-2xl flex items-center justify-center mb-5 shadow-lg shadow-amber-500/20">
|
||||
<Truck className="w-7 h-7" />
|
||||
</div>
|
||||
<h3 className="text-lg font-black text-medical-gray-900 mb-2">ارسال سریع و مطمئن</h3>
|
||||
<p className="text-xs text-medical-gray-500 font-bold leading-relaxed">
|
||||
تحویل در همان روز برای تهران و ارسال اکسپرس ۴۸ ساعته به کلینیکها و داروخانههای سراسر ایران.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white border border-medical-gray-200 rounded-[2rem] p-6 shadow-sm hover:shadow-xl transition-all hover:-translate-y-1">
|
||||
<div className="w-14 h-14 bg-indigo-600 text-white rounded-2xl flex items-center justify-center mb-5 shadow-lg shadow-indigo-600/20">
|
||||
<Award className="w-7 h-7" />
|
||||
</div>
|
||||
<h3 className="text-lg font-black text-medical-gray-900 mb-2">پشتیبانی علمی و بالینی</h3>
|
||||
<p className="text-xs text-medical-gray-500 font-bold leading-relaxed">
|
||||
دسترسی به منابع پژوهشی، مشاوره پروتکلهای تجویزی با تیم دامپزشکی و ارائه استندهای نمایشگاهی.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Interactive Form & Tier Preview */}
|
||||
<section id="b2b-form" className="py-16 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
|
||||
<div className="bg-white border border-medical-gray-200 rounded-[3rem] p-8 md:p-14 shadow-2xl grid lg:grid-cols-12 gap-12">
|
||||
|
||||
{/* Form */}
|
||||
<div className="lg:col-span-7 space-y-6">
|
||||
<div>
|
||||
<span className="text-xs font-black text-canina-blue uppercase tracking-widest">
|
||||
ثبتنام همکاران جدید
|
||||
</span>
|
||||
<h3 className="text-2xl sm:text-3xl font-black text-medical-gray-900 mt-1">
|
||||
فرم درخواست همکاری تجاری B2B
|
||||
</h3>
|
||||
<p className="text-sm text-medical-gray-500 mt-2 leading-relaxed">
|
||||
لطفاً مشخصات مجموعه خود را تکمیل نمایید تا کد اختصاصی همکار و لیست قیمت مصوب برای شما فعال گردد.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{submitted ? (
|
||||
<div className="bg-emerald-50 border border-emerald-200 rounded-3xl p-8 text-center space-y-4 animate-fade-in">
|
||||
<div className="w-16 h-16 bg-emerald-500 text-white rounded-full flex items-center justify-center mx-auto shadow-lg shadow-emerald-500/20">
|
||||
<CheckCircle2 className="w-8 h-8" />
|
||||
</div>
|
||||
<h4 className="text-xl font-black text-emerald-900">درخواست شما با موفقیت ثبت شد</h4>
|
||||
<p className="text-sm text-emerald-700 max-w-md mx-auto leading-relaxed">
|
||||
کارشناسان فروش سازمانی کنینا ایران جهت احراز هویت و ارسال لیست قیمت با شماره ثبتشده تماس خواهند گرفت.
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
<form onSubmit={handleSubmit} className="space-y-4">
|
||||
<div className="grid sm:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
نام مجموعه / داروخانه / کلینیک <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
required
|
||||
placeholder="مثلاً کلینیک تخصصی دکتر البرزی"
|
||||
value={formData.businessName}
|
||||
onChange={(e) => setFormData({ ...formData, businessName: e.target.value })}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl px-4 py-3 text-sm text-medical-gray-900 focus:bg-white focus:border-canina-blue focus:ring-4 focus:ring-canina-blue/10 outline-none transition-all"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
نوع فعالیت <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<select
|
||||
value={formData.businessType}
|
||||
onChange={(e) => setFormData({ ...formData, businessType: e.target.value })}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl px-4 py-3 text-sm text-medical-gray-900 focus:bg-white focus:border-canina-blue focus:ring-4 focus:ring-canina-blue/10 outline-none transition-all"
|
||||
>
|
||||
<option value="کلینیک دامپزشکی">کلینیک دامپزشکی</option>
|
||||
<option value="بیمارستان دامپزشکی">بیمارستان دامپزشکی</option>
|
||||
<option value="داروخانه دامپزشکی">داروخانه دامپزشکی</option>
|
||||
<option value="پتشاپ فیزیکی و آنلاین">پتشاپ فیزیکی و آنلاین</option>
|
||||
<option value="دامپزشک مستقل / ویزیتور">دامپزشک مستقل / ویزیتور</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid sm:grid-cols-3 gap-4">
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
نام رابط / مسئول خرید
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="نام و نام خانوادگی"
|
||||
value={formData.contactName}
|
||||
onChange={(e) => setFormData({ ...formData, contactName: e.target.value })}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl px-4 py-3 text-sm text-medical-gray-900 focus:bg-white focus:border-canina-blue focus:ring-4 focus:ring-canina-blue/10 outline-none transition-all"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
شماره تماس همراه <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<input
|
||||
type="tel"
|
||||
required
|
||||
placeholder="۰۹۱۲۳۴۵۶۷۸۹"
|
||||
value={formData.phone}
|
||||
onChange={(e) => setFormData({ ...formData, phone: e.target.value })}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl px-4 py-3 text-sm text-medical-gray-900 focus:bg-white focus:border-canina-blue focus:ring-4 focus:ring-canina-blue/10 outline-none transition-all dir-ltr text-right"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
شهر / استان
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="مثلاً تهران / اصفهان"
|
||||
value={formData.city}
|
||||
onChange={(e) => setFormData({ ...formData, city: e.target.value })}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl px-4 py-3 text-sm text-medical-gray-900 focus:bg-white focus:border-canina-blue focus:ring-4 focus:ring-canina-blue/10 outline-none transition-all"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
توضیحات تکمیلی یا اقلام مدنظر (اختیاری)
|
||||
</label>
|
||||
<textarea
|
||||
rows={3}
|
||||
placeholder="در صورت داشتن نیاز دارویی خاص یا حجم تخمینی سفارش، در اینجا درج فرمایید..."
|
||||
value={formData.notes}
|
||||
onChange={(e) => setFormData({ ...formData, notes: e.target.value })}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl px-4 py-3 text-sm text-medical-gray-900 focus:bg-white focus:border-canina-blue focus:ring-4 focus:ring-canina-blue/10 outline-none transition-all"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
disabled={submitting}
|
||||
className="w-full bg-canina-blue hover:bg-canina-blue/90 text-white font-black text-base py-4 rounded-2xl shadow-xl shadow-canina-blue/20 transition-all flex items-center justify-center gap-2 cursor-pointer disabled:opacity-50"
|
||||
>
|
||||
{submitting ? (
|
||||
<span>در حال ارسال اطلاعات...</span>
|
||||
) : (
|
||||
<>
|
||||
<Send className="w-5 h-5" />
|
||||
<span>ثبت درخواست و فعالسازی حساب همکار</span>
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
</form>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Quick FAQ / Info sidebar */}
|
||||
<div className="lg:col-span-5 space-y-6">
|
||||
<div className="bg-medical-gray-50 rounded-3xl p-6 border border-medical-gray-200 space-y-4">
|
||||
<h4 className="text-base font-black text-medical-gray-900 flex items-center gap-2">
|
||||
<Sparkles className="w-5 h-5 text-amber-500" />
|
||||
مراحل ثبتنام و دریافت کالا
|
||||
</h4>
|
||||
|
||||
<div className="space-y-4 text-xs font-bold text-medical-gray-600">
|
||||
<div className="flex items-start gap-3">
|
||||
<div className="w-6 h-6 rounded-full bg-canina-blue text-white flex items-center justify-center text-xs font-black shrink-0">۱</div>
|
||||
<div>
|
||||
<strong className="text-medical-gray-900 block mb-0.5">ثبت فرم آنلاین</strong>
|
||||
ارسال مشخصات کلینیک یا پتشاپ از طریق فرم روبهرو.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-start gap-3">
|
||||
<div className="w-6 h-6 rounded-full bg-canina-blue text-white flex items-center justify-center text-xs font-black shrink-0">۲</div>
|
||||
<div>
|
||||
<strong className="text-medical-gray-900 block mb-0.5">تماس کارشناس B2B</strong>
|
||||
تأیید تلفنی و فعالسازی دسترسی قیمت عمده در پرتال.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-start gap-3">
|
||||
<div className="w-6 h-6 rounded-full bg-canina-blue text-white flex items-center justify-center text-xs font-black shrink-0">۳</div>
|
||||
<div>
|
||||
<strong className="text-medical-gray-900 block mb-0.5">ثبت سفارش و ارسال اکسپرس</strong>
|
||||
انتخاب محصولات با فاکتور رسمی و ارسال فوری با بیمه.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="bg-gradient-to-br from-amber-500/10 to-amber-500/5 border border-amber-500/20 rounded-3xl p-6 space-y-3">
|
||||
<div className="flex items-center gap-2 text-amber-900 font-black text-sm">
|
||||
<PhoneCall className="w-5 h-5 text-amber-600" />
|
||||
مشاوره مستقیم با مدیریت فروش سازمانی
|
||||
</div>
|
||||
<p className="text-xs text-amber-800 leading-relaxed">
|
||||
همکاران و مدیران محترم مراکز درمانی میتوانند مستقیماً با دپارتمان فروش B2B تماس حاصل فرمایند.
|
||||
</p>
|
||||
<a
|
||||
href={`tel:${phone.replace(/[^0-9]/g, '')}`}
|
||||
className="inline-flex items-center gap-2 bg-amber-500 hover:bg-amber-600 text-white font-black text-xs px-5 py-2.5 rounded-xl transition-all shadow-md dir-ltr"
|
||||
>
|
||||
{phone}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Accordion FAQ */}
|
||||
<section className="py-12 px-4 sm:px-6 lg:px-8 max-w-4xl mx-auto">
|
||||
<div className="text-center space-y-2 mb-8">
|
||||
<HelpCircle className="w-8 h-8 text-canina-blue mx-auto mb-2" />
|
||||
<h3 className="text-2xl font-black text-medical-gray-900">
|
||||
پرسشهای متداول همکاران و کلینیکها
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div className="space-y-3">
|
||||
{faqs.map((faq, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="bg-white border border-medical-gray-200 rounded-2xl overflow-hidden transition-all shadow-sm"
|
||||
>
|
||||
<button
|
||||
onClick={() => setOpenFaq(openFaq === idx ? null : idx)}
|
||||
className="w-full p-5 text-right flex items-center justify-between gap-4 font-bold text-sm text-medical-gray-900 hover:text-canina-blue transition-colors cursor-pointer"
|
||||
>
|
||||
<span>{faq.q}</span>
|
||||
<ChevronDown className={`w-5 h-5 text-medical-gray-400 transition-transform ${openFaq === idx ? 'rotate-180 text-canina-blue' : ''}`} />
|
||||
</button>
|
||||
{openFaq === idx && (
|
||||
<div className="px-5 pb-5 text-xs text-medical-gray-600 leading-relaxed border-t border-medical-gray-100 pt-3 animate-fade-in">
|
||||
{faq.a}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -119,9 +119,11 @@ export default function Footer({
|
||||
</Link>
|
||||
</li>
|
||||
{isB2BEnabled && (
|
||||
<li onClick={onB2BOpen} className="hover:text-canina-blue hover:translate-x-[-4px] transition-all cursor-pointer flex items-center gap-2 group text-blue-200">
|
||||
<div className="w-1.5 h-1.5 rounded-full bg-canina-blue group-hover:w-4 transition-all" />
|
||||
{getText('footer_link_b2b', "همکاری با کلینیکها و پتشاپها (B2B)")}
|
||||
<li>
|
||||
<Link href="/b2b" className="hover:text-canina-blue hover:translate-x-[-4px] transition-all cursor-pointer flex items-center gap-2 group text-blue-200">
|
||||
<div className="w-1.5 h-1.5 rounded-full bg-canina-blue group-hover:w-4 transition-all" />
|
||||
{getText('footer_link_b2b', "همکاری با کلینیکها و پتشاپها (B2B)")}
|
||||
</Link>
|
||||
</li>
|
||||
)}
|
||||
</ul>
|
||||
|
||||
@@ -519,13 +519,13 @@ export default function Header({
|
||||
نمادهای اعتماد و مجوزهای رسمی
|
||||
</Link>
|
||||
{isB2BEnabled && (
|
||||
<button
|
||||
onClick={onB2BOpen}
|
||||
<Link
|
||||
href="/b2b"
|
||||
className="w-full text-right flex items-center gap-2 px-3 py-2 hover:bg-canina-blue/5 hover:text-canina-blue rounded-lg font-bold cursor-pointer"
|
||||
>
|
||||
<Building2 className="w-4 h-4 text-canina-blue" />
|
||||
درخواست نمایندگی B2B
|
||||
</button>
|
||||
درخواست نمایندگی و خرید عمده (B2B)
|
||||
</Link>
|
||||
)}
|
||||
<Link href="/contact" className="flex items-center gap-2 px-3 py-2 hover:bg-canina-blue/5 hover:text-canina-blue rounded-lg font-bold">
|
||||
<PhoneCall className="w-4 h-4 text-canina-blue" />
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
/**
|
||||
* Structured Data (JSON-LD) Generators for Canina Iran
|
||||
* Conforming to Schema.org and Google Search Rich Results guidelines
|
||||
*/
|
||||
|
||||
export interface OrganizationSchemaOptions {
|
||||
name?: string;
|
||||
alternateName?: string;
|
||||
url?: string;
|
||||
logo?: string;
|
||||
description?: string;
|
||||
telephone?: string;
|
||||
email?: string;
|
||||
address?: {
|
||||
streetAddress?: string;
|
||||
addressLocality?: string;
|
||||
addressRegion?: string;
|
||||
postalCode?: string;
|
||||
addressCountry?: string;
|
||||
};
|
||||
sameAs?: string[];
|
||||
}
|
||||
|
||||
export function generateOrganizationSchema(options: OrganizationSchemaOptions = {}) {
|
||||
const brandName = options.name || 'کنینا ایران';
|
||||
const siteUrl = options.url || 'https://canina.ir';
|
||||
const logoUrl = options.logo || `${siteUrl}/assets/images/logo.png`;
|
||||
|
||||
return {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
'@id': `${siteUrl}#organization`,
|
||||
name: brandName,
|
||||
alternateName: options.alternateName || 'Canina pharma GmbH Iran Representative',
|
||||
url: siteUrl,
|
||||
logo: {
|
||||
'@type': 'ImageObject',
|
||||
url: logoUrl,
|
||||
caption: brandName,
|
||||
},
|
||||
image: logoUrl,
|
||||
description:
|
||||
options.description ||
|
||||
'نماینده رسمی و انحصاری مکملهای دارویی و درمانی Canina pharma GmbH آلمان در ایران.',
|
||||
telephone: options.telephone || '+989211231517',
|
||||
email: options.email || 'caninairan@gmail.com',
|
||||
address: {
|
||||
'@type': 'PostalAddress',
|
||||
streetAddress: options.address?.streetAddress || 'جردن، خیابان سعیدی، ساختمان کنینا، طبقه ۵',
|
||||
addressLocality: options.address?.addressLocality || 'تهران',
|
||||
addressRegion: options.address?.addressRegion || 'تهران',
|
||||
postalCode: options.address?.postalCode || '1967812345',
|
||||
addressCountry: options.address?.addressCountry || 'IR',
|
||||
},
|
||||
sameAs: options.sameAs || [
|
||||
'https://instagram.com/caninairan',
|
||||
'https://t.me/caninairan',
|
||||
'https://www.canina.de',
|
||||
],
|
||||
contactPoint: [
|
||||
{
|
||||
'@type': 'ContactPoint',
|
||||
telephone: options.telephone || '+989211231517',
|
||||
contactType: 'customer service',
|
||||
availableLanguage: ['Persian', 'English', 'German'],
|
||||
areaServed: 'IR',
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
export function generateLocalBusinessSchema(options: OrganizationSchemaOptions = {}) {
|
||||
const siteUrl = options.url || 'https://canina.ir';
|
||||
const brandName = options.name || 'کنینا ایران';
|
||||
const logoUrl = options.logo || `${siteUrl}/assets/images/logo.png`;
|
||||
|
||||
return {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'VeterinaryCare',
|
||||
'@id': `${siteUrl}#localbusiness`,
|
||||
name: `${brandName} - دفتر مرکزی و پشتیبانی تخصصی`,
|
||||
image: logoUrl,
|
||||
url: siteUrl,
|
||||
telephone: options.telephone || '+989211231517',
|
||||
priceRange: '$$',
|
||||
address: {
|
||||
'@type': 'PostalAddress',
|
||||
streetAddress: options.address?.streetAddress || 'تهران، جردن، خیابان سعیدی، ساختمان کنینا، طبقه ۵، واحد ۱۹',
|
||||
addressLocality: options.address?.addressLocality || 'تهران',
|
||||
addressRegion: options.address?.addressRegion || 'تهران',
|
||||
postalCode: options.address?.postalCode || '1967812345',
|
||||
addressCountry: 'IR',
|
||||
},
|
||||
geo: {
|
||||
'@type': 'GeoCoordinates',
|
||||
latitude: 35.7785,
|
||||
longitude: 51.4172,
|
||||
},
|
||||
openingHoursSpecification: [
|
||||
{
|
||||
'@type': 'OpeningHoursSpecification',
|
||||
dayOfWeek: ['Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday'],
|
||||
opens: '09:00',
|
||||
closes: '18:00',
|
||||
},
|
||||
],
|
||||
sameAs: options.sameAs || [
|
||||
'https://instagram.com/caninairan',
|
||||
'https://t.me/caninairan',
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
export interface B2BServiceSchemaOptions {
|
||||
serviceName?: string;
|
||||
description?: string;
|
||||
siteUrl?: string;
|
||||
}
|
||||
|
||||
export function generateB2BServiceSchema(options: B2BServiceSchemaOptions = {}) {
|
||||
const siteUrl = options.siteUrl || 'https://canina.ir';
|
||||
return {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Service',
|
||||
'@id': `${siteUrl}/b2b#service`,
|
||||
name: options.serviceName || 'تأمین عمده و همکاری تجاری مکملهای دارویی کنینا آلمان',
|
||||
serviceType: 'B2B Veterinary Supply & Wholesale',
|
||||
provider: {
|
||||
'@type': 'Organization',
|
||||
name: 'کنینا ایران',
|
||||
url: siteUrl,
|
||||
logo: `${siteUrl}/assets/images/logo.png`,
|
||||
},
|
||||
areaServed: {
|
||||
'@type': 'Country',
|
||||
name: 'Iran',
|
||||
},
|
||||
description:
|
||||
options.description ||
|
||||
'تأمین مستقیم، پخش عمده و اعطای نمایندگی مکملهای تخصصی دامپزشکی Canina آلمان به کلینیکها، بیمارستانهای دامپزشکی و پتشاپهای معتبر سراسر کشور.',
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
availability: 'https://schema.org/InStock',
|
||||
businessFunction: 'http://purl.org/goodrelations/v1#ProvideService',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export interface MedicalWebPageSchemaOptions {
|
||||
title: string;
|
||||
description: string;
|
||||
url: string;
|
||||
datePublished?: string;
|
||||
dateModified?: string;
|
||||
medicalAudience?: string;
|
||||
aspects?: string[];
|
||||
}
|
||||
|
||||
export function generateMedicalWebPageSchema(options: MedicalWebPageSchemaOptions) {
|
||||
return {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'MedicalWebPage',
|
||||
name: options.title,
|
||||
headline: options.title,
|
||||
description: options.description,
|
||||
url: options.url,
|
||||
datePublished: options.datePublished || '2025-01-01',
|
||||
dateModified: options.dateModified || new Date().toISOString(),
|
||||
medicalAudience: {
|
||||
'@type': 'MedicalAudience',
|
||||
audienceType: options.medicalAudience || 'Veterinarians, Pet Care Professionals, and Pet Owners',
|
||||
},
|
||||
publisher: {
|
||||
'@type': 'Organization',
|
||||
name: 'کنینا ایران',
|
||||
url: 'https://canina.ir',
|
||||
},
|
||||
about: options.aspects?.map((aspect) => ({
|
||||
'@type': 'MedicalCondition',
|
||||
name: aspect,
|
||||
})) || [],
|
||||
};
|
||||
}
|
||||
|
||||
export interface VideoObjectSchemaOptions {
|
||||
name: string;
|
||||
description: string;
|
||||
thumbnailUrl: string;
|
||||
uploadDate: string;
|
||||
contentUrl?: string;
|
||||
embedUrl?: string;
|
||||
duration?: string;
|
||||
}
|
||||
|
||||
export function generateVideoObjectSchema(options: VideoObjectSchemaOptions) {
|
||||
return {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'VideoObject',
|
||||
name: options.name,
|
||||
description: options.description,
|
||||
thumbnailUrl: [options.thumbnailUrl],
|
||||
uploadDate: options.uploadDate,
|
||||
contentUrl: options.contentUrl,
|
||||
embedUrl: options.embedUrl || options.contentUrl,
|
||||
duration: options.duration || 'PT3M30S',
|
||||
publisher: {
|
||||
'@type': 'Organization',
|
||||
name: 'کنینا ایران',
|
||||
logo: {
|
||||
'@type': 'ImageObject',
|
||||
url: 'https://canina.ir/assets/images/logo.png',
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export interface BreadcrumbItem {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export function generateBreadcrumbSchema(items: BreadcrumbItem[]) {
|
||||
return {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'BreadcrumbList',
|
||||
itemListElement: items.map((item, index) => ({
|
||||
'@type': 'ListItem',
|
||||
position: index + 1,
|
||||
name: item.name,
|
||||
item: item.url,
|
||||
})),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user