'use client'; import { useState } from 'react'; import { useRouter } from 'next/navigation'; import Link from 'next/link'; import { Eye, EyeOff, ArrowRight, Sparkles, Check } from 'lucide-react'; import { useAuthStore } from '@/stores/auth-store'; export default function SignupPage() { const router = useRouter(); const signup = useAuthStore((state) => state.signup); const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [showPassword, setShowPassword] = useState(false); const [loading, setLoading] = useState(false); const [error, setError] = useState(''); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setLoading(true); setError(''); if (password.length < 8) { setError('Password must be at least 8 characters'); setLoading(false); return; } try { await signup(email, password, name); router.push('/workspace'); } catch { setError('Failed to create account. Please try again.'); } finally { setLoading(false); } }; const features = [ 'Deploy unlimited AI agents', 'Real-time monitoring dashboard', 'Built-in governance tools', 'API access included', ]; return (
Join thousands of developers deploying AI agents at scale.
Get started in minutes. No credit card required.