|
@@ -3,7 +3,6 @@
|
|
|
import { Suspense, useState } from 'react'
|
|
import { Suspense, useState } from 'react'
|
|
|
import { useRouter, useSearchParams } from 'next/navigation'
|
|
import { useRouter, useSearchParams } from 'next/navigation'
|
|
|
import Link from 'next/link'
|
|
import Link from 'next/link'
|
|
|
-import Image from 'next/image'
|
|
|
|
|
import { useTranslations } from 'next-intl'
|
|
import { useTranslations } from 'next-intl'
|
|
|
import { signIn, authClient } from '@/lib/auth-client'
|
|
import { signIn, authClient } from '@/lib/auth-client'
|
|
|
import { Button } from '@/components/ui/button'
|
|
import { Button } from '@/components/ui/button'
|
|
@@ -11,6 +10,7 @@ import { Input } from '@/components/ui/input'
|
|
|
import { Label } from '@/components/ui/label'
|
|
import { Label } from '@/components/ui/label'
|
|
|
import { Separator } from '@/components/ui/separator'
|
|
import { Separator } from '@/components/ui/separator'
|
|
|
import { Fingerprint, Loader2, XCircle } from 'lucide-react'
|
|
import { Fingerprint, Loader2, XCircle } from 'lucide-react'
|
|
|
|
|
+import { AuthLogo } from '@/components/auth-logo'
|
|
|
|
|
|
|
|
function SignInFormInner({ registrationDisabled }: { registrationDisabled: boolean }) {
|
|
function SignInFormInner({ registrationDisabled }: { registrationDisabled: boolean }) {
|
|
|
const t = useTranslations('auth.signIn')
|
|
const t = useTranslations('auth.signIn')
|
|
@@ -71,14 +71,7 @@ function SignInFormInner({ registrationDisabled }: { registrationDisabled: boole
|
|
|
<div className="glass relative z-10 w-full max-w-md rounded-2xl p-8 shadow-2xl">
|
|
<div className="glass relative z-10 w-full max-w-md rounded-2xl p-8 shadow-2xl">
|
|
|
<div className="mb-8 text-center">
|
|
<div className="mb-8 text-center">
|
|
|
<div className="mb-4 inline-flex items-center gap-2">
|
|
<div className="mb-4 inline-flex items-center gap-2">
|
|
|
- <Image
|
|
|
|
|
- src="/torqvoice_app_logo.png"
|
|
|
|
|
- alt={tc('brandName')}
|
|
|
|
|
- width={48}
|
|
|
|
|
- height={44}
|
|
|
|
|
- className="h-11 w-auto"
|
|
|
|
|
- priority
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <AuthLogo alt={tc('brandName')} />
|
|
|
</div>
|
|
</div>
|
|
|
<h1 className="text-2xl font-bold tracking-tight">{t('title')}</h1>
|
|
<h1 className="text-2xl font-bold tracking-tight">{t('title')}</h1>
|
|
|
<p className="mt-1 text-sm text-muted-foreground">{t('description')}</p>
|
|
<p className="mt-1 text-sm text-muted-foreground">{t('description')}</p>
|