login de cadastro padronizado
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-09 15:05:20 +02:00
parent 67aa015b4c
commit 2209b83820
7 changed files with 463 additions and 175 deletions
+8
View File
@@ -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>
);
}