feat: full symptoms filtering system — backend API, megamenu pills, sidebar server-side filter, PDP tags
This commit is contained in:
1 parent
4676f3a592
commit
6dafe86344
7 files changed
+124
-27
No files matched your search
@@ -267,6 +267,30 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/* ─── Symptoms / Therapeutic Indications Section ─── */}
|
||||
{fullProduct.symptoms && fullProduct.symptoms.length > 0 && (
|
||||
<section className="bg-canina-blue/[0.03] border border-canina-blue/10 rounded-[2rem] p-6 md:p-8 space-y-4">
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="w-9 h-9 bg-canina-blue/10 text-canina-blue rounded-xl flex items-center justify-center">
|
||||
<Stethoscope className="w-5 h-5" />
|
||||
</div>
|
||||
<h3 className="text-base font-black text-medical-gray-900 font-vazir">علائم و موارد درمانی مرتبط</h3>
|
||||
</div>
|
||||
<p className="text-[12px] text-medical-gray-400 font-vazir font-bold">این محصول برای رفع علائم زیر توسط دامپزشکان توصیه میشود:</p>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
{fullProduct.symptoms.map((symptom: string, idx: number) => (
|
||||
<a
|
||||
key={idx}
|
||||
href={`/shop?symptom=${encodeURIComponent(symptom)}`}
|
||||
className="inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-[11px] font-bold bg-white border border-canina-blue/20 text-canina-blue hover:bg-canina-blue hover:text-white hover:border-canina-blue transition-all shadow-sm cursor-pointer font-vazir whitespace-nowrap"
|
||||
>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-current opacity-60" />
|
||||
{symptom}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
)}
|
||||
|
||||
{/* Key Benefits Section */}
|
||||
{fullProduct.keyBenefits && fullProduct.keyBenefits.length > 0 && (
|
||||
|
||||
Reference in new issue
Block a user