- Implemented canonical URL strategies for city-specific domains and entities. - Added helper functions for domain and city resolution. - Created tests for canonical URL generation and domain resolution. - Introduced entity quality checks for doctors and clinics to ensure meaningful content. - Developed unique introductory texts for listing pages to avoid duplicate content. - Established robots.txt policies for listing pages to manage indexing based on user filters. - Enhanced specialty content with dynamic introductions and FAQs to improve SEO.
34 lines
946 B
JavaScript
34 lines
946 B
JavaScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import ItemDoctor from "@/app/component/ItemDoctor";
|
|
|
|
// همان گرید و همان کارت پزشکِ /doctors — فقط بدون ماشین فیلتر، چون این صفحه
|
|
// از قبل روی «تخصص + شهر» فیلتر شده و لیستش SSR میآید.
|
|
function DoctorGrid({ doctors: initialDoctors = [] }) {
|
|
const [doctors, setDoctors] = useState(initialDoctors);
|
|
|
|
if (!doctors.length) {
|
|
return (
|
|
<p className="text-center py-10 text-gray-500">
|
|
دکتری برای نمایش وجود ندارد.
|
|
</p>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<ul className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[24px]">
|
|
{doctors.map((doctor, idx) => (
|
|
<ItemDoctor
|
|
key={doctor.id}
|
|
doctor={doctor}
|
|
priority={idx < 3}
|
|
setDoctors={setDoctors}
|
|
/>
|
|
))}
|
|
</ul>
|
|
);
|
|
}
|
|
|
|
export default DoctorGrid;
|