Migrated pitch-deck from breakpilot-pwa to breakpilot-core. Container: bp-core-pitch-deck on port 3012. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
588 B
TypeScript
24 lines
588 B
TypeScript
'use client'
|
|
|
|
import { motion } from 'framer-motion'
|
|
|
|
interface ProgressBarProps {
|
|
current: number
|
|
total: number
|
|
}
|
|
|
|
export default function ProgressBar({ current, total }: ProgressBarProps) {
|
|
const progress = ((current + 1) / total) * 100
|
|
|
|
return (
|
|
<div className="fixed top-0 left-0 right-0 z-50 h-1 bg-white/5">
|
|
<motion.div
|
|
className="h-full bg-gradient-to-r from-indigo-500 via-purple-500 to-blue-500"
|
|
initial={{ width: 0 }}
|
|
animate={{ width: `${progress}%` }}
|
|
transition={{ duration: 0.4, ease: 'easeOut' }}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|