From 94a6c2dec27327ca1f5aec413282c3102030c099 Mon Sep 17 00:00:00 2001 From: Vibhor Phalke Date: Tue, 7 Jan 2025 02:18:13 +0530 Subject: [PATCH 1/3] fix scroll-trigger animation in feature showcase Signed-off-by: Vibhor Phalke --- components/features.tsx | 51 ++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/components/features.tsx b/components/features.tsx index 288fee6c..e33ff096 100644 --- a/components/features.tsx +++ b/components/features.tsx @@ -14,7 +14,7 @@ gsap.registerPlugin(ScrollTrigger); const TestAndStubGenerationImage = ({ isVisible }: { isVisible: boolean }) => (
-
+
{isVisible && tests and stub gen gif}
@@ -22,8 +22,8 @@ const TestAndStubGenerationImage = ({ isVisible }: { isVisible: boolean }) => ( const TestDuplicationImage = ({ isVisible }: { isVisible: boolean }) => (
-
- {isVisible && dedup image gif} +
+ {isVisible && dedup image gif}
); @@ -113,8 +113,8 @@ export default function Features() { ScrollTrigger.create({ trigger: details[2], - start: "top 80%", - end: "bottom 25%", + start: "top 80%", + end: "top 100%", onEnter: () => { gsap.to(images[0], { opacity: 0, @@ -131,6 +131,22 @@ export default function Features() { }); setImage2Visible(true); }, + onLeave: () => { + gsap.to(images[1], { + opacity: 0, + y: 50, + duration: 0.8, + ease: "power2.out" + }); + setImage2Visible(false); + gsap.to(images[1], { // Add this to show image1 again + opacity: 1, + y: 0, + duration: 0.8, + ease: "power2.out", + }); + setImage2Visible(true); + }, onLeaveBack: () => { gsap.to(images[1], { opacity: 0, @@ -139,7 +155,6 @@ export default function Features() { ease: "power2.out", }); setImage2Visible(false); - gsap.to(images[0], { opacity: 1, y: 0, @@ -176,7 +191,7 @@ export default function Features() { trigger: ".content-container", start: "top top", end: "bottom bottom", - pin: ".heading-text", + pin: "top", }); details.forEach((detail: HTMLElement) => { @@ -202,18 +217,18 @@ export default function Features() { return ( <> +
+

+ Keploy for Developers +

+

+ smart API testing, capture network calls and generate tests with stubs +

+
-
-

- Keploy for Developers -

-

- smart API testing, capture network calls and generate tests with stubs -

-
-
-
+
+
-
+
From c761998dba55b96ed4085959cde250ecf9d59192 Mon Sep 17 00:00:00 2001 From: Vibhor Phalke Date: Tue, 7 Jan 2025 02:28:37 +0530 Subject: [PATCH 2/3] fixed typescript errors Signed-off-by: Vibhor Phalke --- components/features.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/features.tsx b/components/features.tsx index e33ff096..18bf1e58 100644 --- a/components/features.tsx +++ b/components/features.tsx @@ -35,11 +35,11 @@ const TextSection = ({ btnDescription, btnLink, }: { - svg: any; + svg: React.ReactNode; heading: string; description: string; btnDescription?: string; - btnLink?: any; + btnLink: string; }) => { return (
@@ -75,7 +75,7 @@ export default function Features() { useEffect(() => { if (!inView) { - ScrollTrigger.getAll().forEach((trigger) => trigger.kill()); + ScrollTrigger.getAll().forEach((trigger) => {trigger.kill()}); setImage1Visible(false); setImage2Visible(false); return; @@ -209,7 +209,7 @@ export default function Features() { }); return () => { - ScrollTrigger.getAll().forEach((trigger) => trigger.kill()); + ScrollTrigger.getAll().forEach((trigger) => {trigger.kill()}); }; }, [inView]); From f0b9b1c24dbb3bbdff070146656de208ac62cce3 Mon Sep 17 00:00:00 2001 From: Vibhor Phalke Date: Tue, 7 Jan 2025 03:40:16 +0530 Subject: [PATCH 3/3] fix heading-text visible in mobile view Signed-off-by: Vibhor Phalke --- components/features.tsx | 146 ++++++++++++++++++++-------------------- 1 file changed, 74 insertions(+), 72 deletions(-) diff --git a/components/features.tsx b/components/features.tsx index 18bf1e58..8041a71b 100644 --- a/components/features.tsx +++ b/components/features.tsx @@ -22,7 +22,7 @@ const TestAndStubGenerationImage = ({ isVisible }: { isVisible: boolean }) => ( const TestDuplicationImage = ({ isVisible }: { isVisible: boolean }) => (
-
+
{isVisible && dedup image gif}
@@ -114,7 +114,7 @@ export default function Features() { ScrollTrigger.create({ trigger: details[2], start: "top 80%", - end: "top 100%", + end: "top 70%", onEnter: () => { gsap.to(images[0], { opacity: 0, @@ -217,80 +217,82 @@ export default function Features() { return ( <> -
-

- Keploy for Developers -

-

- smart API testing, capture network calls and generate tests with stubs -

-
-
-
-
-
- - - - } - heading={"Record Replay API Flows"} - description=" Record and replay complex, distributed API flows as mocks and stubs. It's like time machine for tests!" - btnDescription="Explore More" - btnLink="https://keploy.io/docs/keploy-explained/introduction/" - /> -
-
- - - - } - heading={"Find Duplicate Tests"} - description="Find redundant tests that doesn't add to the test coverage. Automatically detect and remove duplicate tests, ideal for big-teams crowd-sourcing tests." - btnDescription="Explore More" - btnLink="https://keploy.io/docs/keploy-cloud/deduplication/" - /> +
+
+

+ Keploy for Developers +

+

+ smart API testing, capture network calls and generate tests with stubs +

+
+
+
+
+
+ + + + } + heading={"Record Replay API Flows"} + description=" Record and replay complex, distributed API flows as mocks and stubs. It's like time machine for tests!" + btnDescription="Explore More" + btnLink="https://keploy.io/docs/keploy-explained/introduction/" + /> +
+
+ + + + } + heading={"Find Duplicate Tests"} + description="Find redundant tests that doesn't add to the test coverage. Automatically detect and remove duplicate tests, ideal for big-teams crowd-sourcing tests." + btnDescription="Explore More" + btnLink="https://keploy.io/docs/keploy-cloud/deduplication/" + /> +
+
+ + + + } + heading={"Works with JUnit, PyTest, Jest, Go-Test in CI/CD"} + description="Merge Keploy tests coverage with unit testing libraries for combined test coverage gating in CI/CD pipelines like Jenkins, Github Actions." + btnDescription="Explore More" + btnLink=" https://keploy.io/docs/server/sdk-installation/go/" + /> +
-
- - - - } - heading={"Works with JUnit, PyTest, Jest, Go-Test in CI/CD"} - description="Merge Keploy tests coverage with unit testing libraries for combined test coverage gating in CI/CD pipelines like Jenkins, Github Actions." - btnDescription="Explore More" - btnLink=" https://keploy.io/docs/server/sdk-installation/go/" - /> +
+ +
-
- - -