From 54c90e0e364c308857388c558b422aa2768cbe85 Mon Sep 17 00:00:00 2001 From: Codex Review Integration Date: Tue, 18 Aug 2026 12:08:17 -0300 Subject: [PATCH] =?UTF-8?q?fix(login):=20design=20parity=20=E2=80=94=20off?= =?UTF-8?q?icial=20logo,=20h1=20welcome=20heading,=20label=20color=20(SH-2?= =?UTF-8?q?45)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(auth)/_components/auth-brand-logo.tsx | 25 +++++++++++++++++++ .../(auth)/_components/auth-card-header.tsx | 7 ++++-- src/app/(auth)/login.tsx | 4 +-- src/components/ui/form-field.tsx | 2 +- 4 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 src/app/(auth)/_components/auth-brand-logo.tsx diff --git a/src/app/(auth)/_components/auth-brand-logo.tsx b/src/app/(auth)/_components/auth-brand-logo.tsx new file mode 100644 index 00000000..fd23aac3 --- /dev/null +++ b/src/app/(auth)/_components/auth-brand-logo.tsx @@ -0,0 +1,25 @@ +import { useState } from "react"; + +import { BrandLockup } from "@/components/common/brand-lockup"; +import { cn } from "@/lib/utils"; + +export type AuthBrandLogoProps = { + className?: string; +}; + +export function AuthBrandLogo({ className }: AuthBrandLogoProps) { + const [useFallback, setUseFallback] = useState(false); + + if (useFallback) { + return ; + } + + return ( + Seahaven setUseFallback(true)} + className={cn("mx-auto block h-10 w-auto", className)} + /> + ); +} diff --git a/src/app/(auth)/_components/auth-card-header.tsx b/src/app/(auth)/_components/auth-card-header.tsx index aaf95cf6..51d2b147 100644 --- a/src/app/(auth)/_components/auth-card-header.tsx +++ b/src/app/(auth)/_components/auth-card-header.tsx @@ -11,14 +11,17 @@ export type AuthCardHeaderProps = ComponentPropsWithoutRef<"div"> & { export function AuthCardHeader({ title, subtitle, className, ...props }: AuthCardHeaderProps) { return (
- + {title} {subtitle} diff --git a/src/app/(auth)/login.tsx b/src/app/(auth)/login.tsx index 7d1c4c74..a98e5b3d 100644 --- a/src/app/(auth)/login.tsx +++ b/src/app/(auth)/login.tsx @@ -1,10 +1,10 @@ import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; +import { AuthBrandLogo } from "@/app/(auth)/_components/auth-brand-logo"; import { AuthCardHeader } from "@/app/(auth)/_components/auth-card-header"; import { AuthPageShell } from "@/app/(auth)/_components/auth-page-shell"; import { LoginForm } from "@/app/(auth)/_components/login-form"; -import { BrandLockup } from "@/components/common/brand-lockup"; import { Text } from "@/components/ui/text"; import { loginSchema, type LoginFormValues } from "@/domain/auth/schemas/login-schema"; import { useAuthContext } from "@/providers/auth-context"; @@ -27,7 +27,7 @@ export default function LoginPage() { return ( - + = { default: "gap-1", - auth: "gap-1.5 [&_.MuiFormLabel-root]:mb-0 [&_.MuiFormLabel-root]:!font-sans [&_.MuiFormLabel-root]:![font-size:var(--text-base-sm)] [&_.MuiFormLabel-root]:!font-medium [&_.MuiFormLabel-root]:!leading-[1.5] [&_.MuiFormLabel-root]:!normal-case [&_.MuiFormLabel-root]:!tracking-normal", + auth: "gap-1.5 [&_.MuiFormLabel-root]:mb-0 [&_.MuiFormLabel-root]:!font-sans [&_.MuiFormLabel-root]:![font-size:var(--text-base-sm)] [&_.MuiFormLabel-root]:!font-medium [&_.MuiFormLabel-root]:!leading-[1.5] [&_.MuiFormLabel-root]:!normal-case [&_.MuiFormLabel-root]:!text-foreground [&_.MuiFormLabel-root]:!tracking-normal", }; const appearanceLabelClassName: Record = {