diff --git a/src/app/(site)/events/page.tsx b/src/app/(site)/events/page.tsx
index 72824cc..177f371 100644
--- a/src/app/(site)/events/page.tsx
+++ b/src/app/(site)/events/page.tsx
@@ -1,4 +1,4 @@
-import EventCard from "@/components/events/event-card";
+import { CustomCarousel } from "@/components/CustomCarousel";
import SlideShow from "@/components/events/slide-show";
import { BackgroundGradient } from "@/components/ui/background-gradient";
import Image from "next/image";
@@ -32,12 +32,10 @@ const Events = async ({}: Props) => {
builds a strong tech community.
-
Our Gallary
+
Our Gallery
.
@@ -47,49 +45,4 @@ const Events = async ({}: Props) => {
);
};
-// const eventList = [
-// {
-// title: "Make things float in air",
-// slug: "make-things-float-in-air",
-// description: "Hover over this card to unleash the power of CSS perspective",
-// image: "/events/event.png",
-// },
-// {
-// title: "Make things float in air",
-// slug: "make-things-float-in-air",
-// description: "Hover over this card to unleash the power of CSS perspective",
-// image: "/events/event.png",
-// },
-// {
-// title: "Make things float in air",
-// slug: "make-things-float-in-air",
-// description: "Hover over this card to unleash the power of CSS perspective",
-// image: "/events/event.png",
-// },
-// {
-// title: "Make things float in air",
-// slug: "make-things-float-in-air",
-// description: "Hover over this card to unleash the power of CSS perspective",
-// image: "/events/event.png",
-// },
-// {
-// title: "Make things float in air",
-// slug: "make-things-float-in-air",
-// description: "Hover over this card to unleash the power of CSS perspective",
-// image: "/events/event.png",
-// },
-// {
-// title: "Make things float in air",
-// slug: "make-things-float-in-air",
-// description: "Hover over this card to unleash the power of CSS perspective",
-// image: "/events/event.png",
-// },
-// {
-// title: "Make things float in air",
-// slug: "make-things-float-in-air",
-// description: "Hover over this card to unleash the power of CSS perspective",
-// image: "/events/event.png",
-// },
-// ];
-
-export default Events;
+export default Events;
\ No newline at end of file
diff --git a/src/app/(site)/page.tsx b/src/app/(site)/page.tsx
index 3db8730..8b20f60 100644
--- a/src/app/(site)/page.tsx
+++ b/src/app/(site)/page.tsx
@@ -1,7 +1,7 @@
import AboutUs from "@/components/home/about-us";
import Domains from "@/components/home/domains";
import Landing from "@/components/home/landing";
-import OurEvents from "@/components/home/our-events";
+import CustomCarousel from "@/components/CustomCarousel";
import { getAllEvents } from "@/sanity/data/home-data";
export default async function Home() {
@@ -11,7 +11,7 @@ export default async function Home() {
-
+
);
}
diff --git a/src/components/CustomCarousel.tsx b/src/components/CustomCarousel.tsx
new file mode 100644
index 0000000..0fa75b7
--- /dev/null
+++ b/src/components/CustomCarousel.tsx
@@ -0,0 +1,100 @@
+"use client";
+
+import React, { useEffect, useState, useRef } from "react";
+import Image from "next/image";
+import Link from "next/link";
+import { Event } from "@/sanity/schemas/event-schema";
+import { CardContainer, CardBody, CardItem } from "./ui/3d-card";
+
+type Props = {
+ event: Event[];
+};
+
+const CustomCarousel: React.FC