diff --git a/src/components/sections/about/SplitAbout.tsx b/src/components/sections/about/SplitAbout.tsx index 965ec53..f38cec3 100644 --- a/src/components/sections/about/SplitAbout.tsx +++ b/src/components/sections/about/SplitAbout.tsx @@ -1,182 +1,21 @@ -"use client"; +'use client'; -import { Fragment } from "react"; -import CardStackTextBox from "@/components/cardStack/CardStackTextBox"; -import MediaContent from "@/components/shared/MediaContent"; -import { cls, shouldUseInvertedText } from "@/lib/utils"; -import { useTheme } from "@/providers/themeProvider/ThemeProvider"; -import { useButtonAnimation } from "@/components/hooks/useButtonAnimation"; -import type { LucideIcon } from "lucide-react"; -import type { ButtonConfig } from "@/types/button"; -import type { TitleSegment, ButtonAnimationType } from "@/components/cardStack/types"; -import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; - -interface BulletPoint { - title: string; - description: string; - icon?: LucideIcon; -} +import React from 'react'; +import { TitleSegment, ButtonAnimationType } from '@/components/cardStack/types'; interface SplitAboutProps { title: string; - titleSegments?: TitleSegment[]; description: string; - tag?: string; - tagIcon?: LucideIcon; - tagAnimation?: ButtonAnimationType; - buttons?: ButtonConfig[]; - buttonAnimation?: ButtonAnimationType; - bulletPoints: BulletPoint[]; - imageSrc?: string; - videoSrc?: string; - imageAlt?: string; - videoAriaLabel?: string; - ariaLabel?: string; - imagePosition?: "left" | "right"; - mediaAnimation: ButtonAnimationType; - textboxLayout: TextboxLayout; - useInvertedBackground: InvertedBackground; className?: string; - containerClassName?: string; - textBoxClassName?: string; - titleClassName?: string; - titleImageWrapperClassName?: string; - titleImageClassName?: string; - descriptionClassName?: string; - tagClassName?: string; - buttonContainerClassName?: string; - buttonClassName?: string; - buttonTextClassName?: string; - contentClassName?: string; - bulletPointClassName?: string; - bulletTitleClassName?: string; - bulletDescriptionClassName?: string; - mediaWrapperClassName?: string; - imageClassName?: string; } -const SplitAbout = ({ - title, - titleSegments, - description, - tag, - tagIcon, - tagAnimation, - buttons, - buttonAnimation, - bulletPoints, - imageSrc, - videoSrc, - imageAlt = "", - videoAriaLabel = "About section video", - ariaLabel = "About section", - imagePosition = "right", - mediaAnimation, - textboxLayout, - useInvertedBackground, - className = "", - containerClassName = "", - textBoxClassName = "", - titleClassName = "", - titleImageWrapperClassName = "", - titleImageClassName = "", - descriptionClassName = "", - tagClassName = "", - buttonContainerClassName = "", - buttonClassName = "", - buttonTextClassName = "", - contentClassName = "", - bulletPointClassName = "", - bulletTitleClassName = "", - bulletDescriptionClassName = "", - mediaWrapperClassName = "", - imageClassName = "", -}: SplitAboutProps) => { - const theme = useTheme(); - const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); - const { containerRef: mediaContainerRef } = useButtonAnimation({ animationType: mediaAnimation }); - const { containerRef: bulletPointsContainerRef } = useButtonAnimation({ animationType: mediaAnimation }); - - const mediaContent = ( -
- {point.description} -
-{description}
+