File tree Expand file tree Collapse file tree 4 files changed +10
-135
lines changed
Expand file tree Collapse file tree 4 files changed +10
-135
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,36 +2,42 @@ import { useEffect, useRef } from "react";
22import gsap from "gsap" ;
33import { ScrollTrigger } from "gsap/ScrollTrigger" ;
44
5- const EventsHighlight = ( ) => {
5+ function EventsHighlight ( ) {
66 const containerRef = useRef ( null ) ;
77
88 const images = [
99 {
10+ key : 0 ,
1011 url : "/CodeX-Website/gallery/Community Session/cs1.jpg" ,
1112 alt : "Image 1" ,
1213 side : "left" ,
1314 } ,
1415 {
16+ key : 1 ,
1517 url : "/CodeX-Website/gallery/AIML SESSION/aiml1.jpg" ,
1618 alt : "Image 2" ,
1719 side : "right" ,
1820 } ,
1921 {
22+ key : 2 ,
2023 url : "/CodeX-Website/gallery//AIML SESSION/aiml6.jpg" ,
2124 alt : "Image 3" ,
2225 side : "left" ,
2326 } ,
2427 {
28+ key : 3 ,
2529 url : "/CodeX-Website/gallery/Community Session/cs3.jpg" ,
2630 alt : "Image 4" ,
2731 side : "right" ,
2832 } ,
2933 {
34+ key : 4 ,
3035 url : "/CodeX-Website/gallery/HackTober Fest/htf1_1.jpg" ,
3136 alt : "Image 5" ,
3237 side : "left" ,
3338 } ,
3439 {
40+ key : 5 ,
3541 url : "/CodeX-Website/gallery/Laser Lock/ll1.jpg" ,
3642 alt : "Image 6" ,
3743 side : "right" ,
@@ -82,9 +88,9 @@ const EventsHighlight = () => {
8288
8389 { /* Images container */ }
8490 < div ref = { containerRef } className = "relative" >
85- { images . map ( ( image , index ) => (
91+ { images . map ( ( image ) => (
8692 < div
87- key = { index }
93+ key = { image . key }
8894 className = { `relative h-[50vh] flex items-center justify-center ${
8995 image . side === "left" ? "ml-24" : "mr-24"
9096 } `}
@@ -105,6 +111,6 @@ const EventsHighlight = () => {
105111 </ div >
106112 </ div >
107113 ) ;
108- } ;
114+ }
109115
110116export default EventsHighlight ;
Original file line number Diff line number Diff line change @@ -5,15 +5,8 @@ import Gallery from "@/pages/Gallery/Gallery";
55import Contact from "@/pages/Contact" ;
66import PageNotFound from "../pages/PageNotFound" ;
77import Loader from "@/components/Loader" ;
8- import AboutSection from "@/components/AboutUs" ;
98
109const routes = [
11- {
12- label : "AboutUs" ,
13- path : "/about-us-test" ,
14- requireAuth : false ,
15- render : < AboutSection /> ,
16- } ,
1710 {
1811 label : "Loader" ,
1912 path : "/loader" ,
You can’t perform that action at this time.
0 commit comments