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>
34 lines
872 B
TypeScript
34 lines
872 B
TypeScript
'use client'
|
|
|
|
import { motion } from 'framer-motion'
|
|
import { ReactNode } from 'react'
|
|
|
|
interface GlassCardProps {
|
|
children: ReactNode
|
|
className?: string
|
|
onClick?: () => void
|
|
delay?: number
|
|
hover?: boolean
|
|
}
|
|
|
|
export default function GlassCard({ children, className = '', onClick, delay = 0, hover = true }: GlassCardProps) {
|
|
return (
|
|
<motion.div
|
|
initial={{ opacity: 0, y: 20 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{ duration: 0.5, delay }}
|
|
whileHover={hover ? { scale: 1.02, backgroundColor: 'rgba(255, 255, 255, 0.12)' } : undefined}
|
|
onClick={onClick}
|
|
className={`
|
|
bg-white/[0.08] backdrop-blur-xl
|
|
border border-white/10 rounded-3xl
|
|
p-6 transition-colors duration-200
|
|
${onClick ? 'cursor-pointer' : ''}
|
|
${className}
|
|
`}
|
|
>
|
|
{children}
|
|
</motion.div>
|
|
)
|
|
}
|