Files
breakpilot-core/pitch-deck/components/slides/HowItWorksSlide.tsx
Benjamin Admin d359b7b734
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m6s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 31s
CI / test-python-voice (push) Successful in 30s
CI / test-bqas (push) Successful in 30s
fix(pitch-deck): HowItWorks line behind icons, remove France refs, SOM label
- Connection line: starts/ends between icons, opaque icon background
- Remove all "oder Frankreich/or France/oder FR/or FR" references
- Market subtitle: remove "Der Maschinenbau"
- SOM label: add "(nur Maschinen- und Anlagenbauer als Kernmarkt)"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 13:46:21 +02:00

66 lines
2.4 KiB
TypeScript

'use client'
import { motion } from 'framer-motion'
import { Language } from '@/lib/types'
import { t } from '@/lib/i18n'
import { Plug, GitBranch, RefreshCw, CheckCircle2 } from 'lucide-react'
import GradientText from '../ui/GradientText'
import FadeInView from '../ui/FadeInView'
interface HowItWorksSlideProps {
lang: Language
}
const stepIcons = [Plug, GitBranch, RefreshCw, CheckCircle2]
const stepColors = ['text-blue-400', 'text-indigo-400', 'text-purple-400', 'text-green-400']
export default function HowItWorksSlide({ lang }: HowItWorksSlideProps) {
const i = t(lang)
return (
<div>
<FadeInView className="text-center mb-12">
<h2 className="text-4xl md:text-5xl font-bold mb-3">
<GradientText>{i.howItWorks.title}</GradientText>
</h2>
<p className="text-lg text-white/50 max-w-2xl mx-auto">{i.howItWorks.subtitle}</p>
</FadeInView>
<div className="relative max-w-4xl mx-auto">
{/* Connection Line — behind icons (z-0), icons have z-10 with opaque bg */}
<div className="absolute left-8 top-20 bottom-20 w-px bg-gradient-to-b from-blue-500/40 via-purple-500/40 to-green-500/40 hidden md:block z-0" />
<div className="space-y-8">
{i.howItWorks.steps.map((step, idx) => {
const Icon = stepIcons[idx]
return (
<motion.div
key={idx}
initial={{ opacity: 0, x: -30 }}
animate={{ opacity: 1, x: 0 }}
transition={{ delay: 0.3 + idx * 0.2, duration: 0.5 }}
className="flex items-start gap-6 relative"
>
<div className={`
w-16 h-16 rounded-2xl bg-[#0c0c1d] border border-white/10
flex items-center justify-center shrink-0 relative z-10
${stepColors[idx]}
`}>
<Icon className="w-7 h-7" />
</div>
<div className="pt-2">
<div className="flex items-center gap-3 mb-1">
<span className="text-xs font-mono text-white/30">0{idx + 1}</span>
<h3 className="text-xl font-bold text-white">{step.title}</h3>
</div>
<p className="text-sm text-white/50 leading-relaxed max-w-lg">{step.desc}</p>
</div>
</motion.div>
)
})}
</div>
</div>
</div>
)
}