Files
nobat724_front/components/specialties/detail/Faq.js
T
hamed fd48b48613 feat: add canonical URL handling and entity quality checks
- 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.
2026-07-19 07:52:50 +03:30

31 lines
1.1 KiB
JavaScript

// بلوک سوالات متداول — همان منبع دادهٔ FAQPage schema، تا متن دیده‌شده و schema واگرا نشوند.
// استایل با کارت‌های موجود سایت هم‌خانواده است (bg سفید، rounded-lg، border روشن).
function Faq({ items = [] }) {
if (!items.length) return null;
return (
<section className="mt-[48px]">
<h2 className="text-[#3B3B3B] text-[16px] sm:text-[19px] md:text-[22px] lg:text-[24px] font-bold mb-[24px]">
سوالات متداول
</h2>
<div className="flex flex-col gap-[16px]">
{items.map((item) => (
<details
key={item.question}
className="p-4 rounded-lg bg-[#FFF] border border-[#EFEFEF]"
>
<summary className="text-[#3B3B3B] text-[16px] font-bold cursor-pointer">
{item.question}
</summary>
<p className="text-[#525252] text-[14px] md:text-[16px] font-normal mt-[12px] leading-8">
{item.answer}
</p>
</details>
))}
</div>
</section>
);
}
export default Faq;