From 1a5be72e68ae41d27c7a50b0a915c53e019578d7 Mon Sep 17 00:00:00 2001 From: Shamvrueth Date: Mon, 4 Nov 2024 23:55:36 +0530 Subject: [PATCH] Updated about.jsx --- src/views/About.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/About.jsx b/src/views/About.jsx index b0671e8..a00604e 100644 --- a/src/views/About.jsx +++ b/src/views/About.jsx @@ -9,10 +9,11 @@ import "../styles/about.css"; import styled from 'styled-components'; import CountUp from 'react-countup'; import VisibilitySensor from 'react-visibility-sensor'; -import { useState } from 'react'; +import { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; import TeamMembers from '../components/TeamCarousel'; import { width } from '@mui/system'; +import AOS from 'aos'; const About = ({ mode, textcolor }) => { const [viewed, setViewed] = useState({ users: false, @@ -21,6 +22,11 @@ const About = ({ mode, textcolor }) => { hospitals: false, }); + useEffect(() => { + AOS.init({ duration: 2000 }); + AOS.refresh(); + }, [mode]); + const navigate = useNavigate(); const sloganStyle = { color: mode === 'dark' ? '#FFFFFF' : textcolor, // Use white for dark mode, otherwise use textcolor @@ -32,7 +38,7 @@ const About = ({ mode, textcolor }) => { {/* Hero Section */} -
+

"Your Fitness, Your Future!"

- FitFlex Motto

@@ -47,6 +53,7 @@ const About = ({ mode, textcolor }) => { sx={{ background: mode === 'dark' ? 'linear-gradient(135deg, #000000, #444444)' : '#fff', color: mode === 'dark' ? '#fff' : '#000', + ml: 2 }} data-aos="fade-right" data-aos-delay="200" @@ -66,6 +73,7 @@ const About = ({ mode, textcolor }) => { sx={{ background: mode === 'dark' ? 'linear-gradient(135deg, #000000, #444444)' : '#fff', color: mode === 'dark' ? '#fff' : '#000', + ml: 2 }} data-aos="fade-left" data-aos-delay="200"