From 2642532b60e96c5f8edb0425e12cde464fc6e7bc Mon Sep 17 00:00:00 2001 From: Vikas Nale Date: Tue, 9 Sep 2025 15:02:59 +0530 Subject: [PATCH] handle animations --- src/pages/Home/LandingPage.css | 6 +- src/pages/Home/LandingPage.jsx | 116 +++++++++++--------------- src/pages/Home/SwaperSlideContent.jsx | 38 +++++++-- 3 files changed, 82 insertions(+), 78 deletions(-) diff --git a/src/pages/Home/LandingPage.css b/src/pages/Home/LandingPage.css index 70b8e283..c2a23cf9 100644 --- a/src/pages/Home/LandingPage.css +++ b/src/pages/Home/LandingPage.css @@ -355,7 +355,7 @@ nav.layout-navbar.navbar-active::after { .landing-hero { border-radius: 0 0 3.5rem 3.5rem; - padding-top: 10.2rem; + padding-top: 8.2rem; } .landing-hero::after { content: ""; @@ -368,7 +368,8 @@ nav.layout-navbar.navbar-active::after { } @media (min-width: 992px) { .landing-hero .hero-text-box { - max-width: 34.375rem; + /* max-width: 34.375rem; */ + max-width: 70%; margin: 0 auto; } } @@ -628,6 +629,7 @@ nav.layout-navbar.navbar-active::after { .swiper { width: 100%; height: 100%; + border-radius: 10px; } .swiper-slide { diff --git a/src/pages/Home/LandingPage.jsx b/src/pages/Home/LandingPage.jsx index 0277d357..252a1fa6 100644 --- a/src/pages/Home/LandingPage.jsx +++ b/src/pages/Home/LandingPage.jsx @@ -4,7 +4,7 @@ import { Link } from "react-router-dom"; import { Swiper, SwiperSlide } from "swiper/react"; // import required modules -import { Autoplay, Pagination, Navigation } from "swiper/modules"; +import { EffectFlip, Autoplay, Pagination, Navigation } from "swiper/modules"; // Import Swiper styles import "swiper/css"; import "swiper/css/navigation"; @@ -163,6 +163,7 @@ const LandingPage = () => { +
{ enabled: true, }} navigation={false} - modules={[Autoplay, Pagination, Navigation]} + modules={[EffectFlip, Autoplay, Pagination, Navigation]} className="mySwiper" onSlideChange={() => console.log("slide change")} onSwiper={(swiper) => console.log(swiper)} > - + - + + + + + + + + + + + + + + + + - {/* - hero dashboard - */} - {/* - hero dashboard - - - hero dashboard - - - hero dashboard - - - hero dashboard - - - hero dashboard - - - hero dashboard - */} {/* { +const SwaperSlideContent = ({ + ImageUrl = "", + Title = "", + Body = "", + ContentAlign = "right", +}) => { return (
@@ -14,16 +18,32 @@ const SwaperSlideContent = () => { className="position-absolute top-0 start-0 w-100 h-100" style={{ background: - "linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.1))", + "linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.1))", }} >
{/* Text Content */} -
-

Manage Projects. Empower Teams.

-

- All-in-one PMS solution for projects, people, and resources. -

+
+

+ {Title} +

+

{Body}

{/*