From 3511910f756c4e2f60bce19e474bbe285c02b2e0 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 6 Mar 2026 22:16:33 +0000 Subject: [PATCH] Update src/components/sections/feature/FeatureCardTwentySeven.tsx --- .../feature/FeatureCardTwentySeven.tsx | 221 +----------------- 1 file changed, 6 insertions(+), 215 deletions(-) diff --git a/src/components/sections/feature/FeatureCardTwentySeven.tsx b/src/components/sections/feature/FeatureCardTwentySeven.tsx index 53af0a8..1e539bd 100644 --- a/src/components/sections/feature/FeatureCardTwentySeven.tsx +++ b/src/components/sections/feature/FeatureCardTwentySeven.tsx @@ -1,219 +1,10 @@ -"use client"; +import React from 'react'; +import { CardStack, CardStackProps } from '@/components/cardStack/CardStack'; -import { useState } from "react"; -import { Plus } from "lucide-react"; -import CardStack from "@/components/cardStack/CardStack"; -import MediaContent from "@/components/shared/MediaContent"; -import { cls } from "@/lib/utils"; -import type { LucideIcon } from "lucide-react"; -import type { ButtonConfig, GridVariant, CardAnimationType, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types"; -import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; +type FeatureCardTwentySevenProps = Omit; -type FeatureCard = { - id: string; - title: string; - description: string; - imageSrc?: string; - videoSrc?: string; - imageAlt?: string; +export const FeatureCardTwentySeven: React.FC = (props) => { + return ; }; -interface FeatureCardTwentySevenItemProps { - title: string; - description: string; - imageSrc?: string; - videoSrc?: string; - imageAlt?: string; - className?: string; - titleClassName?: string; - descriptionClassName?: string; -} - -const FeatureCardTwentySevenItem = ({ - title, - description, - imageSrc, - videoSrc, - imageAlt = "", - className = "", - titleClassName = "", - descriptionClassName = "", -}: FeatureCardTwentySevenItemProps) => { - const [isFlipped, setIsFlipped] = useState(false); - - return ( -
setIsFlipped(!isFlipped)} - > -
-
-
-

- {title} -

-
- -
-
-
- -
-
- -
-
-

- {title} -

-
- -
-
-
-

- {description} -

-
-
-
-
- ); -}; - -interface FeatureCardTwentySevenProps { - features: FeatureCard[]; - carouselMode?: "auto" | "buttons"; - gridVariant: GridVariant; - uniformGridCustomHeightClasses?: string; - animationType: CardAnimationType; - title: string; - titleSegments?: TitleSegment[]; - description: string; - tag?: string; - tagIcon?: LucideIcon; - tagAnimation?: ButtonAnimationType; - buttons?: ButtonConfig[]; - buttonAnimation?: ButtonAnimationType; - textboxLayout: TextboxLayout; - useInvertedBackground: InvertedBackground; - ariaLabel?: string; - className?: string; - containerClassName?: string; - cardClassName?: string; - textBoxTitleClassName?: string; - textBoxTitleImageWrapperClassName?: string; - textBoxTitleImageClassName?: string; - textBoxDescriptionClassName?: string; - cardTitleClassName?: string; - cardDescriptionClassName?: string; - gridClassName?: string; - carouselClassName?: string; - controlsClassName?: string; - textBoxClassName?: string; - textBoxTagClassName?: string; - textBoxButtonContainerClassName?: string; - textBoxButtonClassName?: string; - textBoxButtonTextClassName?: string; -} - -const FeatureCardTwentySeven = ({ - features, - carouselMode = "buttons", - gridVariant, - uniformGridCustomHeightClasses = "min-h-none", - animationType, - title, - titleSegments, - description, - tag, - tagIcon, - tagAnimation, - buttons, - buttonAnimation, - textboxLayout, - useInvertedBackground, - ariaLabel = "Feature section", - className = "", - containerClassName = "", - cardClassName = "", - textBoxTitleClassName = "", - textBoxTitleImageWrapperClassName = "", - textBoxTitleImageClassName = "", - textBoxDescriptionClassName = "", - cardTitleClassName = "", - cardDescriptionClassName = "", - gridClassName = "", - carouselClassName = "", - controlsClassName = "", - textBoxClassName = "", - textBoxTagClassName = "", - textBoxButtonContainerClassName = "", - textBoxButtonClassName = "", - textBoxButtonTextClassName = "", -}: FeatureCardTwentySevenProps) => { - return ( - - {features.map((feature, index) => ( - - ))} - - ); -}; - -FeatureCardTwentySeven.displayName = "FeatureCardTwentySeven"; - -export default FeatureCardTwentySeven; +export default FeatureCardTwentySeven; \ No newline at end of file