From 96034fe61a0ec5e8a09b9a31c9dc4f4efa597f34 Mon Sep 17 00:00:00 2001 From: Arda Samadi Date: Tue, 16 Jun 2026 11:19:55 +0330 Subject: [PATCH] Desktop: cart checkout two-column + profile account grid - cart checkout (/cart/$cartId): steps on the left, sticky order summary on the right at lg (1320px container); CartSummary becomes an inline card on desktop (fixed bottom bar on mobile) - profile (/profile): contained account layout; menu becomes a 2-col card grid on desktop with a heading - MyLayout: desktop gate now includes /cart/* and /profile --- app/components/MyLayout.tsx | 4 +- app/components/cart/CartSummary.tsx | 2 +- app/routes/cart.$cartId.tsx | 110 ++++++++++++++-------------- app/routes/profile._index.tsx | 9 ++- 4 files changed, 67 insertions(+), 58 deletions(-) diff --git a/app/components/MyLayout.tsx b/app/components/MyLayout.tsx index 4605fee..22cfcc1 100644 --- a/app/components/MyLayout.tsx +++ b/app/components/MyLayout.tsx @@ -39,7 +39,9 @@ const MyLayout = React.memo(({ children }: { children: React.ReactNode }) => { p.startsWith("/seller/") || p === "/collections" || p.startsWith("/collection/") || - p === "/cart"; + p === "/cart" || + p.startsWith("/cart/") || + p === "/profile"; // Auth pages get a full-width desktop canvas (so they can center their own // card) but no shopping header/footer. const isAuth = p === "/login" || p === "/logout"; diff --git a/app/components/cart/CartSummary.tsx b/app/components/cart/CartSummary.tsx index 9dc4b0d..b130f09 100644 --- a/app/components/cart/CartSummary.tsx +++ b/app/components/cart/CartSummary.tsx @@ -15,7 +15,7 @@ export const CartSummary = ({ step, isLoading, }: CartSummaryProps) => ( -
+
diff --git a/app/routes/profile._index.tsx b/app/routes/profile._index.tsx index a226e66..9e066bd 100644 --- a/app/routes/profile._index.tsx +++ b/app/routes/profile._index.tsx @@ -125,7 +125,10 @@ export default function Profile() { ]; const navigate = useNavigate(); return ( -
+
+

+ حساب کاربری +

+
{items.map((item: MenuItemType, index: number) => { // Special handling for "support" item if (item.pageName === "support") { @@ -239,7 +242,7 @@ const MenuItem = ({ const MenuItemContent = ({ item }: { item: MenuItemType }) => { return (
{item.image}