Ui fixings
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import Image from "next/image"
|
||||
import Link from "next/link"
|
||||
|
||||
/** Sign-in page chrome shared by the auth screens: illustration on the right, the form panel
|
||||
* (logo + content) overlaying the left 45%. */
|
||||
export function AuthShell({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div className="relative min-h-screen overflow-hidden">
|
||||
{/* Full-page background photo — right side only. Dark mode swaps to the backdrop-free
|
||||
cutout (whithoutbackground.png) so there's no white scene box floating on the
|
||||
dark panel. */}
|
||||
<div className="absolute inset-y-0 left-[45%] right-0 bg-white dark:bg-background">
|
||||
<Image
|
||||
src="/images/loginerps.png"
|
||||
alt="ERP Illustration"
|
||||
fill
|
||||
className="object-contain object-center dark:hidden"
|
||||
priority
|
||||
/>
|
||||
<Image
|
||||
src="/images/whithoutbackground.png"
|
||||
alt="ERP Illustration"
|
||||
fill
|
||||
className="hidden object-contain object-center dark:block"
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Form panel — overlays left side, no hard border with the photo */}
|
||||
<main className="relative z-10 flex min-h-screen w-full flex-col justify-center bg-white dark:bg-background px-6 py-12 sm:px-12 md:w-[45%]">
|
||||
<div className="mb-8 flex justify-center">
|
||||
<Link href="/" className="inline-flex items-center">
|
||||
<Image src="/images/hexa-erp-logo.png" alt="Hexa ERP" width={300} height={150} />
|
||||
</Link>
|
||||
</div>
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user