diff --git a/app/components/MyLayout.tsx b/app/components/MyLayout.tsx index cc86ad7..1d3d1ee 100644 --- a/app/components/MyLayout.tsx +++ b/app/components/MyLayout.tsx @@ -36,6 +36,10 @@ const MyLayout = React.memo(({ children }: { children: React.ReactNode }) => { p.startsWith("/search/") || p.startsWith("/seller/") || p === "/cart"; + // 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"; + const expandOnDesktop = isDesktopReady || isAuth; const isThread = !!location.pathname.split("threads")[1]; return ( @@ -43,18 +47,22 @@ const MyLayout = React.memo(({ children }: { children: React.ReactNode }) => { {isDesktopReady && }
{children} - {isThread ? <> : } + {isThread ? ( + <> + ) : ( + + )}
{isDesktopReady && } diff --git a/app/routes/login.tsx b/app/routes/login.tsx index d3811cf..9a2cdb6 100644 --- a/app/routes/login.tsx +++ b/app/routes/login.tsx @@ -21,6 +21,7 @@ import AppInput from "~/components/AppInput"; import { useToast } from "~/hooks/use-toast"; import { useSubmit, useLoaderData } from "@remix-run/react"; import { User } from "~/utils/token-manager.server"; +import logo from "~/assets/logo/SVG-07.svg"; // Only allow same-site, path-relative redirects. Rejects absolute URLs // (https://evil.com) and protocol-relative URLs (//evil.com) to prevent @@ -106,8 +107,14 @@ export default function LoginPage() { }; return ( -
- {enableVerifySection ? ( +
+
+ {/* Brand (desktop) */} +
+ ویترون + ویترون +
+ {enableVerifySection ? ( <>
@@ -127,7 +134,7 @@ export default function LoginPage() {
{ const convertedValue = convertPersianToEnglish(finalValue); setOtpValue(convertedValue); @@ -138,17 +145,19 @@ export default function LoginPage() { setOtpValue(convertedValue); }} > - - - - - + + + + + + +
); }