feat: TASK-118 - add storage conditions and contraindications bar to ProductPage
This commit is contained in:
1 parent
17372f9d4d
commit
4e1aa292ee
3 files changed
+43
-4
No files matched your search
@@ -27,7 +27,9 @@ import {
|
||||
Flame,
|
||||
Star,
|
||||
Users,
|
||||
ShoppingBag
|
||||
ShoppingBag,
|
||||
Thermometer,
|
||||
AlertTriangle
|
||||
} from "lucide-react";
|
||||
|
||||
const ICON_MAP: Record<string, any> = {
|
||||
@@ -523,9 +525,32 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {
|
||||
: 'توصیه غذایی و نحوه مصرف'}
|
||||
</h3>
|
||||
</div>
|
||||
<p className="text-medical-gray-700 leading-relaxed text-sm md:text-base font-medium font-vazir">
|
||||
<p className="text-medical-gray-700 leading-relaxed text-sm md:text-base font-medium font-vazir mb-6">
|
||||
{product.feedingAdvice}
|
||||
</p>
|
||||
|
||||
{/* Storage & Precautions Bar */}
|
||||
<div className="grid md:grid-cols-2 gap-4 pt-6 border-t border-medical-gray-100">
|
||||
<div className="p-4 bg-medical-gray-50 rounded-2xl border border-medical-gray-100 flex items-start gap-3">
|
||||
<Thermometer className="w-5 h-5 text-canina-blue flex-shrink-0 mt-0.5" />
|
||||
<div>
|
||||
<h5 className="text-xs font-black text-medical-gray-900 mb-1">شرایط نگهداری کاتالوگ آلمان</h5>
|
||||
<p className="text-[11px] text-medical-gray-500 font-bold leading-normal">
|
||||
{product.storage || "در جای خشک، خنک (زیر ۲۵ درجه سانتیگراد) و دور از تابش مستقیم نور خورشید نگهداری شود."}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="p-4 bg-amber-50/60 rounded-2xl border border-amber-100 flex items-start gap-3">
|
||||
<AlertTriangle className="w-5 h-5 text-amber-600 flex-shrink-0 mt-0.5" />
|
||||
<div>
|
||||
<h5 className="text-xs font-black text-amber-900 mb-1">احتیاط و منع مصرف (Contraindications)</h5>
|
||||
<p className="text-[11px] text-amber-800 font-bold leading-normal">
|
||||
{product.contraindications?.join(" • ") || "دور از دسترس کودکان نگهداری شود. پس از هربار مصرف درب قوطی را محکم ببندید."}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Specialist Note */}
|
||||
|
||||
Reference in new issue
Block a user