From cdde81eb6e872d751f93aff9a1043dc2e248c218 Mon Sep 17 00:00:00 2001 From: Evandro Fonseca Junior Date: Sat, 8 Aug 2026 19:42:40 -0300 Subject: [PATCH] fix: stabilize reveals and update contact email --- app/components/About.tsx | 3 +- app/components/Contact.tsx | 6 +- app/components/Experience.tsx | 5 +- app/components/Footer.test.tsx | 11 ++- app/components/Footer.tsx | 4 +- app/components/LighthouseMetrics.tsx | 3 +- app/components/Logo.tsx | 3 +- app/components/Projects.tsx | 7 +- app/components/Reveal.tsx | 3 +- app/components/RouteTransition.tsx | 5 +- app/components/Section.tsx | 3 +- app/components/Skills.tsx | 5 +- app/components/WorkModalities.tsx | 6 +- app/components/animations/CounterValue.tsx | 3 +- app/components/animations/DrawLine.tsx | 3 +- app/components/animations/LazyRevealImage.tsx | 5 +- .../TextDiffuseReveal.reducedMotion.test.tsx | 81 +++++++++++++++++++ .../animations/TextDiffuseReveal.tsx | 9 +-- app/components/animations/TopProgressBar.tsx | 3 +- app/components/cinematic/HeroBackground.tsx | 2 +- app/components/cinematic/PageIntro.tsx | 3 +- app/hooks/useReducedMotion.ts | 11 ++- 22 files changed, 144 insertions(+), 40 deletions(-) create mode 100644 app/components/animations/TextDiffuseReveal.reducedMotion.test.tsx diff --git a/app/components/About.tsx b/app/components/About.tsx index 77417e7..5b59183 100644 --- a/app/components/About.tsx +++ b/app/components/About.tsx @@ -1,6 +1,7 @@ "use client"; -import { motion, useReducedMotion, type Variants } from "framer-motion"; +import { motion, type Variants } from "framer-motion"; +import { useReducedMotion } from "@/app/hooks/useReducedMotion"; import profilePhoto from "@/public/edev.jpg"; import { DrawLine } from "./animations/DrawLine"; import { LazyRevealImage } from "./animations/LazyRevealImage"; diff --git a/app/components/Contact.tsx b/app/components/Contact.tsx index ac67d68..f804ff3 100644 --- a/app/components/Contact.tsx +++ b/app/components/Contact.tsx @@ -1,13 +1,13 @@ "use client"; +import { motion, type Variants } from "framer-motion"; import type React from "react"; import { useEffect, useState } from "react"; +import { useReducedMotion } from "@/app/hooks/useReducedMotion"; import { buildWhatsAppUrl, getWhatsAppDisplayNumber } from "@/lib/whatsapp"; -import { motion, type Variants, useReducedMotion } from "framer-motion"; -import { Section } from "./Section"; import { DrawLine } from "./animations/DrawLine"; import MagneticButton from "./cinematic/MagneticButton"; - +import { Section } from "./Section"; export default function Contact() { const shouldReduceMotion = useReducedMotion(); diff --git a/app/components/Experience.tsx b/app/components/Experience.tsx index 5a3c766..950bcfc 100644 --- a/app/components/Experience.tsx +++ b/app/components/Experience.tsx @@ -1,9 +1,10 @@ "use client"; +import { motion, type Variants } from "framer-motion"; +import { useReducedMotion } from "@/app/hooks/useReducedMotion"; import type { PortfolioExperience } from "@/lib/portfolio-data"; -import { motion, type Variants, useReducedMotion } from "framer-motion"; -import { Section } from "./Section"; import { DrawLine } from "./animations/DrawLine"; +import { Section } from "./Section"; export default function Experience({ experiences, diff --git a/app/components/Footer.test.tsx b/app/components/Footer.test.tsx index a85d1f5..392c10d 100644 --- a/app/components/Footer.test.tsx +++ b/app/components/Footer.test.tsx @@ -13,7 +13,7 @@ describe("Footer Component - Contact Information", () => { it("should render email address", () => { render(