({
title,
description,
bgImage,
}: {
title: string;
description: React.ReactNode;
bgImage: string;
})
| 10 | } |
| 11 | |
| 12 | function SellingPoint({ |
| 13 | title, |
| 14 | description, |
| 15 | bgImage, |
| 16 | }: { |
| 17 | title: string; |
| 18 | description: React.ReactNode; |
| 19 | bgImage: string; |
| 20 | }) { |
| 21 | return ( |
| 22 | <div className="flex flex-col justify-center h-full p-8 select-none relative"> |
| 23 | <img |
| 24 | src={bgImage} |
| 25 | className="absolute inset-0 w-full h-full object-cover" |
| 26 | /> |
| 27 | <div className="relative z-10 center-center col"> |
| 28 | <motion.div |
| 29 | initial={{ opacity: 0, y: 20 }} |
| 30 | animate={{ opacity: 1, y: 0 }} |
| 31 | transition={{ duration: 0.6 }} |
| 32 | > |
| 33 | <h2 className="text-6xl font-bold text-white drop-shadow-2xl drop-shadow-highlight mb-2"> |
| 34 | {title} |
| 35 | </h2> |
| 36 | </motion.div> |
| 37 | <motion.div |
| 38 | initial={{ opacity: 0, y: 20 }} |
| 39 | animate={{ opacity: 1, y: 0 }} |
| 40 | transition={{ duration: 0.6 }} |
| 41 | > |
| 42 | <p className="text-lg text-white/70 leading-relaxed">{description}</p> |
| 43 | </motion.div> |
| 44 | </div> |
| 45 | </div> |
| 46 | ); |
| 47 | } |
| 48 | |
| 49 | export { SellingPoint, SellingPointIcon }; |
nothing calls this directly
no outgoing calls
no test coverage detected