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

50 lines
1.5 KiB
TypeScript
Raw Normal View History

2025-11-28 06:31:36 +00:00
'use client'
import { SocialButton } from './SocialButton'
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-11-28 06:31:36 +00:00
<div className="mb-4 text-center sm:mb-6">
2025-11-13 08:38:25 +00:00
<h2 className="txt-title-m sm:txt-title-l">Log in/Sign up</h2>
2025-11-28 06:31:36 +00:00
<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-11-28 06:31:36 +00:00
<div className="mt-4 space-y-3 sm:mt-6 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-11-28 06:31:36 +00:00
By continuing, you agree to CrushLevel's{' '}
2025-11-13 08:38:25 +00:00
<Link href="/policy/tos" target="_blank" className="text-primary-variant-normal">
User Agreement
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>
)
}