Skip to content

Commit 680e956

Browse files
fix: remove redundant work
1 parent 6b018f3 commit 680e956

File tree

4 files changed

+10
-135
lines changed

4 files changed

+10
-135
lines changed

src/components/AboutUs/index.jsx

Lines changed: 0 additions & 107 deletions
This file was deleted.

src/components/Card/index.jsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/components/EventsHighlight/index.jsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,42 @@ import { useEffect, useRef } from "react";
22
import gsap from "gsap";
33
import { 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

110116
export default EventsHighlight;

src/routes/index.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ import Gallery from "@/pages/Gallery/Gallery";
55
import Contact from "@/pages/Contact";
66
import PageNotFound from "../pages/PageNotFound";
77
import Loader from "@/components/Loader";
8-
import AboutSection from "@/components/AboutUs";
98

109
const routes = [
11-
{
12-
label: "AboutUs",
13-
path: "/about-us-test",
14-
requireAuth: false,
15-
render: <AboutSection />,
16-
},
1710
{
1811
label: "Loader",
1912
path: "/loader",

0 commit comments

Comments
 (0)