mirror of
https://github.com/documenso/documenso.git
synced 2025-11-26 22:44:41 +10:00
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
|
|
import Image from 'next/image';
|
|
|
|
import backgroundPattern from '@documenso/assets/images/background-pattern.png';
|
|
import { setupI18nSSR } from '@documenso/lib/client-only/providers/i18n.server';
|
|
|
|
type UnauthenticatedLayoutProps = {
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export default function UnauthenticatedLayout({ children }: UnauthenticatedLayoutProps) {
|
|
setupI18nSSR();
|
|
|
|
return (
|
|
<main className="relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-4 py-12 md:p-12 lg:p-24">
|
|
<div>
|
|
<div className="absolute -inset-[min(600px,max(400px,60vw))] -z-[1] flex items-center justify-center opacity-70">
|
|
<Image
|
|
src={backgroundPattern}
|
|
alt="background pattern"
|
|
className="dark:brightness-95 dark:contrast-[70%] dark:invert dark:sepia"
|
|
style={{
|
|
mask: 'radial-gradient(rgba(255, 255, 255, 1) 0%, transparent 80%)',
|
|
WebkitMask: 'radial-gradient(rgba(255, 255, 255, 1) 0%, transparent 80%)',
|
|
}}
|
|
/>
|
|
</div>
|
|
|
|
<div className="relative w-full">{children}</div>
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|