diff --git a/src/components/About/index.jsx b/src/components/About/index.jsx index aa30848..99628d0 100644 --- a/src/components/About/index.jsx +++ b/src/components/About/index.jsx @@ -1,65 +1,102 @@ -import './style.css'; +import "./style.css"; import { BsHeadsetVr } from "react-icons/bs"; import { FaGlobeAmericas } from "react-icons/fa"; -import 'aos/dist/aos.css' +import Aos from "aos"; +import "aos/dist/aos.css"; // images -import algos from './img/algocs.png'; -import gdsc from './img/gdsc.png'; -import iosc from './img/iosc.png'; - -import {MIDDLE_SECTION} from '../../Module/General'; +import algos from "./img/algocs.png"; +import gdsc from "./img/gdsc.png"; +import iosc from "./img/iosc.png"; +import { MIDDLE_SECTION } from "../../Module/General"; +import { useEffect } from "react"; function LogoSectionAbout() { + useEffect(() => { + Aos.init({ duration: 400 }); + }, []); return ( -
+
{/* */}

{MIDDLE_SECTION.TITLE}

-

- - The largest code fest of Delhi-NCR is back! ⚡
- Join this 24-Hour Hackathon to hustle and shine through 5 amazing tracks, Embark on an Odyssey to learn new technologies, seek guidance from experienced mentors and engrave your name on the boards of our esteemed Judges.
- Witness prodigious Speakers of the Nation live! ✨
- Not just that, win huge prizes and hampers by brainstorming and creating the best hack!
- Be ready to sail through an amazing night of fun, code and much more on 28th & 29th April! 💫 - -

+

