@@ -1,16 +1,24 @@
|
||||
import AuthLayoutTemplate from '@/layouts/auth/auth-simple-layout';
|
||||
import AuthTempoLayout from '@/layouts/auth/auth-tempo-layout';
|
||||
import { useTempoUi } from '@/components/tempo-brand';
|
||||
|
||||
export default function AuthLayout({
|
||||
title = '',
|
||||
description = '',
|
||||
variant = 'simple',
|
||||
children,
|
||||
}: {
|
||||
title?: string;
|
||||
description?: string;
|
||||
variant?: 'simple' | 'tempo-card';
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const { t } = useTempoUi();
|
||||
|
||||
if (variant === 'tempo-card') {
|
||||
return <AuthTempoLayout>{children}</AuthTempoLayout>;
|
||||
}
|
||||
|
||||
return (
|
||||
<AuthLayoutTemplate title={t(title)} description={t(description)}>
|
||||
{children}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { PropsWithChildren } from 'react';
|
||||
|
||||
export default function AuthTempoLayout({ children }: PropsWithChildren) {
|
||||
return (
|
||||
<div className="flex min-h-[70vh] items-center justify-center bg-slate-100 px-4 py-8 sm:py-12">
|
||||
<div className="w-full max-w-md">{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user