'use client' import { motion } from 'framer-motion' import { Language, PitchFunding } from '@/lib/types' import { t } from '@/lib/i18n' import { ArrowRight } from 'lucide-react' import GradientText from '../ui/GradientText' import BrandName from '../ui/BrandName' interface CoverSlideProps { lang: Language onNext: () => void funding?: PitchFunding } function formatRoundLabel(funding: PitchFunding | undefined): string { if (!funding) return 'Pre-Seed' // Extract a short round label from round_name const name = funding.round_name || '' if (name.toLowerCase().includes('seed')) return 'Pre-Seed' if (name.toLowerCase().includes('series a')) return 'Series A' return 'Pre-Seed' } function formatQuarter(dateStr: string | undefined): string { if (!dateStr) return '' try { const d = new Date(dateStr) const quarter = Math.ceil((d.getMonth() + 1) / 3) return `Q${quarter} ${d.getFullYear()}` } catch { return '' } } export default function CoverSlide({ lang, onNext, funding }: CoverSlideProps) { const i = t(lang) const roundLabel = formatRoundLabel(funding) const quarter = formatQuarter(funding?.target_date) const subtitle = quarter ? `${roundLabel} · ${quarter}` : roundLabel return (
{/* Logo / Brand */}
{/* Company Name */} BreakPilot{' '} {/* Tagline */} {i.cover.tagline} {/* Subtitle — dynamisch aus Funding */} {subtitle} {/* CTA */} {i.cover.cta}
) }