2023-06-14 16:04:03 +04:00
|
|
|
import { ClerkLoaded, ClerkLoading, SignIn } from '@clerk/nextjs'
|
2023-06-13 17:31:15 -04:00
|
|
|
|
2023-06-14 16:04:03 +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'
|
2023-06-14 16:04:03 +04:00
|
|
|
|
|
|
|
|
export default function SignInPage() {
|
2023-06-13 17:31:15 -04:00
|
|
|
return (
|
2023-06-14 16:04:03 +04:00
|
|
|
<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',
|
2023-06-14 16:04:03 +04:00
|
|
|
footerAction: 'text-sm',
|
2023-06-14 16:57:28 +04:00
|
|
|
footerActionLink: 'font-medium'
|
2023-06-14 16:04:03 +04:00
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2023-06-16 17:06:23 +04:00
|
|
|
<FooterText />
|
2023-06-14 16:04:03 +04:00
|
|
|
</ClerkLoaded>
|
2023-06-13 17:31:15 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|