crush-level-web/src/app/(auth)/login/components/login-form.tsx

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2025-11-28 06:31:36 +00:00
'use client'
2025-12-09 09:13:46 +00:00
// import { SocialButton } from './SocialButton'
2025-11-28 06:31:36 +00:00
import Link from 'next/link'
import { toast } from 'sonner'
import DiscordButton from './DiscordButton'
import GoogleButton from './GoogleButton'
2025-11-13 08:38:25 +00:00
export function LoginForm() {
const handleAppleLogin = () => {
2025-11-28 06:31:36 +00:00
toast.info('Apple Sign In', {
description: 'Apple登录功能正在开发中...',
2025-11-13 08:38:25 +00:00
})
}
return (
<div className="w-full space-y-3 sm:space-y-4">
2025-12-09 09:13:46 +00:00
<div className="mb-12 text-center">
<h2 className="txt-headline-m">Login or Sign up</h2>
{/* <p className="text-gradient mt-3 text-sm sm:mt-4 sm:text-base">Chat, Crush, AI Date</p> */}
2025-11-13 08:38:25 +00:00
</div>
2025-12-09 09:13:46 +00:00
<div className="space-y-3 sm:space-y-4">
2025-11-13 08:38:25 +00:00
<DiscordButton />
<GoogleButton />
2025-11-28 06:31:36 +00:00
{/* <SocialButton
2025-11-13 08:38:25 +00:00
icon={<i className="iconfont icon-social-apple !text-[20px] sm:!text-[24px]"></i>}
onClick={handleAppleLogin}
>
Continue with Apple
2025-11-28 06:31:36 +00:00
</SocialButton> */}
2025-11-13 08:38:25 +00:00
</div>
2025-11-28 06:31:36 +00:00
<div className="mt-4 text-center sm:mt-6">
2025-11-13 08:38:25 +00:00
<p className="txt-body-s sm:txt-body-m text-txt-secondary-normal">
2025-12-09 09:13:46 +00:00
By continuing, you agree to Crush Level's{' '}
2025-11-13 08:38:25 +00:00
<Link href="/policy/tos" target="_blank" className="text-primary-variant-normal">
2025-12-09 09:13:46 +00:00
Terms of Service
2025-11-28 06:31:36 +00:00
</Link>{' '}
and{' '}
2025-11-13 08:38:25 +00:00
<Link href="/policy/privacy" target="_blank" className="text-primary-variant-normal">
Privacy Policy
</Link>
</p>
</div>
</div>
)
}