+ The largest code fest of Delhi-NCR is back! ⚡
+ Join this 24-Hour Hackathon to hustle and shine through 5 amazing + tracks, Embark on an Odyssey to learn new technologies, seek guidance + from experienced mentors and engrave your name on the boards of our + esteemed Judges. +
+ Witness prodigious Speakers of the Nation live! ✨
+ Not just that, win huge prizes and hampers by brainstorming and + creating the best hack! +
+ Be ready to sail through an amazing night of fun, code and much more + on 28th & 29th April! 💫 +

); } function Logo() { + useEffect(() => { + Aos.init({ duration: 400 }); + }, []); return ( - Innohacks + Innohacks ); } function CommunityPartner() { - - return( -
-

Community Partners

-
-
- -

IOSC

-
-
- -

GDSC-ABESEC

+ useEffect(() => { + Aos.init({ duration: 400 }); + }, []); + return ( +
+

+ Community Partners +

+
+
+ +

IOSC

+
+
+ +

GDSC-ABESEC

+
+
+ +

ALGOCS

+
-
- -

ALGOCS

-
-
- ); } -export {Logo, LogoSectionAbout, CommunityPartner}; +export { Logo, LogoSectionAbout, CommunityPartner }; diff --git a/src/components/PastEdition/index.jsx b/src/components/PastEdition/index.jsx index 998df5d..0b081ae 100644 --- a/src/components/PastEdition/index.jsx +++ b/src/components/PastEdition/index.jsx @@ -1,4 +1,6 @@ import React, { useEffect, useState } from "react"; +import Aos from "aos" +import "aos/dist/aos.css" import "./style.scss"; import one from "./assets/2.jpg"; import two from "./assets/1.jpg"; @@ -17,6 +19,7 @@ function PastEdition() { }; useEffect(() => { + Aos.init({duration:400}) const intervalId = setInterval(() => { setMainImage(thumbnails[Math.floor(Math.random() * 6)]); }, 5000); @@ -26,7 +29,15 @@ function PastEdition() { return (
-

Past Edition

+

+ Past Edition +

{thumbnails.map((thumbnail, index) => ( diff --git a/src/components/Schedule/schedule.jsx b/src/components/Schedule/schedule.jsx index 8eb8676..854a167 100644 --- a/src/components/Schedule/schedule.jsx +++ b/src/components/Schedule/schedule.jsx @@ -1,31 +1,41 @@ -import './schedule.css' - - +import "./schedule.css"; +import Aos from "aos" +import "aos/dist/aos.css" +import { useEffect } from "react"; const Schedule = () => { -return( - <> - -
-

- Schedule -

-
- -
- - - - -
- -) + useEffect(()=>{ + Aos.init({duration:400}) + },[]) + return ( + <> +
+

+ Schedule +

+
+
+ + +
+ + ); }; -export default Schedule; \ No newline at end of file +export default Schedule; diff --git a/src/containers/Home/HomePage.jsx b/src/containers/Home/HomePage.jsx index 8e750bc..cf947bf 100644 --- a/src/containers/Home/HomePage.jsx +++ b/src/containers/Home/HomePage.jsx @@ -1,5 +1,5 @@ import { UseMedia } from "hooks/useMedia"; -import { useState } from "react"; +import { useEffect, useState } from "react"; import Col from "react-bootstrap/Col"; import Container from "react-bootstrap/Container"; import Row from "react-bootstrap/Row"; @@ -36,10 +36,12 @@ import { certificateSponsor, TeamInfo, } from "../../Module/General"; -import PastWinner from "components/pastWinners/index.jsx"; +// import PastWinner from "components/pastWinners/index.jsx"; import Map from "components/map/index.jsx"; import Organiser from "components/organisers/Organiser.jsx"; import PastEdition from "components/PastEdition"; +import Aos from "aos"; +import "aos/dist/aos.css"; const PrizeGroup = (props, index) => { return ( @@ -54,10 +56,13 @@ const PrizeGroup = (props, index) => { }; const TeamMembers = (props, index) => { + useEffect(() => { + Aos.init({ duration: 400 }); + }, []); return ( {props.map((s, i) => ( - + ))} @@ -69,7 +74,7 @@ const FrequentlyAsked = (props, index) => { return ( {props.map((s, i) => ( - + ))} @@ -78,6 +83,9 @@ const FrequentlyAsked = (props, index) => { }; export default function HomePage() { + useEffect(()=>{ + Aos.init({duration:400}) + },[]) const [media, setMedia] = useState(); UseMedia("min-width", 1000, setMedia); @@ -86,10 +94,10 @@ export default function HomePage() {
- + - +
- + @@ -116,14 +124,14 @@ export default function HomePage() { - +

Past Statistics

@@ -136,7 +144,7 @@ export default function HomePage() { data-aos-duration="800" id="prizes" className="prize_heading" - style={{ fontFamily: "repo-bold", marginTop:"100px" }} + style={{ fontFamily: "repo-bold", marginTop: "100px" }} > Prizes @@ -240,16 +248,15 @@ export default function HomePage() {

- Track Prizes -

+ data-aos="zoom-in" + data-aos-duration="800" + id="prizes" + className="prize_heading" + style={{ fontFamily: "repo-bold", marginTop: "100px" }} + > + Track Prizes +
-
- - - - - + + {/* Schedule section ends here */} @@ -330,7 +333,6 @@ export default function HomePage() {
-

Title sponsor

{titleSponsor.map((item, i) => (
- +
))} @@ -454,13 +456,13 @@ export default function HomePage() { {/* Cumminity partners End */} - + {/* Past Edition start*/} - + {/* Past Edition end */} - + {/* past winners */} {/* @@ -473,17 +475,29 @@ export default function HomePage() { {/* Organizing team End */} - {/* ********Frequently asked Questions here ***** */}
-

FAQs

+

+ FAQs +

{frequentlyAskedQuestions.map(FrequentlyAsked)}
{/* FAQ Ends */} {/* Map */} -

How to Reach ?

+

+ How to Reach ? +

{/* Map End */} diff --git a/src/containers/navbar/App.jsx b/src/containers/navbar/App.jsx index 1204349..2a13b77 100644 --- a/src/containers/navbar/App.jsx +++ b/src/containers/navbar/App.jsx @@ -8,6 +8,8 @@ import hamLogo from './assets/ham.svg'; import './styles.scss'; import {MdxContent} from '../Mdx'; import navLogo from "./assets/nav-logo.png" +import Aos from "aos" +import "aos/dist/aos.css" const NAVIGATION_OFFSET = 66; @@ -57,6 +59,8 @@ const NAVBAR = ({}) => { }; useEffect(() => { + Aos.init({duration:400}) + window.addEventListener('scroll', listenScrollEvent); return () => window.removeEventListener('scroll', listenScrollEvent); }, []); @@ -64,7 +68,7 @@ const NAVBAR = ({}) => { return ( -