feat: add login panel

This commit is contained in:
rajun 2026-10-27 16:28:56 +05:30
parent 23af938b4e
commit 3bfbf344a6

View File

@ -0,0 +1,26 @@
import { AccessNote } from '~/components/auth/form/access-note';
import { LoginForm } from '~/components/auth/form/login-form';
import { BrandLockup } from '~/components/ui/brand-lockup';
import { Text } from '~/components/ui/text';
import { BRAND } from '~/data/brand';
import type { LoginFailure } from '~/types/auth';
// Full height on phones; natural height above the showcase on tablets; a fixed column beside it from 960px
export function LoginPanel({ failure }: { failure?: LoginFailure }) {
return (
<main className='flex min-h-screen flex-col bg-background px-6 pt-5 pb-7 sm:min-h-0 split:min-h-screen split:w-[420px] split:shrink-0 split:border-l split:border-border-divider split:px-10 split:pt-9 split:pb-8 wide:w-[480px] wide:px-14 wide:pt-10 wide:pb-9'>
<div className='flex min-h-8 items-center justify-between gap-3'>
<BrandLockup size='md' className='split:hidden' />
<AccessNote className='ml-auto hidden sm:block' />
</div>
<div className='flex flex-1 items-center justify-center py-8 sm:py-14 split:py-12'>
<LoginForm failure={failure} />
</div>
<Text variant='caption' tone='placeholder'>
© {new Date().getFullYear()} {BRAND.name}
</Text>
</main>
);
}