feat: add advisor/contact flow tables and make Blog.authorId required
Deploy Canina / deploy (push) Successful in 25m44s

This commit is contained in:
devops committed 2026-11-05 08:33:30 +00:00
1 parent bb81f2c944
commit d881dc491e
86 files changed
+507 -4111

No files matched your search

@@ -168,7 +168,7 @@ export default function MobileBottomNav({
if (searchQuery.trim()) {
const q = searchQuery.trim();
closeSheet(false);
router.push(`/search?q=${encodeURIComponent(q)}`);
router.push(`/shop?search=${encodeURIComponent(q)}`);
} else {
closeSheet(false);
router.push("/shop");
@@ -238,6 +238,7 @@ export default function MobileBottomNav({
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-xl py-2.5 pr-10 pl-14 text-xs outline-none focus:border-canina-blue font-vazir text-medical-gray-900"
autoFocus
/>
<button
type="submit"
@@ -407,22 +408,6 @@ export default function MobileBottomNav({
<div className="overflow-y-auto flex-1 space-y-3 py-1">
{/* Navigation Links Grid */}
<div className="grid grid-cols-2 gap-2">
<button
type="button"
onClick={() => navigateAndClose("/search")}
className="col-span-2 flex items-center justify-between p-3.5 bg-gradient-to-r from-canina-blue/10 via-white to-canina-blue/5 border border-canina-blue/30 rounded-2xl text-xs font-black text-canina-blue hover:border-canina-blue text-right shadow-xs"
>
<div className="flex items-center gap-2.5">
<div className="w-8 h-8 rounded-xl bg-canina-blue text-white flex items-center justify-center shadow-xs">
<Search className="w-4 h-4" />
</div>
<div>
<div className="text-xs font-black text-medical-gray-900">جستجوی پیشرفته و هوشمند</div>
<div className="text-[10px] text-medical-gray-400 font-medium">جستجو در داروها، مکمل‌ها و علائم بالینی</div>
</div>
</div>
<ChevronLeft className="w-4 h-4 text-canina-blue" />
</button>
<button
type="button"
onClick={() => navigateAndClose("/dashboard?tab=pets")}
@@ -505,7 +490,7 @@ export default function MobileBottomNav({
{/* 3. FIXED 5-TAB APP BOTTOM NAVIGATION BAR */}
<nav
aria-label="منوی ناوبری موبایل"
className="lg:hidden fixed bottom-0 left-0 right-0 z-40 bg-white/95 backdrop-blur-md border-t border-medical-gray-200 shadow-[0_-4px_20px_rgba(0,0,0,0.06)] font-vazir pb-[env(safe-area-inset-bottom,0px)]"
className="lg:hidden fixed bottom-0 inset-x-0 z-40 bg-white/95 backdrop-blur-md border-t border-medical-gray-200 shadow-[0_-4px_20px_rgba(0,0,0,0.06)] font-vazir"
dir="rtl"
>
<div className="max-w-md mx-auto px-2 h-16 flex items-center justify-between select-none">
@@ -513,7 +498,7 @@ export default function MobileBottomNav({
{/* Tab 1: Home */}
<Link
href="/"
className={`flex flex-col items-center justify-center flex-1 min-h-[48px] py-1 transition-all ${
className={`flex flex-col items-center justify-center flex-1 py-1 transition-all ${
isHomeActive ? "text-canina-blue font-black" : "text-medical-gray-400 font-bold hover:text-medical-gray-700"
}`}
>
@@ -528,7 +513,7 @@ export default function MobileBottomNav({
if (activeSheet === "menu") closeSheet();
else openSheet("menu");
}}
className={`flex flex-col items-center justify-center flex-1 min-h-[48px] py-1 transition-all ${
className={`flex flex-col items-center justify-center flex-1 py-1 transition-all ${
activeSheet === "menu" ? "text-canina-blue font-black" : "text-medical-gray-400 font-bold hover:text-medical-gray-700"
}`}
>
@@ -543,7 +528,7 @@ export default function MobileBottomNav({
if (activeSheet === "shop") closeSheet();
else openSheet("shop");
}}
className={`flex flex-col items-center justify-center flex-1 min-h-[48px] py-1 transition-all ${
className={`flex flex-col items-center justify-center flex-1 py-1 transition-all ${
isShopActive ? "text-canina-blue font-black" : "text-medical-gray-400 font-bold hover:text-medical-gray-700"
}`}
>
@@ -558,7 +543,7 @@ export default function MobileBottomNav({
<button
type="button"
onClick={() => setCartOpen(true)}
className="flex flex-col items-center justify-center flex-1 min-h-[48px] py-1 text-medical-gray-400 font-bold hover:text-medical-gray-700 relative"
className="flex flex-col items-center justify-center flex-1 py-1 text-medical-gray-400 font-bold hover:text-medical-gray-700 relative"
>
<div className="relative mb-1">
<ShoppingCart className="w-5 h-5" />
@@ -576,7 +561,7 @@ export default function MobileBottomNav({
<button
type="button"
onClick={handleAccountClick}
className={`flex flex-col items-center justify-center flex-1 min-h-[48px] py-1 transition-all ${
className={`flex flex-col items-center justify-center flex-1 py-1 transition-all ${
isAccountActive ? "text-canina-blue font-black" : "text-medical-gray-400 font-bold hover:text-medical-gray-700"
}`}
>