From d5a14354ec783985c927b3f992a0edf020acd130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jos=C3=A9=20Videira?= <03.pleaser-minster@icloud.com> Date: Tue, 11 Jun 2024 14:51:40 +0100 Subject: [PATCH] Fixed smooth scrolling + Added animations to the services cards --- src/Components/Pages/Hero/Hero.tsx | 14 +++++++++++++- src/Components/Pages/Services/CameraCards.tsx | 2 +- src/Components/Pages/Services/CardBtn.tsx | 2 +- src/Components/Pages/Services/MarketingCards.tsx | 2 +- src/Components/Pages/Services/SocialMedia.tsx | 2 +- src/Components/Pages/Services/WesiteCards.tsx | 2 +- src/index.css | 13 +++++++++++++ 7 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/Components/Pages/Hero/Hero.tsx b/src/Components/Pages/Hero/Hero.tsx index f28324d..c38debc 100644 --- a/src/Components/Pages/Hero/Hero.tsx +++ b/src/Components/Pages/Hero/Hero.tsx @@ -2,6 +2,11 @@ import HeroImg from "../../../assets/HeroImg.svg"; import Stars from "../../../assets/Stars.svg"; const Hero = () => { + const handleNavigation = (path: string) => { + const element = document.getElementById(path); + element?.scrollIntoView({ behavior: "smooth" }); + }; + return (