{title}{srTitle && {srTitle}}
{sub &&{sub}
}{brand.data?.org_name ? `${brand.data.org_name} ยท ` : ''}{brand.data?.version ? `Version ${brand.data.version}` : ''}
import { lazy, Suspense, type ReactNode } from 'react'; import { Alert, AlertContent, AlertDescription, AlertIcon } from '@/components/ui/motion/alert'; import { useBrand } from '../api/hooks'; import { explainError } from '../api/errors'; import { MockBanner } from '../components/common'; import { BrandMark } from './login/BrandMark'; // the 3D hero (three.js) loads after the form is on screen, in its own chunk const ReleaseScene = lazy(() => import('./login/ReleaseScene').then((m) => ({ default: m.ReleaseScene }))); /** beUI fields on a page without Tailwind's reset: no native border on the inner input (the field draws it). */ export const FIELD = { root: 'beui-field', input: 'border-0' }; /** * The frame of every account page (sign in, create an account, forgot, reset): always dark; on large screens the * Patchwise story and a live 3D scene on the left, the form in a glass card on the right; on small screens only the card. * `title` is the visible heading; `srTitle` adds words for screen readers only (e.g. "Sign in" + " to Patchwise"). */ export function AuthShell({ children, label, title, srTitle, sub }: { children: ReactNode; label: string; title: string; srTitle?: string; sub?: ReactNode; }) { const brand = useBrand(); const name = brand.data?.product_name ?? 'Patchwise'; return (
Every Oracle update,
tested before it
goes live.
Three agents read the patch, test your business processes in a real browser and bring you the evidence. You approve and sign off.
{sub}
}{brand.data?.org_name ? `${brand.data.org_name} ยท ` : ''}{brand.data?.version ? `Version ${brand.data.version}` : ''}
{children}
{action}