feat: complete app democking, fix types, add blogs api
This commit is contained in:
1 parent
6027e635db
commit
945c007a79
25 files changed
+557
-56
No files matched your search
@@ -585,6 +585,8 @@ export default function PetProfile({ initialView, advisorNeed }: {
|
||||
}
|
||||
|
||||
// 3. Detailed Dashboard View
|
||||
if (!activePet) return null;
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-medical-gray-50 py-12 px-4 font-vazir" dir="rtl">
|
||||
<div className="max-w-7xl mx-auto space-y-10">
|
||||
@@ -811,7 +813,7 @@ export default function PetProfile({ initialView, advisorNeed }: {
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
onClick={() => onProductClick(p)}
|
||||
onClick={() => router.push(`/shop/${p.slug || p.id}`)}
|
||||
className="bg-white rounded-[2.5rem] p-6 border border-medical-gray-200 hover:shadow-2xl transition-all cursor-pointer group flex flex-col justify-between relative overflow-hidden"
|
||||
>
|
||||
{reason && (
|
||||
@@ -966,7 +968,7 @@ export default function PetProfile({ initialView, advisorNeed }: {
|
||||
<Package className="w-12 h-12" />
|
||||
</div>
|
||||
<p className="text-medical-gray-400 font-black text-xl italic">هنوز سفارشی برای {activePet.name} ثبت نکردهاید.</p>
|
||||
<button onClick={() => onBack?.()} className="bg-canina-blue text-white px-10 py-4 rounded-2xl font-black hover:scale-105 transition-all">شروع اولین خرید</button>
|
||||
<button onClick={() => router.push('/shop')} className="bg-canina-blue text-white px-10 py-4 rounded-2xl font-black hover:scale-105 transition-all">شروع اولین خرید</button>
|
||||
</div>
|
||||
) : (
|
||||
<div className="space-y-5">
|
||||
@@ -978,7 +980,7 @@ export default function PetProfile({ initialView, advisorNeed }: {
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
whileHover={{ x: -10, backgroundColor: "rgba(249, 250, 251, 1)" }}
|
||||
className="p-6 bg-white rounded-[2.5rem] border border-medical-gray-200 flex items-center justify-between gap-6 transition-all cursor-pointer group shadow-sm hover:shadow-xl"
|
||||
onClick={() => onProductClick(item.product)}
|
||||
onClick={() => router.push(`/shop/${item.product.slug || item.product.id}`)}
|
||||
>
|
||||
{/* Info on Left (Text side) */}
|
||||
<div className="flex-1 text-right">
|
||||
|
||||
Reference in new issue
Block a user