diff --git a/src/components/audacity4/CTAFooter.astro b/src/components/audacity4/CTAFooter.astro index a0fd240..5b77bf2 100644 --- a/src/components/audacity4/CTAFooter.astro +++ b/src/components/audacity4/CTAFooter.astro @@ -1,4 +1,4 @@ -
+

Ready to try Audacity 4?

diff --git a/src/components/audacity4/FeatureScene.jsx b/src/components/audacity4/FeatureScene.jsx index e1dbcd8..4b01ce5 100644 --- a/src/components/audacity4/FeatureScene.jsx +++ b/src/components/audacity4/FeatureScene.jsx @@ -1,100 +1,28 @@ -import React, { useRef, useEffect, useState } from "react"; -import { motion, useScroll, useInView, AnimatePresence } from "framer-motion"; - -function FeatureScene({ title, descriptions, imageSrc, imageAlt, mirrored = false }) { - const sectionRef = useRef(null); - const imageRef = useRef(null); - const imageInView = useInView(imageRef, { once: true, margin: "-50px" }); - const [activeIndex, setActiveIndex] = useState(0); - - const { scrollYProgress } = useScroll({ - target: sectionRef, - offset: ["start start", "end end"], - }); - - useEffect(() => { - const unsubscribe = scrollYProgress.on("change", (v) => { - const stepCount = descriptions.length; - const index = Math.min(Math.floor(v * stepCount), stepCount - 1); - setActiveIndex(index); - }); - return unsubscribe; - }, [scrollYProgress, descriptions.length]); - - const sectionHeight = `${descriptions.length * 100 + 50}vh`; +import React from "react"; +function FeatureScene({ title, description, imageSrc, imageAlt, mirrored = false, bgClass = "bg-white", textClass = "text-slate-900", bodyClass = "text-slate-600" }) { const imageColumn = ( -

-
- - {imageAlt} - -
+
+ {imageAlt}
); const textColumn = ( -
- {/* Mobile: stacked layout, no sticky */} -
- {imageAlt} -

{title}

- {descriptions.map((desc, index) => ( -

{desc}

- ))} -
- - {/* Desktop: sticky text that crossfades */} -
-
- - -

{title}

-

- {descriptions[activeIndex]} -

- {/* Progress dots */} -
- {descriptions.map((_, index) => ( -
- ))} -
- - -
+
+
+

{title}

+

{description}

); return ( -
-
+
+
{imageColumn} {textColumn}
diff --git a/src/components/audacity4/Hero.astro b/src/components/audacity4/Hero.astro index 073c0bd..79154bd 100644 --- a/src/components/audacity4/Hero.astro +++ b/src/components/audacity4/Hero.astro @@ -2,8 +2,8 @@ import PlaceholderUI from "../../assets/img/audacity4/placeholder-ui.svg"; --- -
-
+
+

Meet Audacity 4 diff --git a/src/pages/audacity-4.astro b/src/pages/audacity-4.astro index 52716a1..b21213e 100644 --- a/src/pages/audacity-4.astro +++ b/src/pages/audacity-4.astro @@ -20,64 +20,68 @@ import PlaceholderSplit from "../assets/img/audacity4/placeholder-split.svg"; + +