'use client' import { motion } from 'framer-motion' import { useState, FormEvent } from 'react' type Status = 'idle' | 'submitting' | 'sent' | 'error' export default function AuthPage() { const [email, setEmail] = useState('') const [status, setStatus] = useState('idle') const [message, setMessage] = useState(null) async function handleSubmit(e: FormEvent) { e.preventDefault() if (!email.trim()) return setStatus('submitting') setMessage(null) try { const res = await fetch('/api/auth/request-link', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: email.trim() }), }) const data = await res.json().catch(() => ({})) if (res.ok) { setStatus('sent') setMessage(data.message || 'If this email was invited, a fresh access link has been sent.') } else { setStatus('error') setMessage(data.error || 'Something went wrong. Please try again.') } } catch { setStatus('error') setMessage('Network error. Please try again.') } } return (
{/* Background gradient */}

BreakPilot ComplAI

Investor Pitch Deck

Invitation Required

This interactive pitch deck is available by invitation only. If you were invited, enter your email below and we'll send you a fresh access link.

{status === 'sent' ? (

{message}

) : (
setEmail(e.target.value)} disabled={status === 'submitting'} placeholder="you@example.com" className="w-full bg-white/[0.04] border border-white/[0.08] rounded-lg px-4 py-3 text-white/90 text-sm placeholder:text-white/20 focus:outline-none focus:border-indigo-400/50 focus:bg-white/[0.06] transition-colors disabled:opacity-50" /> {status === 'error' && message && (

{message}

)}
)}

Questions? Contact us at{' '} pitch@breakpilot.ai

We are an AI-first company. No PDFs. No slide decks. Just code.

) }