From f74a6b94d08badf54f32c47ee13747557d08e3d8 Mon Sep 17 00:00:00 2001 From: Aritra Konar Date: Tue, 1 Jul 2025 16:17:00 +0000 Subject: [PATCH 1/3] --added datewise sorting of events feature --- app/Events/page.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Events/page.tsx b/app/Events/page.tsx index 906d342..28d2e04 100644 --- a/app/Events/page.tsx +++ b/app/Events/page.tsx @@ -122,7 +122,15 @@ const EventsPage = () => { const [expandedId, setExpandedId] = useState(null); useEffect(() => { - sanity.fetch(query).then(setEvents); + sanity.fetch(query).then((data: EventType[]) => { + // Sort events from oldest to newest by date + const sorted = [...data].sort((a, b) => { + if (!a.date) return -1; + if (!b.date) return 1; + return new Date(a.date).getTime() - new Date(b.date).getTime(); + }); + setEvents(sorted); + }); }, []); const filteredEvents = events.filter((event) => { From 732988ef162c2c88b56f37eec39daf7483fa0005 Mon Sep 17 00:00:00 2001 From: Aritra Konar Date: Tue, 1 Jul 2025 16:21:45 +0000 Subject: [PATCH 2/3] --add-temp --- app/Advisor/page.tsx | 46 ++++++++++++++++++++++++++++++++++++++++++++ app/Landing/page.tsx | 2 ++ 2 files changed, 48 insertions(+) create mode 100644 app/Advisor/page.tsx diff --git a/app/Advisor/page.tsx b/app/Advisor/page.tsx new file mode 100644 index 0000000..656fa6a --- /dev/null +++ b/app/Advisor/page.tsx @@ -0,0 +1,46 @@ +"use client"; +import Image from "next/image"; + +export default function FacultyAdvisor() { + return ( +
+
+ {/* Decorative Blobs */} +
+
+ + {/* Profile Image with Glow */} +
+ + Faculty Advisor +
+ + {/* Info */} +
+

+ Meet Our Faculty Advisor +

+

+ Mrs. Kasturi Dikpati (Ghosh) +

+

+ Mrs. Kasturi Dikpati (Ghosh) is a distinguished professor in Computer Science with over 20 years of experience in research and mentoring. She inspires our team with her expertise, vision, and passion for innovation. +

+
+

Our Vision

+

+ “Our vision is to foster a collaborative and innovative environment where students are empowered to explore, create, and lead. Together, we strive to make a positive impact through research, technology, and community engagement.” +

+
+
+
+
+ ); +} \ No newline at end of file diff --git a/app/Landing/page.tsx b/app/Landing/page.tsx index e89d55a..3e2286d 100644 --- a/app/Landing/page.tsx +++ b/app/Landing/page.tsx @@ -6,6 +6,7 @@ import NavBar from "../NavBar/page"; import Overview from "../Overview/page"; import Testimonial from "../Testimonial/page"; import UpcomingEvent from "../UpcomingEvent/page"; +import Advisor from "../Advisor/page"; export default function Landing() { return ( @@ -13,6 +14,7 @@ export default function Landing() {
+ From 2418956f21003d2ebb95b5d602065c54cac2949d Mon Sep 17 00:00:00 2001 From: Aritra Konar Date: Tue, 1 Jul 2025 16:23:12 +0000 Subject: [PATCH 3/3] Revert "--add-temp" This reverts commit 732988ef162c2c88b56f37eec39daf7483fa0005. --- app/Advisor/page.tsx | 46 -------------------------------------------- app/Landing/page.tsx | 2 -- 2 files changed, 48 deletions(-) delete mode 100644 app/Advisor/page.tsx diff --git a/app/Advisor/page.tsx b/app/Advisor/page.tsx deleted file mode 100644 index 656fa6a..0000000 --- a/app/Advisor/page.tsx +++ /dev/null @@ -1,46 +0,0 @@ -"use client"; -import Image from "next/image"; - -export default function FacultyAdvisor() { - return ( -
-
- {/* Decorative Blobs */} -
-
- - {/* Profile Image with Glow */} -
- - Faculty Advisor -
- - {/* Info */} -
-

- Meet Our Faculty Advisor -

-

- Mrs. Kasturi Dikpati (Ghosh) -

-

- Mrs. Kasturi Dikpati (Ghosh) is a distinguished professor in Computer Science with over 20 years of experience in research and mentoring. She inspires our team with her expertise, vision, and passion for innovation. -

-
-

Our Vision

-

- “Our vision is to foster a collaborative and innovative environment where students are empowered to explore, create, and lead. Together, we strive to make a positive impact through research, technology, and community engagement.” -

-
-
-
-
- ); -} \ No newline at end of file diff --git a/app/Landing/page.tsx b/app/Landing/page.tsx index 3e2286d..e89d55a 100644 --- a/app/Landing/page.tsx +++ b/app/Landing/page.tsx @@ -6,7 +6,6 @@ import NavBar from "../NavBar/page"; import Overview from "../Overview/page"; import Testimonial from "../Testimonial/page"; import UpcomingEvent from "../UpcomingEvent/page"; -import Advisor from "../Advisor/page"; export default function Landing() { return ( @@ -14,7 +13,6 @@ export default function Landing() {
-