chatbot-template/app/sign-in/[[...sign-in]]/page.tsx

37 lines
1.2 KiB
TypeScript
Raw Normal View History

import { ClerkLoaded, ClerkLoading, SignIn } from '@clerk/nextjs'
2023-06-13 17:31:15 -04:00
import { cn } from '@/lib/utils'
import { ExternalLink } from '@/components/external-link'
import { buttonVariants } from '@/components/ui/button'
import { IconSpinner } from '@/components/ui/icons'
2023-06-16 17:06:23 +04:00
import { FooterText } from '@/components/footer'
export default function SignInPage() {
2023-06-13 17:31:15 -04:00
return (
<div className="flex h-full min-h-screen flex-col items-center justify-center">
<div className="space-y-4">
<ClerkLoading>
<div className="flex items-center text-sm text-muted-foreground">
<IconSpinner className="mr-2 h-5 w-5" /> Loading...
</div>
</ClerkLoading>
<ClerkLoaded>
<SignIn
appearance={{
elements: {
card: 'shadow rounded-lg border border-border',
formFieldInput:
2023-06-14 16:57:28 +04:00
'flex h-9 w-full rounded-md px-3 py-2 text-sm shadow-sm',
formButtonPrimary: 'normal-case',
footerAction: 'text-sm',
2023-06-14 16:57:28 +04:00
footerActionLink: 'font-medium'
}
}}
/>
2023-06-16 17:06:23 +04:00
<FooterText />
</ClerkLoaded>
2023-06-13 17:31:15 -04:00
</div>
</div>
)
}