diff --git a/src/components/sections/metrics/MetricCardEleven.tsx b/src/components/sections/metrics/MetricCardEleven.tsx index 94dcbcb..e2a56f8 100644 --- a/src/components/sections/metrics/MetricCardEleven.tsx +++ b/src/components/sections/metrics/MetricCardEleven.tsx @@ -1,15 +1,274 @@ -import { useCardAnimation } from '@/components/cardStack/CardStack'; +"use client"; -export function MetricCardEleven() { - const { animate, itemRefs } = useCardAnimation(); +import { memo } from "react"; +import CardStackTextBox from "@/components/cardStack/CardStackTextBox"; +import MediaContent from "@/components/shared/MediaContent"; +import { useCardAnimation } from "@/components/cardStack/hooks/useCardAnimation"; +import { cls, shouldUseInvertedText } from "@/lib/utils"; +import { useTheme } from "@/providers/themeProvider/ThemeProvider"; +import type { LucideIcon } from "lucide-react"; +import type { ButtonConfig, CardAnimationType, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types"; +import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; - const handleAnimate = () => { - animate(0); - }; +type MediaProps = + | { + imageSrc: string; + imageAlt?: string; + videoSrc?: never; + videoAriaLabel?: never; + } + | { + videoSrc: string; + videoAriaLabel?: string; + imageSrc?: never; + imageAlt?: never; + }; - return ( -
+ {metric.title} +
+ ++ {metric.description} +
+