"use client"; import Link from "next/link"; import { useState } from "react"; export default function LoginPage() { const [isLoading, setIsLoading] = useState(false); const handleGoogleLogin = () => { setIsLoading(true); // 指向 FastAPI 的 Google OAuth 入口 // 登录成功后,FastAPI 会重定向回 http://localhost:3000/ (即你的根目录分流器) window.location.href = `${process.env.NEXT_PUBLIC_API_URL}/login/google`; }; return (
{/* Header */}
RP
RoleplayAI
{/* Main Content */}
{/* Welcome Section */}

Welcome Back

Sign in to continue your adventure

{/* Google OAuth Button */}
{/* Divider */}
or
{/* Email Form (Disabled) */}
e.preventDefault()}>
Coming Soon Email login is currently in beta
{/* Agreement Text */}

By signing in, you agree to our{" "} Terms of Service {" "} and{" "} Privacy Policy

{/* Footer Links */}

Don't have an account?{" "} Sign up for free

← Back to Home
{/* Trust Indicators */}
10K+

Active Users

1000+

AI Models

24/7

Fast Support

); }