diff --git a/contexts/TeamContext.tsx b/contexts/TeamContext.tsx index 8c94f7e..d40a8b3 100644 --- a/contexts/TeamContext.tsx +++ b/contexts/TeamContext.tsx @@ -1,5 +1,5 @@ import { ReactNode, createContext, useState } from "react"; -import { TeamData } from "../features/team/TeamData"; +import { TeamData } from "../data/TeamData"; type SessionProps = { year: number; diff --git a/data/CulturalClubCrew.ts b/data/CulturalClubCrew.ts new file mode 100644 index 0000000..396bab8 --- /dev/null +++ b/data/CulturalClubCrew.ts @@ -0,0 +1,283 @@ +import { StaticImageData } from "next/image"; + +interface CrewProps { + img: StaticImageData; + name: string; + post: string; +} + +// import crew +import Panshul_Senapati from "../assets/team_23-24/Panshul_Senapati.jpg"; +import Aseem_Rai from "../assets/team_23-24/Aseem_Rai.jpg"; +import Ashutosh_Jaiswal from "../assets/team_23-24/Ashutosh_Jaiswal.jpeg"; +import Arman_Singh_Kshatri from "../assets/team_23-24/Male-member.jpeg"; +import Ojash_Verma from "../assets/team_23-24/Male-member.jpeg"; +import Simmi_Baghel from "../assets/team_23-24/Simmi_Baghel.jpg"; +import Priyanshu_Srivastava from "../assets/team_23-24/Priyanshu_Srivastava.jpg"; +import Anoushka_Koul from "../assets/team_23-24/Anoushka_koul.jpeg"; +import Tanisi_Jha from "../assets/team_23-24/Female-member.jpeg"; +import Varsha_Sri_Narla from "../assets/team_23-24/Varsha_Sri_Narla.jpg"; +import Akhilesh_Vajrala from "../assets/team_23-24/Male-member.jpeg"; +import Mohd_Kaif from "../assets/team_23-24/Male-member.jpeg"; +import Swastika_Satya from "../assets/team_23-24/Swastika_Satya.jpg"; +import Vishal_Sharma from "../assets/team_23-24/Vishal_Sharma.jpg"; +import Kanika_Malhotra from "../assets/team_23-24/Kanika_Malhotra -.jpg"; +import Juttuka_Saaketh from "../assets/team_23-24/Male-member.jpeg"; +import Anshu_kashyap from "../assets/team_23-24/Female-member.jpeg"; +import Krishna_aggarwal from "../assets/team_23-24/Krishna_Agrawal.jpg"; +import Niharika_Murmu from "../assets/team_23-24/Niharika_Murmu.jpg"; +import Satvik_Yadav from "../assets/team_23-24/Satvik_Yadav.jpg"; +import RamaR_Katta from "../assets/team_23-24/Male-member.jpeg"; +import Aryan_Kumar_Baghel from "../assets/team_23-24/Aryan_Kumar_Baghel.jpg"; +import Anuja_Singh from "../assets/team_23-24/Female-member.jpeg"; +import Eluri_Rithwik from "../assets/team_23-24/Eluri_Rithwik.jpg"; +import Muskan_Dewangan from "../assets/team_23-24/Muskan_Dewangan.jpg"; +import Thanisha_Dewangan from "../assets/team_23-24/Thanisha _Dewangan..jpg"; +import Shalini_Singh from "../assets/team_23-24/Shalini_Singh.jpg"; +import Sanjana_Sori from "../assets/team_23-24/Sanjana_Sori.jpg"; +import Vajrala_Akhilesh from "../assets/team_23-24/Male-member.jpeg"; +import P_Punit from "../assets/team_23-24/Male-member.jpeg"; +import Anjali_Daheriya from "../assets/team_23-24/Female-member.jpeg"; +import Aniket_Pandey from "../assets/team_23-24/Aniket_Pandey.jpg"; +import Shreya_Tiwari from "../assets/team_23-24/Shreya_Tiwari.jpg"; +import Ayush_Yadav from "../assets/team_23-24/Ayush_Yadav.jpg"; +import Muskan_dewangan from "../assets/team_23-24/Muskan_Dewangan.jpg"; +import Apurva_Sahu from "../assets/team_23-24/Apurva_Sahu.jpg"; +import Aayush_Kulkarni from "../assets/team_23-24/Aayush_Kulkarni.jpg"; +import Anoushka_Kaul from "../assets/team_23-24/Anoushka_koul.jpeg"; +import Trisul from "../assets/team_23-24/Trisul.jpeg"; +import Shaurya_Malhan from "../assets/team_23-24/Shaurya_Malhan.jpeg"; + +export const ytc: CrewProps[] = [] +export const tdb: CrewProps[] = [ + { + img: Shreya_Tiwari, + name: "Shreya Tiwari", + post: "Club Secretary", + }, + { + img: Aayush_Kulkarni, + name: "Aayush Kulkarni", + post: "Vice Secretary", + }, + { + img: Anoushka_Kaul, + name: "Anoushka Kaul", + post: "Core Member", + }, + { + img: Trisul, + name: "Trisul", + post: "Core Member", + }, + { + img: Shaurya_Malhan, + name: "Shaurya Malhan", + + post: "Core Member", + }, { + img: Aniket_Pandey, + name: "Aniket Pandey", + post: "Core Member", + }, +]; +export const mun: CrewProps[] = [ + { + img: Kanika_Malhotra, + name: "Kanika Malhotra", + post: "Club Secretary", + }, + { + img: Aniket_Pandey, + name: "Aniket Pandey", + post: "Vice Secretary", + }, + { + img: Shreya_Tiwari, + name: "Shreya Tiwari", + post: "Core Member", + }, + { + img: Ayush_Yadav, + name: "Ayush Yadav", + post: "Core Member", + }, + { + img: Muskan_dewangan, + name: "Muskan Dewangan", + post: "Core Member", + }, + { + img: Apurva_Sahu, + name: "Apurva Sahu", + post: "Core Member", + }, +]; +export const indradhanush: CrewProps[] = [ + { + img: Thanisha_Dewangan, + name: "Thanisha Dewangan", + post: "Club Secretary", + }, + { + img: Shalini_Singh, + name: "Shalini Singh", + post: "Vice Secretary", + }, + { + img: Sanjana_Sori, + name: "Sanjana Sori", + post: "Core Member", + }, + { + img: Vajrala_Akhilesh, + name: "Vajrala Akhilesh", + post: "Core Member", + }, + { + img: P_Punit, + name: "P Punit", + post: "Core Member", + }, + { + img: Anjali_Daheriya, + name: "Anjali Daheriya", + post: "Core Member", + }, +]; + +export const igniters: CrewProps[] = [ + { + img: Niharika_Murmu, + name: "Niharika Murmu", + post: "Club Secretary", + }, + { + img: Satvik_Yadav, + name: "Satvik Yadav", + post: "Co-Vice Secretary", + }, + { + img: RamaR_Katta, + name: "Rama Rakshith Katta", + post: "Co-Vice Secretary", + }, + { + img: Aryan_Kumar_Baghel, + name: "Aryan Kumar Baghel", + post: "core member", + }, + { + img: Anuja_Singh, + name: "Anuja Singh Pandaw", + post: "core member", + }, + { + img: Eluri_Rithwik, + name: "Elluri Rithwik", + post: "core member", + }, + { + img: Muskan_Dewangan, + name: "Muskan Dewangan", + post: "core member", + }, +]; +export const cdt: CrewProps[] = [ + { + img: Swastika_Satya, + name: "Swastika Satya", + post: "Club Secretary", + }, + { + img: Vishal_Sharma, + name: "Vishal Sharma", + post: "Vice Secretary", + }, + { + img: Kanika_Malhotra, + name: "Kanika Malhotra", + post: "Core member", + }, + { + img: Juttuka_Saaketh, + name: "Juttuka Saaketh", + post: "Core Member", + }, + { + img: Anshu_kashyap, + name: "Anhsu Kashyap", + post: "Core Member", + }, + { + img: Krishna_aggarwal, + name: "Krishna Aggarwal", + post: "Core Member", + }, + +]; + +export const capriccio: CrewProps[] = [ + { + img: Priyanshu_Srivastava, + name: "Priyanshu Srivastava", + post: "Club Secretary", + }, + { + img: Anoushka_Koul, + name: "Anoushka Koul", + post: "Vice Secretary", + }, + { + img: Tanisi_Jha, + name: "Tanisi Jha", + post: "Core Member", + }, + { + img: Varsha_Sri_Narla, + name: "Varsha Sri Narla", + post: "Core Member", + }, + { + img: Akhilesh_Vajrala, + name: "Akhilesh Vajrala", + post: "Core Member", + }, + { + img: Mohd_Kaif, + name: "Mohd Kaif", + post: "Core Member", + }, +]; +export const c2c: CrewProps[] = [ + { + img: Panshul_Senapati, + name: "Panshul Senapati", + post: "Club Secretary", + }, + { + img: Aseem_Rai, + name: "Aseem Rai", + post: "Vice Secretary", + }, + { + img: Ashutosh_Jaiswal, + name: "Ashutosh Jaiswal", + post: "Core Member", + }, + { + img: Ojash_Verma, + name: "Ojash Verma", + post: "Core Member", + }, + { + img: Arman_Singh_Kshatri, + name: "Arman Singh Kshatri", + post: "Core Member", + }, + { + img: Simmi_Baghel, + name: "Simmi Baghel", + post: "Core Member", + }, +]; \ No newline at end of file diff --git a/data/EventCalendarData.ts b/data/EventCalendarData.ts index a92a7d1..5948698 100644 --- a/data/EventCalendarData.ts +++ b/data/EventCalendarData.ts @@ -10,6 +10,7 @@ interface CalendarDataProps { eventName: string; icon: StaticImageData; club: string; + desc: string; } export const calendarData: CalendarDataProps[] = [ @@ -18,369 +19,430 @@ export const calendarData: CalendarDataProps[] = [ date: "04-01-2024", eventName: "Esports", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "07-01-2024", eventName: "Cover the song", icon: triangleIcon, - club: "Capriccio" + club: "Capriccio", + desc: "" }, { date: "08-01-2024", eventName: "Gym Inauguration", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "08-01-2024", eventName: "Debate Aaj kal", icon: triangleIcon, - club: "TDB" + club: "TDB", + desc: "" }, { date: "09-01-2024", eventName: "PictoMania", icon: triangleIcon, - club: "Indradhanush" + club: "Indradhanush", + desc: "" }, { date: "12-01-2024", eventName: "National Youth Day", icon: rectangleIcon, - club: "IIC" + club: "IIC", + desc: "" }, { date: "13-01-2024", eventName: "Scintfic 2k24", - icon: "", - club: "SAC" + icon: starIcon, + club: "SAC", + desc: "" }, { date: "15-01-2024", eventName: "Volleyball", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "18-01-2024", eventName: "Political Drama", icon: triangleIcon, - club: "MUN & CDT" + club: "MUN & CDT", + desc: "" }, { date: "20-01-2024", eventName: "Treasure Hunt", icon: rectangleIcon, - club: "Inquizitive&ComEt" + club: "Inquizitive&ComEt", + desc: "" }, { date: "21-01-2024", eventName: "IDOR workshop", icon: rectangleIcon, - club: "Ciphercell" + club: "Ciphercell", + desc: "" }, { date: "21-01-2024", eventName: "Painting and Sketch", icon: triangleIcon, - club: "Indradhanush" + club: "Indradhanush", + desc: "" }, { date: "26-01-2024", eventName: "Republic Day", icon: circleIcon, - club: "SAC" + club: "SAC", + desc: "" }, { date: "27-01-2024", eventName: "Cognitio", icon: rectangleIcon, - club: "AIML" + club: "AIML", + desc: "" }, { date: "29-01-2024", eventName: "Drink&Code", icon: rectangleIcon, - club: "TSoC" + club: "TSoC", + desc: "" }, //Feb { date: "04-02-2024", eventName: "Design Thinking Workshop", icon: rectangleIcon, - club: "IIC" + club: "IIC", + desc: "" }, { date: "07-02-2024", eventName: "National Science day", icon: rectangleIcon, - club: "IIC" + club: "IIC", + desc: "" }, { date: "10-02-2024", eventName: "Field/Exposure Visit", icon: rectangleIcon, - club: "IIC" + club: "IIC", + desc: "" }, { date: "14-02-2024", eventName: "Saraswati Puja", icon: starIcon, - club: "SAC" + club: "SAC", + desc: "" }, { date: "14-02-2024", eventName: "National Startup day", icon: rectangleIcon, - club: "IIC" + club: "IIC", + desc: "" }, { date: "16-02-2024", eventName: "Technovate", icon: starIcon, - club: "SAC" + club: "SAC", + desc: "" }, { date: "20-02-2024", eventName: "Online chess", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "22-02-2024", eventName: "XSS-Cross Site Scripting", icon: rectangleIcon, - club: "Ciphercell" + club: "Ciphercell", + desc: "" }, { date: "23-02-2024", eventName: "PixelQuest", icon: rectangleIcon, - club: "AIML" + club: "AIML", + desc: "" }, { date: "24-02-2024", eventName: "Quiz 1", icon: rectangleIcon, - club: "Inquizitive" + club: "Inquizitive", + desc: "" }, //March { date: "09-03-2024", eventName: "Workshop", icon: rectangleIcon, - club: "Ciphercell" + club: "Ciphercell", + desc: "" }, { date: "09-03-2024", eventName: "Cricket", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "11-03-2024", eventName: "Quiz 2", icon: rectangleIcon, - club: "Inquizitive" + club: "Inquizitive", + desc: "" }, { date: "12-03-2024", eventName: "Workshop", icon: rectangleIcon, - club: "ComEt" + club: "ComEt", + desc: "" }, { date: "13-03-2024", eventName: "B2B Auction", icon: rectangleIcon, - club: "TSoC" + club: "TSoC", + desc: "" }, { date: "14-03-2024", eventName: "FilmVenture Safari", icon: triangleIcon, - club: "Indradhanush" + club: "Indradhanush", + desc: "" }, { date: "15-03-2024", eventName: "Bit2Byte", icon: rectangleIcon, - club: "TSoC" + club: "TSoC", + desc: "" }, { date: "18-03-2024", eventName: "Election Campaign starts", icon: triangleIcon, - club: "MUN" + club: "MUN", + desc: "" }, { date: "19-03-2024", eventName: "Campaigning", icon: triangleIcon, - club: "MUN" + club: "MUN", + desc: "" }, { date: "20-03-2024", eventName: "Election voting & Results", icon: triangleIcon, - club: "MUN" + club: "MUN", + desc: "" }, { date: "21-03-2024", eventName: "B League", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "24-03-2024", eventName: "Holika Dahan", icon: starIcon, - club: "SAC" + club: "SAC", + desc: "" }, //April { date: "01-04-2024", eventName: "Shuttle Showdown", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "02-04-2024", eventName: "ad quest", icon: triangleIcon, - club: "CDT" + club: "CDT", + desc: "" }, { date: "03-04-2024", eventName: "Quiz 3", icon: rectangleIcon, - club: "Inquizitive" + club: "Inquizitive", + desc: "" }, { date: "05-04-2024", eventName: "Jamming night", icon: triangleIcon, - club: "Capriccio" + club: "Capriccio", + desc: "" }, { date: "06-04-2024", eventName: "Hack-a-Sol 3.0", icon: starIcon, - club: "SAC" + club: "SAC", + desc: "" }, { date: "08-04-2024", eventName: "Quiz", icon: starIcon, - club: "shutterbug" + club: "Shutterbug", + desc: "" }, { date: "09-04-2024", eventName: "JAM", icon: rectangleIcon, - club: "ComEt" + club: "ComEt", + desc: "" }, { date: "10-04-2024", eventName: "Workshop", icon: rectangleIcon, - club: "TSoC" + club: "TSoC", + desc: "" }, { date: "11-04-2024", eventName: "News Report Anchoring", icon: triangleIcon, - club: "TDB" + club: "TDB", + desc: "" }, { date: "12-04-2024", eventName: "Origami Workshop", icon: triangleIcon, - club: "Indradhanush" + club: "Indradhanush", + desc: "" }, { date: "12-04-2024", eventName: "Aaghaaz", icon: crossIcon, - club: "Atharv" + club: "Atharv", + desc: "" }, { date: "13-04-2024", eventName: "Dance Workshop 2", icon: triangleIcon, - club: "Igniters" + club: "Igniters", + desc: "" }, { date: "14-04-2024", eventName: "Local File Inclusion", icon: rectangleIcon, - club: "Ciphercell" + club: "Ciphercell", + desc: "" }, { date: "14-04-2024", eventName: "Blood Donation Camp", icon: starIcon, - club: "NSS" + club: "NSS", + desc: "" }, { date: "15-04-2024", eventName: "Quiz 4", icon: rectangleIcon, - club: "Inquizitive" + club: "Inquizitive", + desc: "" }, { date: "17-04-2024", eventName: "Linguistic Showdown", icon: rectangleIcon, - club: "AIML" + club: "AIML", + desc: "" }, { date: "18-04-2024", eventName: "Competition", icon: starIcon, - club: "shutterbug" + club: "Shutterbug", + desc: "" }, { date: "19-04-2024", eventName: "Funtakshari", icon: triangleIcon, - club: "Capriccio" + club: "Capriccio", + desc: "" }, { date: "20-04-2024", eventName: "Inter-MUN", icon: triangleIcon, - club: "MUN" + club: "MUN", + desc: "" }, { date: "23-04-2024", eventName: "Descode", icon: rectangleIcon, - club: "TSoC" + club: "TSoC", + desc: "" }, { date: "24-04-2024", eventName: "Anime Quiz", icon: triangleIcon, - club: "C2C" + club: "C2C", + desc: "" }, { date: "25-04-2024", eventName: "Cultural night", icon: starIcon, - club: "SAC" + club: "SAC", + desc: "" }, { date: "26-04-2024", eventName: "Bug-Hunting", icon: rectangleIcon, - club: "Ciphercell" + club: "Ciphercell", + desc: "" }, { date: "15-08-2024", eventName: "Independence Day", icon: circleIcon, - club: "SAC" + club: "SAC", + desc: "" } -]; +]; \ No newline at end of file diff --git a/data/MediaClubCrew.ts b/data/MediaClubCrew.ts new file mode 100644 index 0000000..fe0bd99 --- /dev/null +++ b/data/MediaClubCrew.ts @@ -0,0 +1,162 @@ +import { StaticImageData } from "next/image"; + +interface CrewProps { + img: StaticImageData; + name: string; + post: string; +} + +// import crew +import Ojash_Verma from "../assets/team_23-24/Male-member.jpeg"; +import Aayush_Kulkarni from "../assets/team_23-24/Aayush_Kulkarni.jpg"; +import Trisul from "../assets/team_23-24/Trisul.jpeg"; +import Shreyansh_Kushwaha from "../assets/team_23-24/Shreyansh_Kushwaha.jpg" +import Ishita_Tegar from "../assets/team_23-24/Ishita_Tegar.jpg"; +import Raj_Bhattacharya from "../assets/team_23-24/Male-member.jpeg"; +import A_Satya_Kartik from "../assets/team_23-24/Male-member.jpeg"; +import S_Chandu from "../assets/team_23-24/Male-member.jpeg"; +import Tanishka from "../assets/team_23-24/Female-member.jpeg"; +import Aryansh_Verma from "../assets/team_23-24/Aryansh_Verma.jpg"; +import Abhijeet_Jharbade from "../assets/team_23-24/Male-member.jpeg"; +import ACHANTA_SATYA_KARTHIK from "../assets/team_23-24/Satya_Karthik_Achanta.jpg"; +import ANKITAN_KUMAR from "../assets/team_23-24/Ankitan_Kumar.jpg"; +import ANUJA_SINGH_PANDAW from "../assets/team_23-24/Female-member.jpeg"; +import APURVA_SAHU from "../assets/team_23-24/Apurva_Sahu.jpg"; +import KARTHIKEYA_PRACHODRAN from "../assets/team_23-24/Male-member.jpeg"; +import RIMJHIM_SHARMA from "../assets/team_23-24/Female-member.jpeg"; +import AAYUSH_KULKARNI from "../assets/team_23-24/Aayush_Kulkarni.jpg"; +import ARYAN_KUMAR_BAGHEL from "../assets/team_23-24/Aryan_Kumar_Baghel.jpg"; +import Manu_Sai from "../assets/team_23-24/Manu_Sai.jpg"; +import Ojas_Dubey1 from "../assets/team_23-24/Ojas_Dubey.jpg"; +import Yashraj from "../assets/team_23-24/Yash_Raj.jpeg"; + +export const website: CrewProps[] = [ + { + img: Ojas_Dubey1, + name: "Ojas Dubey", + post: "Head", + }, + { + img: Manu_Sai, + name: "Manu Sai", + post: "Core Member", + }, + { + img: Shreyansh_Kushwaha, + name: "Shreyansh Kushwaha", + post: "Core Member", + }, + { + img: Yashraj, + name: "Yashraj", + post: "Core Member", + }, +]; + +export const shutterbug: CrewProps[] = [ + { + img: Abhijeet_Jharbade, + name: "Abhijeet Jharbade", + post: "Head", + }, + { + img: ACHANTA_SATYA_KARTHIK, + name: "Achanta Satya Karthik", + post: "Core member", + }, + { + img: ANKITAN_KUMAR, + name: "Ankitan Kumar", + post: "Core member", + }, + { + img: ANUJA_SINGH_PANDAW, + name: "Anuja Singh Pandaw", + post: "Core member", + }, + { + img: APURVA_SAHU, + name: "Apurva Sahu", + post: "Core member", + }, + { + img: KARTHIKEYA_PRACHODRAN, + name: "Karthikeya Prachodran", + post: "Core member", + }, + { + img: RIMJHIM_SHARMA, + name: "Rimjhim Sharma", + post: "Core member", + }, + { + img: AAYUSH_KULKARNI, + name: "Aayush Kulkarni", + post: "Core member", + }, + { + img: ARYAN_KUMAR_BAGHEL, + name: "Aryan Kumar Baghel", + post: "Core member", + }, +]; +export const pr: CrewProps[] = [ + { + img: Aryansh_Verma, + name: "Aryansh Verma", + post: "Head", + }, + { + img: Aayush_Kulkarni, + name: "Aayush Kulkarni", + post: "Core member", + }, + { + img: Raj_Bhattacharya, + name: "Raj Bhattacharya", + post: "Core member", + }, + { + img: Ishita_Tegar, + name: "Ishita Tegar", + post: "Core member", + }, + { + img: Trisul, + name: "Trishul", + post: "Core member", + }, +]; + +export const design: CrewProps[] = [ + { + img: A_Satya_Kartik, + name: "A Satya Karthik", + post: "Head", + }, + { + img: S_Chandu, + name: "S.Chandu", + post: "Core Member", + }, + { + img: Ojash_Verma, + name: "Ojash Verma", + post: "Core Member", + }, + { + img: Tanishka, + name: "Tanishka Chauhan", + post: "Core Member", + }, + { + img: Shreyansh_Kushwaha, + name: "Shreyansh Kushwaha", + post: "Core Member", + }, + { + img: Trisul, + name: "Trishul", + post: "Core Member", + }, +]; \ No newline at end of file diff --git a/data/SportsClubCrew.ts b/data/SportsClubCrew.ts new file mode 100644 index 0000000..6a41672 --- /dev/null +++ b/data/SportsClubCrew.ts @@ -0,0 +1,113 @@ +import { StaticImageData } from "next/image"; + +interface CrewProps { + img: StaticImageData; + name: string; + post: string; +} + +// import crew +import Sanjana_Sori from "../assets/team_23-24/Sanjana_Sori.jpg"; +import Shaurya_Malhan from "../assets/team_23-24/Shaurya_Malhan.jpeg"; +import Suyash_Gupta from "../assets/team_23-24/Suyash_Gupta.jpg"; +import Yash_Raj from "../assets/team_23-24/Yash_Raj.jpeg"; +import Neha_Dhruw from "../assets/team_23-24/Neha_Dhruw.jpg"; +import Ravikant_Shrivas from "../assets/team_23-24/Male-member.jpeg"; +import Aditya_Raj_Banjare from "../assets/team_23-24/Male-member.jpeg"; +import Ravi_Vinayak from "../assets/team_23-24/Ravi_Vinayak.jpeg"; +import Venella_Telli from "../assets/team_23-24/Female-member.jpeg"; +import Ojash_E_Sports from "../assets/team_23-24/Male-member.jpeg"; +import Deependra_Singh_Bhow from "../assets/team_23-24/Deependar.jpeg"; +import Lumani_Verma from "../assets/team_23-24/Female-member.jpeg"; +import Aman_Kumar_Singh from "../assets/team_23-24/Aman_Singh.jpg"; +import Mayank_Chandra from "../assets/team_23-24/Male-member.jpeg"; +import Neha_Dhruw_Volleyball from "../assets/team_23-24/Neha_Dhruw.jpg"; +import Raj_Bhattacharya from "../assets/team_23-24/Male-member.jpeg"; + +export const atharv: CrewProps[] = [ + { + img: Suyash_Gupta, + name: "Suyash Gupta", + post: "Atharv In-Charge", + }, + { + img: Yash_Raj, + name: "Yash Raj", + post: "Atharv Vice-Incharge", + }, + { + img: Neha_Dhruw, + name: "Neha Dhruw", + post: "Atharv Vice-Incharge", + }, + { + img: Suyash_Gupta, + name: "Suyash Gupta", + post: "Atharv Cricket InCharge", + }, + { + img: Sanjana_Sori, + name: "Sanjana Sori", + post: "Atharv Cricket InCharge (Girls)", + }, + { + img: Ravikant_Shrivas, + name: "Ravikant Shrivas", + post: "Atharv Basketball InCharge", + }, + { + img: Aditya_Raj_Banjare, + name: "Aditya Raj Banjare", + post: "Atharv Kabaddi InCharge", + }, + { + img: Ravi_Vinayak, + name: "Ravi Vinayak", + post: "Atharv Badminton InCharge", + }, + { + img: Venella_Telli, + name: "Venella Telli", + post: "Atharv Badminton InCharge (Girls)", + }, + { + img: Ojash_E_Sports, + name: "Ojash", + post: "Atharv E-Sports InCharge", + }, + { + img: Shaurya_Malhan, + name: "Shaurya Malhan", + post: "Atharv Chess InCharge", + }, + { + img: Deependra_Singh_Bhow, + name: "Deependra Singh Bhow", + post: "Atharv Table Tennis InCharge", + }, + { + img: Lumani_Verma, + name: "Lumani Verma", + post: "Atharv Table Tennis InCharge (Girls)", + }, + { + img: Aman_Kumar_Singh, + name: "Aman Kumar Singh", + post: "Atharv Football InCharge", + }, + { + img: Mayank_Chandra, + name: "Mayank Chandra", + post: "Atharv Volleyball InCharge", + }, + { + img: Neha_Dhruw_Volleyball, + name: "Neha Dhruw", + post: "Atharv Volleyball InCharge (Girls)", + }, + { + img: Raj_Bhattacharya, + name: "Raj Bhattacharya", + post: "Atharv Mini Golf InCharge", + }, +]; \ No newline at end of file diff --git a/features/team/TeamData.tsx b/data/TeamData.tsx similarity index 72% rename from features/team/TeamData.tsx rename to data/TeamData.tsx index 96032dd..f8bdbf1 100644 --- a/features/team/TeamData.tsx +++ b/data/TeamData.tsx @@ -1,102 +1,102 @@ import { StaticImageData } from "next/image"; // 2023-2024 -import Aditya_Oza from "../../assets/team_23-24/Aditya_Oza.jpg"; -import Kanika from "../../assets/team_23-24/Kanika_Chaurasia.jpg"; -import Shivam_Kushwaha from "../../assets/team_23-24/Shivam_Kushwaha.jpg"; -import Ch_Swati from "../../assets/team_23-24/Ch_Swati.jpg"; -import Akshat_Shree_Mishra from "../../assets/team_23-24/Akshat_Shree_Mishra.jpg"; -import Rimjhim_Sharma from "../../assets/team_23-24/Rimjhim_Sharma.jpg"; -import Deependra_Singh_Bhow from "../../assets/team_23-24/Deependar.jpeg"; -import Kusum_Patel from "../../assets/team_23-24/Kusum_Patel.jpg"; -import Jay_Padia from "../../assets/team_23-24/Jay_Padia.jpg"; -import R_Sai_Shivani from "../../assets/team_23-24/Sai_Shivani.jpg"; -import Kamal from "../../assets/team_23-24/kamal.jpeg"; +import Aditya_Oza from "../assets/team_23-24/Aditya_Oza.jpg"; +import Kanika from "../assets/team_23-24/Kanika_Chaurasia.jpg"; +import Shivam_Kushwaha from "../assets/team_23-24/Shivam_Kushwaha.jpg"; +import Ch_Swati from "../assets/team_23-24/Ch_Swati.jpg"; +import Akshat_Shree_Mishra from "../assets/team_23-24/Akshat_Shree_Mishra.jpg"; +import Rimjhim_Sharma from "../assets/team_23-24/Rimjhim_Sharma.jpg"; +import Deependra_Singh_Bhow from "../assets/team_23-24/Deependar.jpeg"; +import Kusum_Patel from "../assets/team_23-24/Kusum_Patel.jpg"; +import Jay_Padia from "../assets/team_23-24/Jay_Padia.jpg"; +import R_Sai_Shivani from "../assets/team_23-24/Sai_Shivani.jpg"; +import Kamal from "../assets/team_23-24/kamal.jpeg"; // 2022-2023 -import SristhiSahooUG from "../../assets/team_22-23/SristhiSahooUG.jpeg"; -import HimanshuYadav_UG_2022 from "../../assets/team_22-23/HimanshuYadav_UG_2022.jpeg"; -import Nishok from "../../assets/team_22-23/Nishok.jpg"; -import Supriya from "../../assets/team_22-23/Supriya.jpeg"; -import Aaditya_Kumar from "../../assets/team_22-23/Aaditya_Kumar.jpeg"; -import SonaliB from "../../assets/team_22-23/SonaliB.jpeg"; -import Kishan_Mishra from "../../assets/team_22-23/Kishan_Mishra.jpeg"; -import Nidhi_Vaishnav from "../../assets/team_22-23/Nidhi_Vaishnav.jpeg"; -import Soumya_min from "../../assets/team_22-23/Soumya-min.jpeg"; -import Sudhanshu_Tripathi from "../../assets/team_22-23/Sudhanshu_Tripathi.jpeg"; -import Deepesh_Agrawal from "../../assets/team_22-23/Deepesh_Agrawal.jpeg"; -import Ojas_Dubey from "../../assets/team_22-23/Ojas_Dubey.jpeg"; -import Aman_Singh from "../../assets/team_22-23/Aman_Singh.jpeg"; -import Vinayak_Shrivastava from "../../assets/team_22-23/Vinayak_Shrivastava.jpeg"; -import saiprabhat from "../../assets/team_22-23/saiprabhat.jpeg"; -import Shubham_khilari from "../../assets/team_22-23/Shubham_khilari.jpeg"; -import nidhibhaskar from "../../assets/team_22-23/nidhibhaskar.jpeg"; -import navneet_chaubey from "../../assets/team_22-23/navneet_chaubey.jpeg"; -import Jay_Deep_Singh from "../../assets/team_22-23/Jay_Deep_Singh.jpeg"; -import manoj_SacP from "../../assets/team_22-23/manoj.jpeg"; -import Karan_Agrawal from "../../assets/team_22-23/Karan_Agrawal.jpeg"; +import SristhiSahooUG from "../assets/team_22-23/SristhiSahooUG.jpeg"; +import HimanshuYadav_UG_2022 from "../assets/team_22-23/HimanshuYadav_UG_2022.jpeg"; +import Nishok from "../assets/team_22-23/Nishok.jpg"; +import Supriya from "../assets/team_22-23/Supriya.jpeg"; +import Aaditya_Kumar from "../assets/team_22-23/Aaditya_Kumar.jpeg"; +import SonaliB from "../assets/team_22-23/SonaliB.jpeg"; +import Kishan_Mishra from "../assets/team_22-23/Kishan_Mishra.jpeg"; +import Nidhi_Vaishnav from "../assets/team_22-23/Nidhi_Vaishnav.jpeg"; +import Soumya_min from "../assets/team_22-23/Soumya-min.jpeg"; +import Sudhanshu_Tripathi from "../assets/team_22-23/Sudhanshu_Tripathi.jpeg"; +import Deepesh_Agrawal from "../assets/team_22-23/Deepesh_Agrawal.jpeg"; +import Ojas_Dubey from "../assets/team_22-23/Ojas_Dubey.jpeg"; +import Aman_Singh from "../assets/team_22-23/Aman_Singh.jpeg"; +import Vinayak_Shrivastava from "../assets/team_22-23/Vinayak_Shrivastava.jpeg"; +import saiprabhat from "../assets/team_22-23/saiprabhat.jpeg"; +import Shubham_khilari from "../assets/team_22-23/Shubham_khilari.jpeg"; +import nidhibhaskar from "../assets/team_22-23/nidhibhaskar.jpeg"; +import navneet_chaubey from "../assets/team_22-23/navneet_chaubey.jpeg"; +import Jay_Deep_Singh from "../assets/team_22-23/Jay_Deep_Singh.jpeg"; +import manoj_SacP from "../assets/team_22-23/manoj.jpeg"; +import Karan_Agrawal from "../assets/team_22-23/Karan_Agrawal.jpeg"; // 2021-2022 -import Dr_Venkanna from "../../assets/team_21-22/venkanna_u.jpg"; -import ketan from "../../assets/team_21-22/ketan.jpeg"; -import abheeshth from "../../assets/team_21-22/abheeshth.jpg"; -import Sakshi_Verma from "../../assets/team_21-22/Sakshi Verma.jpg"; -import saumya from "../../assets/team_21-22/saumya .jpg"; -import ayush_tirkey from "../../assets/team_20-21/ayush_tirkey.jpg"; -import Meetiksha from "../../assets/team_21-22/Meetiksha.jpeg"; -import gunateja from "../../assets/team_21-22/gunateja.jpg"; -import Roopa_navya from "../../assets/team_21-22/Roopa navya.jpg"; -import shashank from "../../assets/team_21-22/shashank.jpg"; -import Suraj from "../../assets/team_21-22/Suraj.jpeg"; -import Anupam from "../../assets/team_21-22/Anupam.jpg"; -import amogh from "../../assets/team_21-22/amogh.jpg"; -import Himanshu from "../../assets/team_21-22/Himanshu.jpeg"; -import Soumya from "../../assets/team_21-22/Soumya.jpg"; -import Tavisha from "../../assets/team_21-22/Tavisha.jpg"; -import Sonal_Singh from "../../assets/team_21-22/PSX_20200229_183102.jpg"; -import Shubham from "../../assets/team_21-22/Shubham.jpg"; -import Bhupendra_Chouhan from "../../assets/team_21-22/Bhupendra Chouhan_.jpg"; +import Dr_Venkanna from "../assets/team_21-22/venkanna_u.jpg"; +import ketan from "../assets/team_21-22/ketan.jpeg"; +import abheeshth from "../assets/team_21-22/abheeshth.jpg"; +import Sakshi_Verma from "../assets/team_21-22/Sakshi Verma.jpg"; +import saumya from "../assets/team_21-22/saumya .jpg"; +import ayush_tirkey from "../assets/team_20-21/ayush_tirkey.jpg"; +import Meetiksha from "../assets/team_21-22/Meetiksha.jpeg"; +import gunateja from "../assets/team_21-22/gunateja.jpg"; +import Roopa_navya from "../assets/team_21-22/Roopa navya.jpg"; +import shashank from "../assets/team_21-22/shashank.jpg"; +import Suraj from "../assets/team_21-22/Suraj.jpeg"; +import Anupam from "../assets/team_21-22/Anupam.jpg"; +import amogh from "../assets/team_21-22/amogh.jpg"; +import Himanshu from "../assets/team_21-22/Himanshu.jpeg"; +import Soumya from "../assets/team_21-22/Soumya.jpg"; +import Tavisha from "../assets/team_21-22/Tavisha.jpg"; +import Sonal_Singh from "../assets/team_21-22/PSX_20200229_183102.jpg"; +import Shubham from "../assets/team_21-22/Shubham.jpg"; +import Bhupendra_Chouhan from "../assets/team_21-22/Bhupendra Chouhan_.jpg"; // 2020-2021 -import prince_yadav from "../../assets/team_20-21/prince_yadav.jpg"; -import Vidhi_Sharma from "../../assets/team_20-21/vidhi_sharma.jpg"; -import alluri_lsv_siddhartha_varma from "../../assets/team_20-21/alluri_lsv_siddhartha_varma.jpg"; -import sakshi_kumari from "../../assets/team_20-21/sakshi_kumari.jpg"; -import samar_lal from "../../assets/team_20-21/samar_lal.jpg"; -import palak_chandrakar from "../../assets/team_20-21/palak_chandrakar.jpg"; -import abhay_bagh from "../../assets/team_20-21/abhay_bagh.jpg"; -import rashi_bagga from "../../assets/team_20-21/rashi_bagga.jpeg"; -import saumya_bhatnagar from "../../assets/team_20-21/saumya_bhatnagar.jpeg"; -import himanshu_patel from "../../assets/team_20-21/himanshu_patel.jpeg"; -import siddharth_singh from "../../assets/team_20-21/siddharth_singh.jpg"; -import vipul_sangode from "../../assets/team_20-21/vipul_sangode.jpeg"; -import ankit_sharma from "../../assets/team_20-21/ankit_sharma.jpeg"; -import annapragada_nishant from "../../assets/team_20-21/annapragada_nishant.jpg"; -import shreyas_lall from "../../assets/team_20-21/shreyas_lall.jpeg"; -import apurv_rai from "../../assets/team_20-21/apurv_rai.jpeg"; -import shalini_lodhi from "../../assets/team_20-21/shalini_lodhi.jpg"; -import shivangini_prasad from "../../assets/team_20-21/shivangini_prasad.jpg"; -import sonal_singh from "../../assets/team_20-21/sonal_singh.jpg"; +import prince_yadav from "../assets/team_20-21/prince_yadav.jpg"; +import Vidhi_Sharma from "../assets/team_20-21/vidhi_sharma.jpg"; +import alluri_lsv_siddhartha_varma from "../assets/team_20-21/alluri_lsv_siddhartha_varma.jpg"; +import sakshi_kumari from "../assets/team_20-21/sakshi_kumari.jpg"; +import samar_lal from "../assets/team_20-21/samar_lal.jpg"; +import palak_chandrakar from "../assets/team_20-21/palak_chandrakar.jpg"; +import abhay_bagh from "../assets/team_20-21/abhay_bagh.jpg"; +import rashi_bagga from "../assets/team_20-21/rashi_bagga.jpeg"; +import saumya_bhatnagar from "../assets/team_20-21/saumya_bhatnagar.jpeg"; +import himanshu_patel from "../assets/team_20-21/himanshu_patel.jpeg"; +import siddharth_singh from "../assets/team_20-21/siddharth_singh.jpg"; +import vipul_sangode from "../assets/team_20-21/vipul_sangode.jpeg"; +import ankit_sharma from "../assets/team_20-21/ankit_sharma.jpeg"; +import annapragada_nishant from "../assets/team_20-21/annapragada_nishant.jpg"; +import shreyas_lall from "../assets/team_20-21/shreyas_lall.jpeg"; +import apurv_rai from "../assets/team_20-21/apurv_rai.jpeg"; +import shalini_lodhi from "../assets/team_20-21/shalini_lodhi.jpg"; +import shivangini_prasad from "../assets/team_20-21/shivangini_prasad.jpg"; +import sonal_singh from "../assets/team_20-21/sonal_singh.jpg"; // 2019-2020 -import nitin_chandra from "../../assets/team_19-20/nitin_chandra.jpg"; -import sriyuta_srivastava from "../../assets/team_19-20/sriyuta_srivastava.jpg"; -import jatin_aditya_reddy from "../../assets/team_19-20/jatin_aditya_reddy.jpg"; -import tina_sahu from "../../assets/team_19-20/tina_sahu.jpeg"; -import rituraj_kushwaha from "../../assets/team_19-20/rituraj_kushwaha.jpg"; -import manorama_singh_rathore from "../../assets/team_19-20/manorama_singh_rathore.jpg"; -import pushpak_singh_tawar from "../../assets/team_19-20/pushpak_singh_tawar.jpg"; -import likitha_bonda from "../../assets/team_19-20/likitha_bonda.jpg"; +import nitin_chandra from "../assets/team_19-20/nitin_chandra.jpg"; +import sriyuta_srivastava from "../assets/team_19-20/sriyuta_srivastava.jpg"; +import jatin_aditya_reddy from "../assets/team_19-20/jatin_aditya_reddy.jpg"; +import tina_sahu from "../assets/team_19-20/tina_sahu.jpeg"; +import rituraj_kushwaha from "../assets/team_19-20/rituraj_kushwaha.jpg"; +import manorama_singh_rathore from "../assets/team_19-20/manorama_singh_rathore.jpg"; +import pushpak_singh_tawar from "../assets/team_19-20/pushpak_singh_tawar.jpg"; +import likitha_bonda from "../assets/team_19-20/likitha_bonda.jpg"; // 2018-2019 -import vishal_pallagani from "../../assets/team_18-19/vishal_pallagani.jpg"; -import ankita_jha from "../../assets/team_18-19/ankita_jha.jpg"; -import kushashwa_ravi_shrimali from "../../assets/team_18-19/kushashwa_ravi_shrimali.png"; -import priyanka_mall from "../../assets/team_18-19/priyanka_mall.jpg"; -import rasheed_ahmed from "../../assets/team_18-19/rasheed_ahmed.jpg"; -import aditia_agrahari from "../../assets/team_18-19/aditia_agrahari.jpg"; -import nirbhay_giri from "../../assets/team_18-19/nirbhay_giri.jpg"; -import minakshee_shukla from "../../assets/team_18-19/minakshee_shukla.jpg"; +import vishal_pallagani from "../assets/team_18-19/vishal_pallagani.jpg"; +import ankita_jha from "../assets/team_18-19/ankita_jha.jpg"; +import kushashwa_ravi_shrimali from "../assets/team_18-19/kushashwa_ravi_shrimali.png"; +import priyanka_mall from "../assets/team_18-19/priyanka_mall.jpg"; +import rasheed_ahmed from "../assets/team_18-19/rasheed_ahmed.jpg"; +import aditia_agrahari from "../assets/team_18-19/aditia_agrahari.jpg"; +import nirbhay_giri from "../assets/team_18-19/nirbhay_giri.jpg"; +import minakshee_shukla from "../assets/team_18-19/minakshee_shukla.jpg"; interface CrewProps { img: StaticImageData; diff --git a/data/TechnicalClubCrew.ts b/data/TechnicalClubCrew.ts new file mode 100644 index 0000000..44f8306 --- /dev/null +++ b/data/TechnicalClubCrew.ts @@ -0,0 +1,198 @@ +import { StaticImageData } from "next/image"; + +interface CrewProps { + img: StaticImageData; + name: string; + post: string; +} + +// import crew +import Ashutosh_Jaiswal from "../assets/team_23-24/Ashutosh_Jaiswal.jpeg"; +import Arman_Singh_Kshatri from "../assets/team_23-24/Male-member.jpeg"; +import Swastika_Satya from "../assets/team_23-24/Swastika_Satya.jpg"; +import Vishal_Sharma from "../assets/team_23-24/Vishal_Sharma.jpg"; +import Aniket_Pandey from "../assets/team_23-24/Aniket_Pandey.jpg"; +import Ayush_Yadav from "../assets/team_23-24/Ayush_Yadav.jpg"; +import Shaurya_Malhan from "../assets/team_23-24/Shaurya_Malhan.jpeg"; +import YashV_Gautum from "../assets/team_23-24/Yash_Vardhan_Gautam.jpg"; +import Sanskar_Singh from "../assets/team_23-24/Sanskar_Singh.jpeg"; +import Arya_Mahesh from "../assets/team_23-24/Arya_Mahesh_Bhiwapurkar.jpg"; +import Vaibhav_Suntwal from "../assets/team_23-24/Vaibhav_Suntwal.jpg"; +import Shivaibhav from "../assets/team_23-24/Shivaibhav_Dewangan.jpg"; +import Gaurish from "../assets/team_23-24/Gaurish_Ojha.jpg"; +import Dhyanendra from "../assets/team_23-24/Dhyanendra_Tripathi.jpg"; +import Swasti_Srivastava from "../assets/team_23-24/Swasti_Srivastava.jpeg"; +import Manav_Raj from "../assets/team_23-24/Manav_Raj_Singh.jpg"; +import V_Jaswanth from "../assets/team_23-24/Vemula_Jashwanth.jpeg"; +import Alankrit from "../assets/team_23-24/Alankrit_Sharma.jpg" +import Shreyansh_Kushwaha from "../assets/team_23-24/Shreyansh_Kushwaha.jpg" +import Venkata_surya from "../assets/team_23-24/Venkata_Surya_Sundar_Vadali.jpg" +import Priyanshu_shri from "../assets/team_23-24/Priyanshu_Srivastava.jpg" +import Ishita_Tegar from "../assets/team_23-24/Ishita_Tegar.jpg"; +import Umesh_Sinha from "../assets/team_23-24/Umesh_Sinha.jpg"; +import Alankar_Saxena from "../assets/team_23-24/Alankar_Saxena.jpg"; +import Namita from "../assets/team_23-24/Namita_shah.jpg"; +import Krishna_Aggarwal from "../assets/team_23-24/Krishna_Agrawal.jpg"; +import Bhavik from "../assets/team_23-24/Male-member.jpeg"; +import Harsh_Shrivastava from "../assets/team_23-24/Harsh_Shrivastava.jpg"; +import Lokesh_Harmani from "../assets/team_23-24/Male-member.jpeg"; + +export const inquizitive: CrewProps[] = [ + { + img: Ayush_Yadav, + name: "Ayush Yadav", + post: "Club Secretary", + }, + { + img: Bhavik, + name: "Bhavik Sachdev", + post: "Vice Secretary", + }, + { + img: Aniket_Pandey, + name: "Aniket Pandey", + post: "Core Member", + }, + { + img: Arman_Singh_Kshatri, + name: "Arman Singh Kshatri", + post: "Core Member", + }, + { + img: Harsh_Shrivastava, + name: "Harsh Shrivastava", + post: "Core Member", + }, + { + img: Lokesh_Harmani, + name: "Lokesh Hariramani", + post: "Core Member", + }, +]; + +export const iic: CrewProps[] = [] +export const comet: CrewProps[] = [ + { + img: Ishita_Tegar, + name: "Ishita Tegar", + post: "Club Secretary", + }, + { + img: Umesh_Sinha, + name: "Umesh Sinha", + post: "Vice Secretary", + }, + { + img: Alankar_Saxena, + name: "Alankar Saxena", + post: "Core Member", + }, + { + img: Namita, + name: "Namita Shah", + post: "Core Member", + }, + { + img: Krishna_Aggarwal, + name: "Krishna Aggarwal", + post: "Core Member", + }, +]; +export const ciphercell: CrewProps[] = [ + { + img: V_Jaswanth, + name: "Jaswanth Vemula", + post: "Club Secretary", + }, + { + img: Alankrit, + name: "Alankrit Sharma", + post: "Vice Secretary", + }, + { + img: Priyanshu_shri, + name: "Priyanshi Srivastava", + post: "Core Member", + }, + { + img: Shreyansh_Kushwaha, + name: "Shreyansh Kushwaha", + post: "Core Member", + }, + { + img: Venkata_surya, + name: "Venkata Surya Sundar Vadali", + post: "Core Member", + }, + { + img: Vishal_Sharma, + name: "Vishal Sharma", + post: "Core Member", + }, +]; +export const bis: CrewProps[] = [] +export const tsoc: CrewProps[] = [ + { + img: Shivaibhav, + name: "Shivaibhav Dewangan", + post: "Club Secretary", + }, + { + img: Gaurish, + name: "Gaurish Ojha", + post: "Vice Secretary", + }, + { + img: Dhyanendra, + name: "Dhyaanendra Tripathi", + post: "Core Member", + }, + { + img: Swasti_Srivastava, + name: "Swasti Srivastava", + post: "Core Member", + }, + { + img: Manav_Raj, + name: "Manav Raj Singh", + post: "Core Member", + }, + { + img: Ashutosh_Jaiswal, + name: "Ashutosh Jaiswal", + post: "Core Member", + } +]; + +export const aiml: CrewProps[] = [ + { + img: YashV_Gautum, + name: "Yash Vardhan Gautam", + post: "Club Secretary", + }, + { + img: Sanskar_Singh, + name: "Sanskar Singh", + post: "Vice Secretary", + }, + { + img: Shaurya_Malhan, + name: "Shaurya Malhan", + post: "Core Member", + }, + { + img: Arya_Mahesh, + name: "Arya Mahesh Bhiwapurkar", + post: "Core Member", + }, + { + img: Vaibhav_Suntwal, + name: "Vaibhav Suntwal", + post: "Core Member", + }, + { + img: Swastika_Satya, + name: "Swastika Satya", + post: "Core Member", + }, +]; \ No newline at end of file diff --git a/features/club/cultural/ClubEvents.tsx b/features/club/cultural/ClubEvents.tsx index 27b1b24..26ae234 100644 --- a/features/club/cultural/ClubEvents.tsx +++ b/features/club/cultural/ClubEvents.tsx @@ -4,27 +4,24 @@ import Box from "@mui/material/Box"; import Image from "next/image"; import starIcon from "../../../assets/icon/icon_star.svg"; import Stack from "@mui/material/Stack"; -import Link from "next/link"; interface EventProps { name: string; date: string; children: ReactNode; - link: string; } interface Props { - name: string; + eventName: string; date: string; desc: string; - link: string; } interface ClubEventProps { props: Props[]; } -const Event = ({ name, date, children, link }: EventProps) => { +const Event = ({ name, date, children }: EventProps) => { return ( <> { lineHeight="21px" textAlign="center" color="#000000" - > - Register - + > ); @@ -117,12 +112,7 @@ function ClubEvents({ props }: ClubEventProps) { > {props.map((event, key) => { return ( - + {event.desc} ); diff --git a/features/club/sports/EventData.tsx b/features/club/sports/EventData.tsx index 9601e5c..ab2031e 100644 --- a/features/club/sports/EventData.tsx +++ b/features/club/sports/EventData.tsx @@ -1,12 +1,34 @@ -export const EventData = [ - { - event: "Monthly Chess Cup Start", - Date: "16/02/2023", - Info: "The Monthly Chess Cup is a series of events that will span for 4 months of the Spring Semester of 2023.", - }, - { - event: "Aarambh 5.0", - Date: "27-29 Jan 2023", - Info: "Aarambh brings together students from across the college to compete in various sports and showcase their skills.", - }, -]; +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Atharv" + ); +}); +export let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} diff --git a/features/club/sports/SportsHeading.tsx b/features/club/sports/SportsHeading.tsx index 7be928d..35ce9b1 100644 --- a/features/club/sports/SportsHeading.tsx +++ b/features/club/sports/SportsHeading.tsx @@ -1,7 +1,7 @@ import Image from "next/image"; import AtharvLogo from "../../../assets/sports_icons/atharv_logo.png"; import UpcomingEvents from "./UpcomingEvents"; -import { EventData } from "./EventData"; +import { earliestTwoEvents } from "./EventData"; import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import Box from "@mui/material/Box"; @@ -74,15 +74,15 @@ const SportsHeading = () => { > diff --git a/features/club/sports/SportsTeam.tsx b/features/club/sports/SportsTeam.tsx index f794481..2daea5e 100644 --- a/features/club/sports/SportsTeam.tsx +++ b/features/club/sports/SportsTeam.tsx @@ -4,22 +4,7 @@ import Typography from "@mui/material/Typography"; import Image from "next/image"; import { ReactNode } from "react"; import { StaticImageData } from "next/image"; -import Suyash_Gupta from "../../../assets/team_23-24/Suyash_Gupta.jpg"; -import Yash_Raj from "../../../assets/team_23-24/Yash_Raj.jpeg"; -import Neha_Dhruw from "../../../assets/team_23-24/Neha_Dhruw.jpg"; -import Sanjana_Sori from "../../../assets/team_23-24/Sanjana_Sori.jpg"; -import Ravikant_Shrivas from "../../../assets/team_23-24/Male-member.jpeg"; -import Aditya_Raj_Banjare from "../../../assets/team_23-24/Male-member.jpeg"; -import Ravi_Vinayak from "../../../assets/team_23-24/Ravi_Vinayak.jpeg"; -import Venella_Telli from "../../../assets/team_23-24/Female-member.jpeg"; -import Ojash_E_Sports from "../../../assets/team_23-24/Male-member.jpeg"; -import Shaurya_Malhan from "../../../assets/team_23-24/Shaurya_Malhan.jpeg"; -import Deependra_Singh_Bhow from "../../../assets/team_23-24/Deependar.jpeg"; -import Lumani_Verma from "../../../assets/team_23-24/Female-member.jpeg"; -import Aman_Kumar_Singh from "../../../assets/team_23-24/Aman_Singh.jpg"; -import Mayank_Chandra from "../../../assets/team_23-24/Male-member.jpeg"; -import Neha_Dhruw_Volleyball from "../../../assets/team_23-24/Neha_Dhruw.jpg"; -import Raj_Bhattacharya from "../../../assets/team_23-24/Male-member.jpeg"; +import { atharv } from "../../../data/SportsClubCrew"; interface Props { img: StaticImageData; @@ -97,7 +82,7 @@ const SportsTeam = () => { alignItems: "center", }} > - {crew.map((data, index) => { + {atharv.map((data, index) => { return ( {data.post} @@ -111,97 +96,3 @@ const SportsTeam = () => { }; export default SportsTeam; - -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - -const crew: CrewProps[] = [ - { - img: Suyash_Gupta, - name: "Suyash Gupta", - post: "Atharv In-Charge", - }, - { - img: Yash_Raj, - name: "Yash Raj", - post: "Atharv Vice-Incharge", - }, - { - img: Neha_Dhruw, - name: "Neha Dhruw", - post: "Atharv Vice-Incharge", - }, - { - img: Suyash_Gupta, - name: "Suyash Gupta", - post: "Atharv Cricket InCharge", - }, - { - img: Sanjana_Sori, - name: "Sanjana Sori", - post: "Atharv Cricket InCharge (Girls)", - }, - { - img: Ravikant_Shrivas, - name: "Ravikant Shrivas", - post: "Atharv Basketball InCharge", - }, - { - img: Aditya_Raj_Banjare, - name: "Aditya Raj Banjare", - post: "Atharv Kabaddi InCharge", - }, - { - img: Ravi_Vinayak, - name: "Ravi Vinayak", - post: "Atharv Badminton InCharge", - }, - { - img: Venella_Telli, - name: "Venella Telli", - post: "Atharv Badminton InCharge (Girls)", - }, - { - img: Ojash_E_Sports, - name: "Ojash", - post: "Atharv E-Sports InCharge", - }, - { - img: Shaurya_Malhan, - name: "Shaurya Malhan", - post: "Atharv Chess InCharge", - }, - { - img: Deependra_Singh_Bhow, - name: "Deependra Singh Bhow", - post: "Atharv Table Tennis InCharge", - }, - { - img: Lumani_Verma, - name: "Lumani Verma", - post: "Atharv Table Tennis InCharge (Girls)", - }, - { - img: Aman_Kumar_Singh, - name: "Aman Kumar Singh", - post: "Atharv Football InCharge", - }, - { - img: Mayank_Chandra, - name: "Mayank Chandra", - post: "Atharv Volleyball InCharge", - }, - { - img: Neha_Dhruw_Volleyball, - name: "Neha Dhruw", - post: "Atharv Volleyball InCharge (Girls)", - }, - { - img: Raj_Bhattacharya, - name: "Raj Bhattacharya", - post: "Atharv Mini Golf InCharge", - }, -]; diff --git a/features/club/technical/BasicMenu.tsx b/features/club/technical/BasicMenu.tsx index 10f46c5..cab6dd3 100644 --- a/features/club/technical/BasicMenu.tsx +++ b/features/club/technical/BasicMenu.tsx @@ -151,4 +151,6 @@ const clubs = [ color: "#BB9AF7", }, { name: "// Comet", url: "/clubs/technical/comet", color: "#FF9E64" }, + { name: "// BIS", url: "/clubs/technical/bis", color: "#CA50F5" }, + { name: "// IIC", url: "/clubs/technical/iic", color: "#FFDE31" }, ]; diff --git a/features/team/TeamNavbar.tsx b/features/team/TeamNavbar.tsx index 933d507..41ed83f 100644 --- a/features/team/TeamNavbar.tsx +++ b/features/team/TeamNavbar.tsx @@ -3,7 +3,7 @@ import Tabs from "@mui/material/Tabs"; import Tab from "@mui/material/Tab"; import Box from "@mui/material/Box"; import ScrollContainer from "./ScrollContainer"; -import { TeamData } from "./TeamData"; +import { TeamData } from "../../data/TeamData"; import { SessionContext } from "../../contexts/TeamContext"; import { StaticImageData } from "next/image"; diff --git a/pages/clubs/cultural/c2c.tsx b/pages/clubs/cultural/c2c.tsx index 4202bbb..3c011a2 100644 --- a/pages/clubs/cultural/c2c.tsx +++ b/pages/clubs/cultural/c2c.tsx @@ -8,17 +8,9 @@ import c2cBg from "../../../assets/cultural_clubs_bg/c2c.png"; import c2cLogo from "../../../assets/cultural_clubs_bg/c2c_logo.png"; import Gallery from "../../../features/club/common/Gallery"; import Crew from "../../../features/club/common/Crew"; +import { c2c } from "../../../data/CulturalClubCrew"; import { StaticImageData } from "next/image"; -// import crew -import Panshul_Senapati from "../../../assets/team_23-24/Panshul_Senapati.jpg"; -import Aseem_Rai from "../../../assets/team_23-24/Aseem_Rai.jpg"; -import Ashutosh_Jaiswal from "../../../assets/team_23-24/Ashutosh_Jaiswal.jpeg"; -import Arman_Singh_Kshatri from "../../../assets/team_23-24/Male-member.jpeg"; -import Ojash_Verma from "../../../assets/team_23-24/Male-member.jpeg"; -import Simmi_Baghel from "../../../assets/team_23-24/Simmi_Baghel.jpg"; - - // import events import ramp1 from "../../../assets/club_event_pics/cultural/ramp1.jpeg"; import ramp2 from "../../../assets/club_event_pics/cultural/ramp2.jpeg"; @@ -27,6 +19,41 @@ import ramp4 from "../../../assets/club_event_pics/cultural/ramp4.jpeg"; interface CoverToCoverProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "C2C" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + const CoverToCover: FunctionComponent = () => { return ( <> @@ -47,8 +74,8 @@ const CoverToCover: FunctionComponent = () => { connect with literature and each other in a meaningful and transformative way. - - + + @@ -57,71 +84,16 @@ const CoverToCover: FunctionComponent = () => { export default CoverToCover; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img:Panshul_Senapati , - name: "Panshul Senapati", - post: "Club Secretary", - }, - { - img: Aseem_Rai, - name: "Aseem Rai", - post: "Vice Secretary", - }, - { - img: Ashutosh_Jaiswal, - name: "Ashutosh Jaiswal", - post: "Core Member", - }, - { - img: Ojash_Verma, - name: "Ojash Verma", - post: "Core Member", - }, - { - img: Arman_Singh_Kshatri, - name: "Arman Singh Kshatri", - post: "Core Member", - }, - { - img: Simmi_Baghel, - name: "Simmi Baghel", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Rampage", date: "12 Sept 2022", img: [ramp1, ramp2, ramp3, ramp4], }, -]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Zhark Tank", - date: "March 31, 2023", - desc: "Event based on Shark Tank", - link: "", - }, -]; +]; \ No newline at end of file diff --git a/pages/clubs/cultural/capriccio.tsx b/pages/clubs/cultural/capriccio.tsx index 8c58752..ea08eaf 100644 --- a/pages/clubs/cultural/capriccio.tsx +++ b/pages/clubs/cultural/capriccio.tsx @@ -8,17 +8,9 @@ import Gallery from "../../../features/club/common/Gallery"; import capriccioBg from "../../../assets/cultural_clubs_bg/capriccio.png"; import capriccioLogo from "../../../assets/cultural_clubs_bg/capriccio_logo.png"; import Crew from "../../../features/club/common/Crew"; +import {capriccio} from "../../../data/CulturalClubCrew" import { StaticImageData } from "next/image"; -// import crew -import Priyanshu_Srivastava from "../../../assets/team_23-24/Priyanshu_Srivastava.jpg"; -import Anoushka_Koul from "../../../assets/team_23-24/Anoushka_koul.jpeg"; -import Tanisi_Jha from "../../../assets/team_23-24/Female-member.jpeg"; -import Varsha_Sri_Narla from "../../../assets/team_23-24/Varsha_Sri_Narla.jpg"; -import Akhilesh_Vajrala from "../../../assets/team_23-24/Male-member.jpeg"; -import Mohd_Kaif from "../../../assets/team_23-24/Male-member.jpeg"; - - // import events import mellow1 from "../../../assets/club_event_pics/cultural/mellow_cap1.jpeg"; import mellow2 from "../../../assets/club_event_pics/cultural/mellow_cap2.jpeg"; @@ -27,6 +19,41 @@ import mellow4 from "../../../assets/club_event_pics/cultural/mellow_cap4.jpeg"; interface CapriccioProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Capriccio" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + const Capriccio: FunctionComponent = () => { return ( <> @@ -46,8 +73,8 @@ const Capriccio: FunctionComponent = () => { which can be an essential form of self-expression and a valuable companion throughout life's journey. - - + + @@ -56,50 +83,13 @@ const Capriccio: FunctionComponent = () => { export default Capriccio; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Priyanshu_Srivastava, - name: "Priyanshu Srivastava", - post: "Club Secretary", - }, - { - img: Anoushka_Koul, - name: "Anoushka Koul", - post: "Vice Secretary", - }, - { - img: Tanisi_Jha, - name: "Tanisi Jha", - post: "Core Member", - }, - { - img: Varsha_Sri_Narla, - name: "Varsha Sri Narla", - post: "Core Member", - }, - { - img: Akhilesh_Vajrala, - name: "Akhilesh Vajrala", - post: "Core Member", - }, - { - img: Mohd_Kaif, - name: "Mohd Kaif", - post: "Core Member", - }, -]; + const gallery: GalleryProps[] = [ { @@ -107,20 +97,4 @@ const gallery: GalleryProps[] = [ date: "9 May 2022", img: [mellow1, mellow2, mellow3, mellow4], }, -]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Funtakshari", - date: "March 24, 2023", - desc: "Antakshari with fun", - link: "", - }, -]; +]; \ No newline at end of file diff --git a/pages/clubs/cultural/cdt.tsx b/pages/clubs/cultural/cdt.tsx index 5740341..2553604 100644 --- a/pages/clubs/cultural/cdt.tsx +++ b/pages/clubs/cultural/cdt.tsx @@ -9,15 +9,7 @@ import cdtBg from "../../../assets/cultural_clubs_bg/cdt.png"; import cdtLogo from "../../../assets/cultural_clubs_bg/cdt_logo.png"; import { StaticImageData } from "next/image"; import Crew from "../../../features/club/common/Crew"; - -// import crew -import Swastika_Satya from "../../../assets/team_23-24/Swastika_Satya.jpg"; -import Vishal_Sharma from "../../../assets/team_23-24/Vishal_Sharma.jpg"; -import Kanika_Malhotra from "../../../assets/team_23-24/Kanika_Malhotra -.jpg"; -import Juttuka_Saaketh from "../../../assets/team_23-24/Male-member.jpeg"; -import Anshu_kashyap from "../../../assets/team_23-24/Female-member.jpeg"; -import Krishna_aggarwal from "../../../assets/team_23-24/Krishna_Agrawal.jpg"; - +import { cdt } from "../../../data/CulturalClubCrew"; // import events import nukkad1 from "../../../assets/club_event_pics/cultural/nukkad1.jpeg"; @@ -27,6 +19,40 @@ import nukkad4 from "../../../assets/club_event_pics/cultural/nukkad4.jpeg"; interface ClubDeTheatreProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "CDT" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} const ClubDeTheatre: FunctionComponent = () => { return ( <> @@ -45,8 +71,8 @@ const ClubDeTheatre: FunctionComponent = () => { helps in developing the students' self-confidence, ability to express themselves, and working in a team. - - + + @@ -55,52 +81,12 @@ const ClubDeTheatre: FunctionComponent = () => { export default ClubDeTheatre; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Swastika_Satya, - name: "Swastika Satya", - post: "Club Secretary", - }, - { - img: Vishal_Sharma, - name: "Vishal Sharma", - post: "Vice Secretary", - }, - { - img: Kanika_Malhotra, - name: "Kanika Malhotra", - post: "Core member", - }, - { - img: Juttuka_Saaketh, - name: "Juttuka Saaketh", - post: "Core Member", - }, - { - img: Anshu_kashyap, - name: "Anhsu Kashyap", - post: "Core Member", - }, - { - img: Krishna_aggarwal, - name: "Krishna Aggarwal", - post: "Core Member", - }, - -]; - const gallery: GalleryProps[] = [ { name: "Nukkad Natak", @@ -108,19 +94,3 @@ const gallery: GalleryProps[] = [ img: [nukkad1, nukkad2, nukkad3, nukkad4], }, ]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Political Drama", - date: "February 2, 2023", - desc: "Combined Event of CDT and MUN", - link: "", - }, -]; diff --git a/pages/clubs/cultural/igniters.tsx b/pages/clubs/cultural/igniters.tsx index a097616..8a8c4c1 100644 --- a/pages/clubs/cultural/igniters.tsx +++ b/pages/clubs/cultural/igniters.tsx @@ -8,17 +8,8 @@ import Gallery from "../../../features/club/common/Gallery"; import ignitersBg from "../../../assets/cultural_clubs_bg/igniters.png"; import ignitersLogo from "../../../assets/cultural_clubs_bg/igniters_logo.jpg"; import { StaticImageData } from "next/image"; - -// import crew -import Niharika_Murmu from "../../../assets/team_23-24/Niharika_Murmu.jpg"; -import Satvik_Yadav from "../../../assets/team_23-24/Satvik_Yadav.jpg"; -import RamaR_Katta from "../../../assets/team_23-24/Male-member.jpeg"; -import Aryan_Kumar_Baghel from "../../../assets/team_23-24/Aryan_Kumar_Baghel.jpg"; -import Anuja_Singh from "../../../assets/team_23-24/Female-member.jpeg"; -import Eluri_Rithwik from "../../../assets/team_23-24/Eluri_Rithwik.jpg"; -import Muskan_Dewangan from "../../../assets/team_23-24/Muskan_Dewangan.jpg"; - import Crew from "../../../features/club/common/Crew"; +import { igniters } from "../../../data/CulturalClubCrew"; // import events import dance1 from "../../../assets/club_event_pics/cultural/dance1.jpeg"; @@ -31,6 +22,41 @@ import mellow3 from "../../../assets/club_event_pics/cultural/mellow3.jpeg"; interface IgnitersProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Indradhanush" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + const Igniters: FunctionComponent = () => { return ( <> @@ -49,8 +75,8 @@ const Igniters: FunctionComponent = () => { all skill levels and encourages everyone to join in the journey and let the art of dance bring them joy and expression. - - + + @@ -59,56 +85,12 @@ const Igniters: FunctionComponent = () => { export default Igniters; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Niharika_Murmu, - name: "Niharika Murmu", - post: "Club Secretary", - }, - { - img: Satvik_Yadav, - name: "Satvik Yadav", - post: "Co-Vice Secretary", - }, - { - img: RamaR_Katta, - name: "Rama Rakshith Katta", - post: "Co-Vice Secretary", - }, - { - img: Aryan_Kumar_Baghel, - name: "Aryan Kumar Baghel", - post: "core member", - }, - { - img: Anuja_Singh, - name: "Anuja Singh Pandaw", - post: "core member", - }, - { - img: Eluri_Rithwik, - name: "Elluri Rithwik", - post: "core member", - }, - { - img: Muskan_Dewangan, - name: "Muskan Dewangan", - post: "core member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Dance Workshop", @@ -120,20 +102,4 @@ const gallery: GalleryProps[] = [ date: "9 May 2022", img: [mellow1, mellow2, mellow3], }, -]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Intra-College Dance Contest", - date: "February 11, 2023", - desc: "Dance Competition", - link: "", - }, -]; +]; \ No newline at end of file diff --git a/pages/clubs/cultural/indradhanush.tsx b/pages/clubs/cultural/indradhanush.tsx index 7baa6b4..a7d7f07 100644 --- a/pages/clubs/cultural/indradhanush.tsx +++ b/pages/clubs/cultural/indradhanush.tsx @@ -9,14 +9,7 @@ import indradhanushBg from "../../../assets/cultural_clubs_bg/indradhanush.png"; import indradhanushLogo from "../../../assets/cultural_clubs_bg/indradhanush_logo.png"; import Crew from "../../../features/club/common/Crew"; import { StaticImageData } from "next/image"; - -// import crew -import Thanisha_Dewangan from "../../../assets/team_23-24/Thanisha _Dewangan..jpg"; -import Shalini_Singh from "../../../assets/team_23-24/Shalini_Singh.jpg"; -import Sanjana_Sori from "../../../assets/team_23-24/Sanjana_Sori.jpg"; -import Vajrala_Akhilesh from "../../../assets/team_23-24/Male-member.jpeg"; -import P_Punit from "../../../assets/team_23-24/Male-member.jpeg"; -import Anjali_Daheriya from "../../../assets/team_23-24/Female-member.jpeg"; +import { indradhanush } from "../../../data/CulturalClubCrew"; // import events import canva1 from "../../../assets/club_event_pics/cultural/canva1.jpeg"; @@ -26,6 +19,41 @@ import canva4 from "../../../assets/club_event_pics/cultural/canva4.jpeg"; interface IndradhanushProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Indradhanush" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + const Indradhanush: FunctionComponent = () => { return ( <> @@ -42,8 +70,8 @@ const Indradhanush: FunctionComponent = () => { The club recognizes the need for humans to express ideas to upgrade living standards. - - + + @@ -52,12 +80,6 @@ const Indradhanush: FunctionComponent = () => { export default Indradhanush; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; @@ -71,39 +93,6 @@ interface EventProps { link: string; } -const crew: CrewProps[] = [ - { - img: Thanisha_Dewangan, - name: "Thanisha Dewangan", - post: "Club Secretary", - }, - { - img: Shalini_Singh, - name: "Shalini Singh", - post: "Vice Secretary", - }, - { - img: Sanjana_Sori, - name: "Sanjana Sori", - post: "Core Member", - }, - { - img: Vajrala_Akhilesh, - name: "Vajrala Akhilesh", - post: "Core Member", - }, - { - img: P_Punit, - name: "P Punit", - post: "Core Member", - }, - { - img: Anjali_Daheriya, - name: "Anjali Daheriya", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "CanvaKar", @@ -112,11 +101,3 @@ const gallery: GalleryProps[] = [ }, ]; -const eventDetails: EventProps[] = [ - { - name: "Scribbles FUN", - date: "April 9, 2023", - desc: "Fun Scribbling Event", - link: "", - }, -]; diff --git a/pages/clubs/cultural/mun.tsx b/pages/clubs/cultural/mun.tsx index 94c7bd6..d647387 100644 --- a/pages/clubs/cultural/mun.tsx +++ b/pages/clubs/cultural/mun.tsx @@ -9,15 +9,7 @@ import munBg from "../../../assets/cultural_clubs_bg/mun.png"; import munLogo from "../../../assets/cultural_clubs_bg/mun_logo.png"; import { StaticImageData } from "next/image"; import Crew from "../../../features/club/common/Crew"; - -// import crew -import Kanika_Malhotra from "../../../assets/team_23-24/Kanika_Malhotra -.jpg"; -import Aniket_Pandey from "../../../assets/team_23-24/Aniket_Pandey.jpg"; -import Shreya_Tiwari from "../../../assets/team_23-24/Shreya_Tiwari.jpg"; -import Ayush_Yadav from "../../../assets/team_23-24/Ayush_Yadav.jpg"; -import Muskan_dewangan from "../../../assets/team_23-24/Muskan_Dewangan.jpg"; -import Apurva_Sahu from "../../../assets/team_23-24/Apurva_Sahu.jpg"; - +import { mun } from "../../../data/CulturalClubCrew"; // import events import chai1 from "../../../assets/club_event_pics/cultural/chai1.jpeg"; import chai2 from "../../../assets/club_event_pics/cultural/chai2.jpeg"; @@ -38,6 +30,41 @@ import munc8 from "../../../assets/club_event_pics/cultural/munc8.jpeg"; interface ModelUnitedNationProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Indradhanush" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + const ModelUnitedNation: FunctionComponent = () => { return ( <> @@ -56,8 +83,8 @@ const ModelUnitedNation: FunctionComponent = () => { From having heated debates to forming alliances, this club will provide a platform to step into the shoes of UN ambassadors. - - + + @@ -66,51 +93,12 @@ const ModelUnitedNation: FunctionComponent = () => { export default ModelUnitedNation; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Kanika_Malhotra, - name: "Kanika Malhotra", - post: "Club Secretary", - }, - { - img: Aniket_Pandey, - name: "Aniket Pandey", - post: "Vice Secretary", - }, - { - img: Shreya_Tiwari, - name: "Shreya Tiwari", - post: "Core Member", - }, - { - img: Ayush_Yadav, - name: "Ayush Yadav", - post: "Core Member", - }, - { - img: Muskan_dewangan, - name: "Muskan Dewangan", - post: "Core Member", - }, - { - img: Apurva_Sahu, - name: "Apurva Sahu", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "MUN Conference 2022", @@ -127,26 +115,4 @@ const gallery: GalleryProps[] = [ date: "09 Sept 2022", img: [whatif1, whatif2, whatif3, whatif4], }, -]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Political Drama", - date: "February 2, 2023", - desc: "Combined Event of MUN and CDT", - link: "", - }, - { - name: "Inter College MUN", - date: "15-16 April 2023", - desc: "MUN Conference", - link: "", - }, -]; +]; \ No newline at end of file diff --git a/pages/clubs/cultural/tdb.tsx b/pages/clubs/cultural/tdb.tsx index 93127ad..5544c98 100644 --- a/pages/clubs/cultural/tdb.tsx +++ b/pages/clubs/cultural/tdb.tsx @@ -9,15 +9,7 @@ import tbdBg from "../../../assets/cultural_clubs_bg/tbd.png"; import tbdLogo from "../../../assets/cultural_clubs_bg/tbd_logo.jpg"; import Crew from "../../../features/club/common/Crew"; import { StaticImageData } from "next/image"; - -// import crew -import Shreya_Tiwari from "../../../assets/team_23-24/Shreya_Tiwari.jpg"; -import Aayush_Kulkarni from "../../../assets/team_23-24/Aayush_Kulkarni.jpg"; -import Aniket_Pandey from "../../../assets/team_23-24/Aniket_Pandey.jpg"; -import Anoushka_Kaul from "../../../assets/team_23-24/Anoushka_koul.jpeg"; -import Trisul from "../../../assets/team_23-24/Trisul.jpeg"; -import Shaurya_Malhan from "../../../assets/team_23-24/Shaurya_Malhan.jpeg"; - +import { tdb } from "../../../data/CulturalClubCrew"; // import events import yet1 from "../../../assets/club_event_pics/cultural/yet1.jpeg"; import yet2 from "../../../assets/club_event_pics/cultural/yet2.jpeg"; @@ -26,6 +18,41 @@ import yet4 from "../../../assets/club_event_pics/cultural/yet4.jpeg"; interface TakeDaBaitProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "TDB" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + const TakeDaBait: FunctionComponent = () => { return ( <> @@ -47,8 +74,8 @@ const TakeDaBait: FunctionComponent = () => { discussing and debating important issues, members will be better equipped to be informed citizens and future leaders. - - + + @@ -57,77 +84,16 @@ const TakeDaBait: FunctionComponent = () => { export default TakeDaBait; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Shreya_Tiwari, - name: "Shreya Tiwari", - post: "Club Secretary", - }, - { - img: Aayush_Kulkarni, - name: "Aayush Kulkarni", - post: "Vice Secretary", - }, - { - img: Anoushka_Kaul, - name: "Anoushka Kaul", - post: "Core Member", - }, - { - img: Trisul, - name: "Trisul", - post: "Core Member", - }, - { - img: Shaurya_Malhan, - name: "Shaurya Malhan", - - post: "Core Member", - },{ - img: Aniket_Pandey, - name: "Aniket Pandey", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Yet to be Decided", date: "20 Jan 2023", img: [yet1, yet2, yet3, yet4], }, -]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Picture Perception & Discussion", - date: "February 6, 2023", - desc: "Story making based on given picture", - link: "", - }, - { - name: "Swaying with Sniggers Debate", - date: "February 17, 2023", - desc: "Debate Competition", - link: "", - }, -]; +]; \ No newline at end of file diff --git a/pages/clubs/cultural/ytc.tsx b/pages/clubs/cultural/ytc.tsx index 95b63f4..d0e58a7 100644 --- a/pages/clubs/cultural/ytc.tsx +++ b/pages/clubs/cultural/ytc.tsx @@ -9,17 +9,7 @@ import YTCBg from "../../../assets/cultural_clubs_bg/YTC.jpg"; import YTCLogo from "../../../assets/cultural_clubs_bg/YTC_logo.png"; import Crew from "../../../features/club/common/Crew"; import { StaticImageData } from "next/image"; - -// import crew -import Abhijeet_Jharbade from "../../../assets/team_23-24/Male-member.jpeg"; -import ACHANTA_SATYA_KARTHIK from "../../../assets/team_23-24/Satya_Karthik_Achanta.jpg"; -import ANKITAN_KUMAR from "../../../assets/team_23-24/Ankitan_Kumar.jpg"; -import ANUJA_SINGH_PANDAW from "../../../assets/team_23-24/Female-member.jpeg"; -import APURVA_SAHU from "../../../assets/team_23-24/Apurva_Sahu.jpg"; -import KARTHIKEYA_PRACHODRAN from "../../../assets/team_23-24/Male-member.jpeg"; -import RIMJHIM_SHARMA from "../../../assets/team_23-24/Female-member.jpeg"; -import AAYUSH_KULKARNI from "../../../assets/team_23-24/Aayush_Kulkarni.jpg"; -import ARYAN_KUMAR_BAGHEL from "../../../assets/team_23-24/Aryan_Kumar_Baghel.jpg"; +import {ytc} from "../../../data/CulturalClubCrew"; // import event import bharat1 from "../../../assets/club_event_pics/cultural/bharat1.jpeg"; import bharat3 from "../../../assets/club_event_pics/cultural/bharat3.jpeg"; @@ -33,6 +23,41 @@ import ganraya4 from "../../../assets/club_event_pics/cultural/ganraya4.jpeg"; interface YTCProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Indradhanush" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + const YTC: FunctionComponent = () => { return ( <> @@ -49,7 +74,7 @@ const YTC: FunctionComponent = () => { become aware of tourism possibilities in India, appreciate our rich cultural heritage and develop an interest and passion for tourism. - {/* */} + {/* */} {/* */} {/* */} @@ -59,65 +84,12 @@ const YTC: FunctionComponent = () => { export default YTC; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Abhijeet_Jharbade, - name: "Abhijeet Jharbade", - post: "Head", - }, - { - img: ACHANTA_SATYA_KARTHIK, - name: "Achanta Satya Karthik", - post: "Core member", - }, - { - img: ANKITAN_KUMAR, - name: "Ankitan Kumar", - post: "Core member", - }, - { - img: ANUJA_SINGH_PANDAW, - name: "Anuja Singh Pandaw", - post: "Core member", - }, - { - img: APURVA_SAHU, - name: "Apurva Sahu", - post: "Core member", - }, - { - img: KARTHIKEYA_PRACHODRAN, - name: "Karthikeya Prachodran", - post: "Core member", - }, - { - img: RIMJHIM_SHARMA, - name: "Rimjhim Sharma", - post: "Core member", - }, - { - img: AAYUSH_KULKARNI, - name: "Aayush Kulkarni", - post: "Core member", - }, - { - img: ARYAN_KUMAR_BAGHEL, - name: "Aryan Kumar Baghel", - post: "Core member", - }, -]; const gallery: GalleryProps[] = [ { @@ -130,26 +102,4 @@ const gallery: GalleryProps[] = [ date: "31 Aug 2022", img: [ganraya1, ganraya2, ganraya3, ganraya4], }, -]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Photography Contest", - date: "January 26, 2023", - desc: "Photography Contest", - link: "", - }, - { - name: "Picturesque", - date: "February 22, 2023", - desc: "Photography Contest", - link: "", - }, -]; +]; \ No newline at end of file diff --git a/pages/clubs/media/design.tsx b/pages/clubs/media/design.tsx index 5925bfe..14dff2a 100644 --- a/pages/clubs/media/design.tsx +++ b/pages/clubs/media/design.tsx @@ -8,15 +8,7 @@ import DesignBg from "../../../assets/media_cell_bg/design.jpg"; import DesignLogo from "../../../assets/media_cell_bg/Media.png"; import Crew from "../../../features/club/common/Crew"; import { StaticImageData } from "next/image"; - -// import crew - -import A_Satya_Kartik from "../../../assets/team_23-24/Male-member.jpeg"; -import S_Chandu from "../../../assets/team_23-24/Male-member.jpeg"; -import Ojash_Verma from "../../../assets/team_23-24/Male-member.jpeg"; -import Tanishka from "../../../assets/team_23-24/Female-member.jpeg"; -import Trisul from "../../../assets/team_23-24/Trisul.jpeg"; -import Shreyansh_Kushwaha from "../../../assets/team_23-24/Shreyansh_Kushwaha.jpg"; +import { design } from "../../../data/MediaClubCrew"; interface DesignProps {} @@ -55,7 +47,7 @@ const Design: FunctionComponent = () => { team, documenting every posts, blogs or captions, thus suopporting the entire SAC. - +
@@ -64,47 +56,8 @@ const Design: FunctionComponent = () => { export default Design; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } - -const crew: CrewProps[] = [ - { - img: A_Satya_Kartik, - name: "A Satya Karthik", - post: "Head", - }, - { - img: S_Chandu, - name: "S.Chandu", - post: "Core Member", - }, - { - img: Ojash_Verma, - name: "Ojash Verma", - post: "Core Member", - }, - { - img: Tanishka, - name: "Tanishka Chauhan", - post: "Core Member", - }, - { - img: Shreyansh_Kushwaha, - name: "Shreyansh Kushwaha", - post: "Core Member", - }, - { - img: Trisul, - name: "Trishul", - post: "Core Member", - }, -]; diff --git a/pages/clubs/media/pr.tsx b/pages/clubs/media/pr.tsx index 9147f16..b211687 100644 --- a/pages/clubs/media/pr.tsx +++ b/pages/clubs/media/pr.tsx @@ -7,14 +7,7 @@ import PRBg from "../../../assets/media_cell_bg/pr.jpg"; import PRLogo from "../../../assets/media_cell_bg/Media.png"; import Crew from "../../../features/club/common/Crew"; import { StaticImageData } from "next/image"; - -// import crew - -import Aryansh_Verma from "../../../assets/team_23-24/Aryansh_Verma.jpg"; -import Raj_Bhattacharya from "../../../assets/team_23-24/Male-member.jpeg"; -import Ishita_Tegar from "../../../assets/team_23-24/Ishita_Tegar.jpg"; -import Aayush_Kulkarni from "../../../assets/team_23-24/Aayush_Kulkarni.jpg"; -import Trisul from "../../../assets/team_23-24/Trisul.jpeg"; +import { pr } from "../../../data/MediaClubCrew"; interface PRProps {} @@ -32,7 +25,7 @@ const PR: FunctionComponent = () => { handling our outreach and social accounts.They try to update about all the events that happen in our institute on our accounts. - +
@@ -41,42 +34,8 @@ const PR: FunctionComponent = () => { export default PR; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } - -const crew: CrewProps[] = [ - { - img: Aryansh_Verma, - name: "Aryansh Verma", - post: "Head", - }, - { - img: Aayush_Kulkarni, - name: "Aayush Kulkarni", - post: "Core member", - }, - { - img: Raj_Bhattacharya, - name: "Raj Bhattacharya", - post: "Core member", - }, - { - img: Ishita_Tegar, - name: "Ishita Tegar", - post: "Core member", - }, - { - img: Trisul, - name: "Trishul", - post: "Core member", - }, -]; diff --git a/pages/clubs/media/shutterbug.tsx b/pages/clubs/media/shutterbug.tsx index af6bf37..d7640d4 100644 --- a/pages/clubs/media/shutterbug.tsx +++ b/pages/clubs/media/shutterbug.tsx @@ -9,17 +9,8 @@ import shutterbugBg from "../../../assets/cultural_clubs_bg/shutterbug.png"; import shutterbugLogo from "../../../assets/cultural_clubs_bg/shutterbug_logo.jpeg"; import Crew from "../../../features/club/common/Crew"; import { StaticImageData } from "next/image"; +import { shutterbug } from "../../../data/MediaClubCrew"; -// import crew -import Abhijeet_Jharbade from "../../../assets/team_23-24/Male-member.jpeg"; -import ACHANTA_SATYA_KARTHIK from "../../../assets/team_23-24/Satya_Karthik_Achanta.jpg"; -import ANKITAN_KUMAR from "../../../assets/team_23-24/Ankitan_Kumar.jpg"; -import ANUJA_SINGH_PANDAW from "../../../assets/team_23-24/Female-member.jpeg"; -import APURVA_SAHU from "../../../assets/team_23-24/Apurva_Sahu.jpg"; -import KARTHIKEYA_PRACHODRAN from "../../../assets/team_23-24/Male-member.jpeg"; -import RIMJHIM_SHARMA from "../../../assets/team_23-24/Female-member.jpeg"; -import AAYUSH_KULKARNI from "../../../assets/team_23-24/Aayush_Kulkarni.jpg"; -import ARYAN_KUMAR_BAGHEL from "../../../assets/team_23-24/Aryan_Kumar_Baghel.jpg"; // import event import bharat1 from "../../../assets/club_event_pics/cultural/bharat1.jpeg"; import bharat3 from "../../../assets/club_event_pics/cultural/bharat3.jpeg"; @@ -33,6 +24,40 @@ import ganraya4 from "../../../assets/club_event_pics/cultural/ganraya4.jpeg"; interface ShutterBugProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Shutterbug" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} const ShutterBug: FunctionComponent = () => { return ( <> @@ -49,8 +74,8 @@ const ShutterBug: FunctionComponent = () => { our institute. Also, we organize various photography workshops, exhibitions etc. - - + + @@ -59,66 +84,12 @@ const ShutterBug: FunctionComponent = () => { export default ShutterBug; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Abhijeet_Jharbade, - name: "Abhijeet Jharbade", - post: "Head", - }, - { - img: ACHANTA_SATYA_KARTHIK, - name: "Achanta Satya Karthik", - post: "Core member", - }, - { - img: ANKITAN_KUMAR, - name: "Ankitan Kumar", - post: "Core member", - }, - { - img: ANUJA_SINGH_PANDAW, - name: "Anuja Singh Pandaw", - post: "Core member", - }, - { - img: APURVA_SAHU, - name: "Apurva Sahu", - post: "Core member", - }, - { - img: KARTHIKEYA_PRACHODRAN, - name: "Karthikeya Prachodran", - post: "Core member", - }, - { - img: RIMJHIM_SHARMA, - name: "Rimjhim Sharma", - post: "Core member", - }, - { - img: AAYUSH_KULKARNI, - name: "Aayush Kulkarni", - post: "Core member", - }, - { - img: ARYAN_KUMAR_BAGHEL, - name: "Aryan Kumar Baghel", - post: "Core member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Bharat ke Rang", @@ -131,25 +102,3 @@ const gallery: GalleryProps[] = [ img: [ganraya1, ganraya2, ganraya3, ganraya4], }, ]; - -interface EventProps { - name: string; - date: string; - desc: string; - link: string; -} - -const eventDetails: EventProps[] = [ - { - name: "Photography Contest", - date: "January 26, 2023", - desc: "Photography Contest", - link: "", - }, - { - name: "Picturesque", - date: "February 22, 2023", - desc: "Photography Contest", - link: "", - }, -]; diff --git a/pages/clubs/media/website.tsx b/pages/clubs/media/website.tsx index 41753e0..bd2e655 100644 --- a/pages/clubs/media/website.tsx +++ b/pages/clubs/media/website.tsx @@ -7,13 +7,7 @@ import WebsiteBg from "../../../assets/media_cell_bg/website.jpg"; import WebsiteLogo from "../../../assets/media_cell_bg/Media.png"; import Crew from "../../../features/club/common/Crew"; import { StaticImageData } from "next/image"; - -// import crew - -import Manu_Sai from "../../../assets/team_23-24/Manu_Sai.jpg"; -import Ojas_Dubey1 from "../../../assets/team_23-24/Ojas_Dubey.jpg"; -import Yashraj from "../../../assets/team_23-24/Yash_Raj.jpeg"; -import Shreyansh_Kushwaha from "../../../assets/team_23-24/Shreyansh_Kushwaha.jpg"; +import { website } from "../../../data/MediaClubCrew"; interface WebsiteProps {} @@ -32,7 +26,7 @@ const Website: FunctionComponent = () => { knowledge in an actual deploy website.They try to update about all the events that happen in our institute on this website. - +
@@ -41,37 +35,8 @@ const Website: FunctionComponent = () => { export default Website; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } - -const crew: CrewProps[] = [ - { - img: Ojas_Dubey1, - name: "Ojas Dubey", - post: "Head", - }, - { - img: Manu_Sai, - name: "Manu Sai", - post: "Core Member", - }, - { - img: Shreyansh_Kushwaha, - name: "Shreyansh Kushwaha", - post: "Core Member", - }, - { - img: Yashraj, - name: "Yashraj", - post: "Core Member", - }, -]; diff --git a/pages/clubs/technical/aiml.tsx b/pages/clubs/technical/aiml.tsx index 448f9b0..21f5bd0 100644 --- a/pages/clubs/technical/aiml.tsx +++ b/pages/clubs/technical/aiml.tsx @@ -10,15 +10,7 @@ import aimlBg from "../../../assets/technical_clubs_bg/aiml.jpeg"; import aimlBgTop from "../../../assets/technical_clubs_bg/bg_aiml_top.svg"; import aimlBgBottom from "../../../assets/technical_clubs_bg/bg_aiml_bottom.svg"; import aimlLogo from "../../../assets/technical_clubs_bg/aiml_logo.svg"; - -// import team members -import YashV_Gautum from "../../../assets/team_23-24/Yash_Vardhan_Gautam.jpg"; -import Sanskar_Singh from "../../../assets/team_23-24/Sanskar_Singh.jpeg"; -import Shaurya_Malhan from "../../../assets/team_23-24/Shaurya_Malhan.jpeg"; -import Arya_Mahesh from "../../../assets/team_23-24/Arya_Mahesh_Bhiwapurkar.jpg"; -import Vaibhav_Suntwal from "../../../assets/team_23-24/Vaibhav_Suntwal.jpg"; -import Swastika_Satya from "../../../assets/team_23-24/Swastika_Satya.jpg"; - +import { aiml } from "../../../data/TechnicalClubCrew"; // import events import intro_aiml1 from "../../../assets/club_event_pics/technical/intro_aiml1.jpeg"; import intro_aiml2 from "../../../assets/club_event_pics/technical/intro_aiml2.jpeg"; @@ -33,6 +25,51 @@ import kaggle_comp6 from "../../../assets/club_event_pics/technical/kaggle_compe import kaggle_comp7 from "../../../assets/club_event_pics/technical/kaggle_competition7.jpeg"; import kaggle_comp8 from "../../../assets/club_event_pics/technical/kaggle_competition8.jpeg"; +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const filteredEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "AIML" + ); +}); +const sortedEvents: CalendarDataProps[] = filteredEvents.sort( + (a, b) => new Date(a.date).getTime() - new Date(b.date).getTime() +); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + +const event1Name = earliestTwoEvents[0].eventName; +const event1Date = earliestTwoEvents[0].date; +const event1Desc = earliestTwoEvents[0].desc; +const event2Name = earliestTwoEvents[1].eventName; +const event2Date = earliestTwoEvents[1].date; +const event2Desc = earliestTwoEvents[1].desc; + const Aiml = () => { return ( <> @@ -43,12 +80,12 @@ const Aiml = () => { bgTop={aimlBgTop} logo={aimlLogo} color="#73DACA" - event1Name="Kaggle Competition" - event1Date="18 Feb 2023" - event1Desc="Competition on Kaggle" - event2Name="Hackathon/Quiz" - event2Date="25 March 2023" - event2Desc="AIML Hackathon" + event1Name={event1Name} + event1Date={event1Date} + event1Desc={event1Desc} + event2Name={event2Name} + event2Date={event2Date} + event2Desc={event2Desc} /> The AI/ML club is focused on helping individuals evolve from admirers @@ -71,7 +108,7 @@ const Aiml = () => { pb: 6, }} > - + @@ -81,51 +118,12 @@ const Aiml = () => { export default Aiml; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: YashV_Gautum, - name: "Yash Vardhan Gautam", - post: "Club Secretary", - }, - { - img: Sanskar_Singh, - name: "Sanskar Singh", - post: "Vice Secretary", - }, - { - img: Shaurya_Malhan, - name: "Shaurya Malhan", - post: "Core Member", - }, - { - img: Arya_Mahesh, - name: "Arya Mahesh Bhiwapurkar", - post: "Core Member", - }, - { - img: Vaibhav_Suntwal, - name: "Vaibhav Suntwal", - post: "Core Member", - }, - { - img: Swastika_Satya, - name: "Swastika Satya", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Introduction to AIML", diff --git a/pages/clubs/technical/bis.tsx b/pages/clubs/technical/bis.tsx index a341f34..3ee0aaf 100644 --- a/pages/clubs/technical/bis.tsx +++ b/pages/clubs/technical/bis.tsx @@ -10,26 +10,51 @@ import BISBgTop from "../../../assets/technical_clubs_bg/bg_BIS_top.png"; import BISBgBottom from "../../../assets/technical_clubs_bg/bg_BIS_bottom.png"; import BISLogo from "../../../assets/technical_clubs_bg/BIS_logo.png"; import { StaticImageData } from "next/image"; +import { bis } from "../../../data/TechnicalClubCrew"; -// import crew -import Shivaibhav from "../../../assets/team_23-24/Shivaibhav_Dewangan.jpg"; -import Gaurish from "../../../assets/team_23-24/Gaurish_Ojha.jpg"; -import Dhyanendra from "../../../assets/team_23-24/Dhyanendra_Tripathi.jpg"; -import Swasti_Srivastava from "../../../assets/team_23-24/Swasti_Srivastava.jpeg"; -import Manav_Raj from "../../../assets/team_23-24/Manav_Raj_Singh.jpg"; -import Ashutosh_Jaiswal from "../../../assets/team_23-24/Ashutosh_Jaiswal.jpeg"; +interface BISProps {} -// import events -import bit1 from "../../../assets/club_event_pics/technical/bit1.jpeg"; -import bit2 from "../../../assets/club_event_pics/technical/bit2.jpeg"; -import bit3 from "../../../assets/club_event_pics/technical/bit3.jpeg"; -import bit4 from "../../../assets/club_event_pics/technical/bit4.jpeg"; -import bit5 from "../../../assets/club_event_pics/technical/bit5.jpeg"; -import bit6 from "../../../assets/club_event_pics/technical/bit6.jpeg"; -import bit7 from "../../../assets/club_event_pics/technical/bit7.jpeg"; -import bit8 from "../../../assets/club_event_pics/technical/bit8.jpeg"; +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); -interface BISProps {} + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "BIS" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + +const event1Name = earliestTwoEvents[0].eventName; +const event1Date = earliestTwoEvents[0].date; +const event1Desc = earliestTwoEvents[0].desc; +const event2Name = earliestTwoEvents[1].eventName; +const event2Date = earliestTwoEvents[1].date; +const event2Desc = earliestTwoEvents[1].desc; const BIS: FunctionComponent = () => { return ( @@ -41,12 +66,12 @@ const BIS: FunctionComponent = () => { bgTop={BISBgTop} logo={BISLogo} color={"#CA50F5"} - event1Name="Bit-2-Byte" - event1Date="March 2024" - event1Desc="Coding Challenge" - event2Name="Hack-a-Sol 3.0" - event2Date="April 2024" - event2Desc="Hackathon" + event1Name={event1Name} + event1Date={event1Date} + event1Desc={event1Desc} + event2Name={event2Name} + event2Date={event2Date} + event2Desc={event2Desc} /> The Bureau of Indian Standards (BIS) has a program called Standards @@ -67,7 +92,7 @@ const BIS: FunctionComponent = () => { pb: 6, }} > - {/* */} + {/* */} @@ -76,67 +101,8 @@ const BIS: FunctionComponent = () => { export default BIS; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } - -const crew: CrewProps[] = [ - { - img: Shivaibhav, - name: "Shivaibhav Dewangan", - post: "Club Secretary", - }, - { - img: Gaurish, - name: "Gaurish Ojha", - post: "Vice Secretary", - }, - { - img: Dhyanendra, - name: "Dhyaanendra Tripathi", - post: "Core Member", - }, - { - img: Swasti_Srivastava, - name: "Swasti Srivastava", - post: "Core Member", - }, - { - img: Manav_Raj, - name: "Manav Raj Singh", - post: "Core Member", - }, - { - img: Ashutosh_Jaiswal, - name: "Ashutosh Jaiswal", - post: "Core Member", - }, - { - img: Dhyanendra, - name: "Dhyaanendra Tripathi", - post: "Core Member", - }, - { - img: Swasti_Srivastava, - name: "Swasti Srivastava", - post: "Core Member", - }, - { - img: Manav_Raj, - name: "Manav Raj Singh", - post: "Core Member", - }, - { - img: Ashutosh_Jaiswal, - name: "Ashutosh Jaiswal", - post: "Core Member", - }, -]; diff --git a/pages/clubs/technical/ciphercell.tsx b/pages/clubs/technical/ciphercell.tsx index 7505b54..6607d6a 100644 --- a/pages/clubs/technical/ciphercell.tsx +++ b/pages/clubs/technical/ciphercell.tsx @@ -10,14 +10,7 @@ import cipherBgTop from "../../../assets/technical_clubs_bg/bg_cipher_top.svg"; import cipherBgBottom from "../../../assets/technical_clubs_bg/bg_cipher_bottom.svg"; import cipherLogo from "../../../assets/technical_clubs_bg/ciphercell_logo.png"; import { StaticImageData } from "next/image"; - -// import crew -import V_Jaswanth from "../../../assets/team_23-24/Vemula_Jashwanth.jpeg"; -import Alankrit from "../../../assets/team_23-24/Alankrit_Sharma.jpg" -import Shreyansh_Kushwaha from "../../../assets/team_23-24/Shreyansh_Kushwaha.jpg" -import Venkata_surya from "../../../assets/team_23-24/Venkata_Surya_Sundar_Vadali.jpg" -import Vishal_Sharma from "../../../assets/team_23-24/Vishal_Sharma.jpg" -import Priyanshu_shri from "../../../assets/team_23-24/Priyanshu_Srivastava.jpg" +import { ciphercell } from "../../../data/TechnicalClubCrew"; // import events import ctf1 from "../../../assets/club_event_pics/technical/ctf1.jpeg"; @@ -25,6 +18,48 @@ import ctf2 from "../../../assets/club_event_pics/technical/ctf2.jpeg"; import ctf3 from "../../../assets/club_event_pics/technical/ctf3.jpeg"; import ctf4 from "../../../assets/club_event_pics/technical/ctf4.jpeg"; +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Ciphercell" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + +const event1Name = earliestTwoEvents[0].eventName; +const event1Date = earliestTwoEvents[0].date; +const event1Desc = earliestTwoEvents[0].desc; +const event2Name = earliestTwoEvents[1].eventName; +const event2Date = earliestTwoEvents[1].date; +const event2Desc = earliestTwoEvents[1].desc; + const Ciphercell = () => { return ( <> @@ -35,12 +70,12 @@ const Ciphercell = () => { bgTop={cipherBgTop} logo={cipherLogo} color="#F7768E" - event1Name="Cryptic Hunt" - event1Date="February 19, 2023" - event1Desc="Introduction to Cryptography" - event2Name="CTF Workshop" - event2Date="April 2, 20233" - event2Desc="Workshop on Capture The Flag" + event1Name={event1Name} + event1Date={event1Date} + event1Desc={event1Desc} + event2Name={event2Name} + event2Date={event2Date} + event2Desc={event2Desc} /> CipherCell is an official cybersecurity club at IIIT-NR. The goal of @@ -66,7 +101,7 @@ const Ciphercell = () => { pb: 6, }} > - + @@ -76,51 +111,12 @@ const Ciphercell = () => { export default Ciphercell; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: V_Jaswanth, - name: "Jaswanth Vemula", - post: "Club Secretary", - }, - { - img: Alankrit, - name: "Alankrit Sharma", - post: "Vice Secretary", - }, - { - img:Priyanshu_shri , - name: "Priyanshi Srivastava", - post: "Core Member", - }, - { - img: Shreyansh_Kushwaha, - name: "Shreyansh Kushwaha", - post: "Core Member", - }, - { - img: Venkata_surya, - name: "Venkata Surya Sundar Vadali", - post: "Core Member", - }, - { - img: Vishal_Sharma, - name: "Vishal Sharma", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Intra College CTF", diff --git a/pages/clubs/technical/comet.tsx b/pages/clubs/technical/comet.tsx index 4526421..daaa2df 100644 --- a/pages/clubs/technical/comet.tsx +++ b/pages/clubs/technical/comet.tsx @@ -10,14 +10,7 @@ import cometBgTop from "../../../assets/technical_clubs_bg/bg_comet_top.svg"; import cometBgBottom from "../../../assets/technical_clubs_bg/bg_comet_bottom.svg"; import cometLogo from "../../../assets/technical_clubs_bg/comet_logo.png"; import { StaticImageData } from "next/image"; - -// import crew -import Ishita_Tegar from "../../../assets/team_23-24/Ishita_Tegar.jpg"; -import Umesh_Sinha from "../../../assets/team_23-24/Umesh_Sinha.jpg"; -import T_Srivedanarayana from "../../../assets/team_23-24/Male-member.jpeg"; -import Alankar_Saxena from "../../../assets/team_23-24/Alankar_Saxena.jpg"; -import Namita from "../../../assets/team_23-24/Namita_shah.jpg"; -import Krishna_Aggarwal from "../../../assets/team_23-24/Krishna_Agrawal.jpg"; +import { comet } from "../../../data/TechnicalClubCrew"; // import events import arduino1 from "../../../assets/club_event_pics/technical/arduino1.jpeg"; @@ -25,6 +18,48 @@ import arduino2 from "../../../assets/club_event_pics/technical/arduino2.jpeg"; import arduino3 from "../../../assets/club_event_pics/technical/arduino3.jpeg"; import arduino4 from "../../../assets/club_event_pics/technical/arduino4.jpeg"; +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Comet" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + +const event1Name = earliestTwoEvents[0].eventName; +const event1Date = earliestTwoEvents[0].date; +const event1Desc = earliestTwoEvents[0].desc; +const event2Name = earliestTwoEvents[1].eventName; +const event2Date = earliestTwoEvents[1].date; +const event2Desc = earliestTwoEvents[1].desc; + const Comet = () => { return ( <> @@ -35,14 +70,14 @@ const Comet = () => { bgTop={cometBgTop} logo={cometLogo} color="#FF9E64" - event1Name="Treasure Hunt" - event1Date="March 26, 2023" - event1Desc="Combined event of Comet and Inquizitive" - event2Name="Raspberry Pi Workshop" - event2Date="April 10, 2023" - event2Desc="Workshop on R-pi" + event1Name={event1Name} + event1Date={event1Date} + event1Desc={event1Desc} + event2Name={event2Name} + event2Date={event2Date} + event2Desc={event2Desc} /> - + The club was established in 2018 under the name CECoT (Community of electronics and communication techies) and was later renamed Community of Electronics. The club was founded by Harsh Singh, Akhil Kumar, @@ -63,7 +98,7 @@ const Comet = () => { pb: 6, }} > - + @@ -73,46 +108,12 @@ const Comet = () => { export default Comet; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Ishita_Tegar, - name: "Ishita Tegar", - post: "Club Secretary", - }, - { - img: Umesh_Sinha, - name: "Umesh Sinha", - post: "Vice Secretary", - }, - { - img: Alankar_Saxena, - name: "Alankar Saxena", - post: "Core Member", - }, - { - img: Namita, - name: "Namita Shah", - post: "Core Member", - }, - { - img: Krishna_Aggarwal, - name: "Krishna Aggarwal", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Arduino Workshop", diff --git a/pages/clubs/technical/iic.tsx b/pages/clubs/technical/iic.tsx index cf6e88a..8e4eee5 100644 --- a/pages/clubs/technical/iic.tsx +++ b/pages/clubs/technical/iic.tsx @@ -10,14 +10,7 @@ import IICBgTop from "../../../assets/technical_clubs_bg/bg_IIC_top.png"; import IICBgBottom from "../../../assets/technical_clubs_bg/bg_IIC_bottom.png"; import IICLogo from "../../../assets/technical_clubs_bg/IIC_logo.png"; import { StaticImageData } from "next/image"; - -// import crew -import Shivaibhav from "../../../assets/team_23-24/Shivaibhav_Dewangan.jpg"; -import Gaurish from "../../../assets/team_23-24/Gaurish_Ojha.jpg"; -import Dhyanendra from "../../../assets/team_23-24/Dhyanendra_Tripathi.jpg"; -import Swasti_Srivastava from "../../../assets/team_23-24/Swasti_Srivastava.jpeg"; -import Manav_Raj from "../../../assets/team_23-24/Manav_Raj_Singh.jpg"; -import Ashutosh_Jaiswal from "../../../assets/team_23-24/Ashutosh_Jaiswal.jpeg"; +import { iic } from "../../../data/TechnicalClubCrew"; // import events import bit1 from "../../../assets/club_event_pics/technical/bit1.jpeg"; @@ -31,6 +24,48 @@ import bit8 from "../../../assets/club_event_pics/technical/bit8.jpeg"; interface IICProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "IIC" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + +const event1Name = earliestTwoEvents[0].eventName; +const event1Date = earliestTwoEvents[0].date; +const event1Desc = earliestTwoEvents[0].desc; +const event2Name = earliestTwoEvents[1].eventName; +const event2Date = earliestTwoEvents[1].date; +const event2Desc = earliestTwoEvents[1].desc; + const IIC: FunctionComponent = () => { return ( <> @@ -41,12 +76,12 @@ const IIC: FunctionComponent = () => { bgTop={IICBgTop} logo={IICLogo} color={"#BEA000"} - event1Name="Speaker's talk" - event1Date="March 2024" - event1Desc="Talk by Experts" - event2Name="Field Visit" - event2Date="April 2024" - event2Desc="" + event1Name={event1Name} + event1Date={event1Date} + event1Desc={event1Desc} + event2Name={event2Name} + event2Date={event2Date} + event2Desc={event2Desc} /> Institution's Innovation Council (IIC) program is initiative of @@ -64,7 +99,7 @@ const IIC: FunctionComponent = () => { pb: 6, }} > - {/* + {/* */} @@ -74,70 +109,12 @@ const IIC: FunctionComponent = () => { export default IIC; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Shivaibhav, - name: "Shivaibhav Dewangan", - post: "Club Secretary", - }, - { - img: Gaurish, - name: "Gaurish Ojha", - post: "Vice Secretary", - }, - { - img: Dhyanendra, - name: "Dhyaanendra Tripathi", - post: "Core Member", - }, - { - img: Swasti_Srivastava, - name: "Swasti Srivastava", - post: "Core Member", - }, - { - img: Manav_Raj, - name: "Manav Raj Singh", - post: "Core Member", - }, - { - img: Ashutosh_Jaiswal, - name: "Ashutosh Jaiswal", - post: "Core Member", - }, - { - img: Dhyanendra, - name: "Dhyaanendra Tripathi", - post: "Core Member", - }, - { - img: Swasti_Srivastava, - name: "Swasti Srivastava", - post: "Core Member", - }, - { - img: Manav_Raj, - name: "Manav Raj Singh", - post: "Core Member", - }, - { - img: Ashutosh_Jaiswal, - name: "Ashutosh Jaiswal", - post: "Core Member", - }, -]; const gallery: GalleryProps[] = [ { name: "Bit-2-Byte", diff --git a/pages/clubs/technical/inquizitive.tsx b/pages/clubs/technical/inquizitive.tsx index d03dfbb..6793c45 100644 --- a/pages/clubs/technical/inquizitive.tsx +++ b/pages/clubs/technical/inquizitive.tsx @@ -10,14 +10,7 @@ import inquizitiveBgTop from "../../../assets/technical_clubs_bg/bg_inquizitive_ import inquizitiveBgBottom from "../../../assets/technical_clubs_bg/bg_inquizitive_bottom.svg"; import inquizitiveLogo from "../../../assets/technical_clubs_bg/inquizitive_logo.jpg"; import { StaticImageData } from "next/image"; - -// import crew -import Ayush_Yadav from "../../../assets/team_23-24/Ayush_Yadav.jpg"; -import Bhavik from "../../../assets/team_23-24/Male-member.jpeg"; -import Aniket_Pandey from "../../../assets/team_23-24/Aniket_Pandey.jpg"; -import Arman_Singh_Kshatri from "../../../assets/team_23-24/Male-member.jpeg"; -import Harsh_Shrivastava from "../../../assets/team_23-24/Harsh_Shrivastava.jpg"; -import Lokesh_Harmani from "../../../assets/team_23-24/Male-member.jpeg"; +import { inquizitive } from "../../../data/TechnicalClubCrew"; // import events import quiz1 from "../../../assets/club_event_pics/technical/quiz1.jpeg"; @@ -25,6 +18,48 @@ import quiz2 from "../../../assets/club_event_pics/technical/quiz2.jpeg"; import quiz3 from "../../../assets/club_event_pics/technical/quiz3.jpeg"; import quiz4 from "../../../assets/club_event_pics/technical/quiz4.jpeg"; +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const filteredEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "Inquizitive" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (filteredEvents.length >= 2) { + earliestTwoEvents = filteredEvents.slice(0, 2); +} else if (filteredEvents.length === 1) { + earliestTwoEvents = [ + ...filteredEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + +const event1Name = earliestTwoEvents[0].eventName; +const event1Date = earliestTwoEvents[0].date; +const event1Desc = earliestTwoEvents[0].desc; +const event2Name = earliestTwoEvents[1].eventName; +const event2Date = earliestTwoEvents[1].date; +const event2Desc = earliestTwoEvents[1].desc; + const Inquizitive = () => { return ( <> @@ -35,12 +70,12 @@ const Inquizitive = () => { bgTop={inquizitiveBgTop} logo={inquizitiveLogo} color="#BB9AF7" - event1Name="Fun Quiz" - event1Date="February 12, 2023" - event1Desc="Fun based quiz competition" - event2Name="Treasure Hunt" - event2Date="March 26, 2023" - event2Desc="Combined event of Inquizitive and Comet" + event1Name={event1Name} + event1Date={event1Date} + event1Desc={event1Desc} + event2Name={event2Name} + event2Date={event2Date} + event2Desc={event2Desc} /> True to its name, Inquisitive is the abode of the most curious minds @@ -63,7 +98,7 @@ const Inquizitive = () => { pb: 6, }} > - + @@ -73,51 +108,12 @@ const Inquizitive = () => { export default Inquizitive; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Ayush_Yadav, - name: "Ayush Yadav", - post: "Club Secretary", - }, - { - img: Bhavik, - name: "Bhavik Sachdev", - post: "Vice Secretary", - }, - { - img: Aniket_Pandey, - name: "Aniket Pandey", - post: "Core Member", - }, - { - img: Arman_Singh_Kshatri, - name: "Arman Singh Kshatri", - post: "Core Member", - }, - { - img: Harsh_Shrivastava, - name: "Harsh Shrivastava", - post: "Core Member", - }, - { - img: Lokesh_Harmani, - name: "Lokesh Hariramani", - post: "Core Member", - }, -]; - const gallery: GalleryProps[] = [ { name: "Quizadry", diff --git a/pages/clubs/technical/tsoc.tsx b/pages/clubs/technical/tsoc.tsx index d147309..c3aa59e 100644 --- a/pages/clubs/technical/tsoc.tsx +++ b/pages/clubs/technical/tsoc.tsx @@ -10,14 +10,7 @@ import tsocBgTop from "../../../assets/technical_clubs_bg/bg_tsoc_top.svg"; import tsocBgBottom from "../../../assets/technical_clubs_bg/bg_tsoc_bottom.svg"; import tsocLogo from "../../../assets/technical_clubs_bg/tsoc_logo.jpg"; import { StaticImageData } from "next/image"; - -// import crew -import Shivaibhav from "../../../assets/team_23-24/Shivaibhav_Dewangan.jpg"; -import Gaurish from "../../../assets/team_23-24/Gaurish_Ojha.jpg"; -import Dhyanendra from "../../../assets/team_23-24/Dhyanendra_Tripathi.jpg"; -import Swasti_Srivastava from "../../../assets/team_23-24/Swasti_Srivastava.jpeg"; -import Manav_Raj from "../../../assets/team_23-24/Manav_Raj_Singh.jpg"; -import Ashutosh_Jaiswal from "../../../assets/team_23-24/Ashutosh_Jaiswal.jpeg"; +import { tsoc } from "../../../data/TechnicalClubCrew"; // import events import bit1 from "../../../assets/club_event_pics/technical/bit1.jpeg"; @@ -31,6 +24,48 @@ import bit8 from "../../../assets/club_event_pics/technical/bit8.jpeg"; interface TSOCProps {} +import { calendarData } from "../../../data/EventCalendarData"; +interface CalendarDataProps { + date: string; + eventName: string; + club: string; + desc: string; +} +const today = new Date(); +const sortedEvents = calendarData.filter((event) => { + const [eventDay, eventMonth, eventYear] = event.date.split("-").map(Number); + const eventDate = new Date(eventYear, eventMonth - 1, eventDay); + + return ( + eventDate.getFullYear() >= today.getFullYear() && + (eventDate.getMonth() > today.getMonth() || + (eventDate.getMonth() === today.getMonth() && + eventDate.getDate() >= today.getDate())) && + event.club === "TSoC" + ); +}); +let earliestTwoEvents: CalendarDataProps[] = []; +if (sortedEvents.length >= 2) { + earliestTwoEvents = sortedEvents.slice(0, 2); +} else if (sortedEvents.length === 1) { + earliestTwoEvents = [ + ...sortedEvents, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} else { + earliestTwoEvents = [ + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + { date: "", eventName: "No Upcoming Event", club: "", desc: "" }, + ]; +} + +const event1Name = earliestTwoEvents[0].eventName; +const event1Date = earliestTwoEvents[0].date; +const event1Desc = earliestTwoEvents[0].desc; +const event2Name = earliestTwoEvents[1].eventName; +const event2Date = earliestTwoEvents[1].date; +const event2Desc = earliestTwoEvents[1].desc; + const TSOC: FunctionComponent = () => { return ( <> @@ -41,12 +76,12 @@ const TSOC: FunctionComponent = () => { bgTop={tsocBgTop} logo={tsocLogo} color={"#7AA2F7"} - event1Name="Des Code" - event1Date="03 Feb 2023" - event1Desc="Coding Challenge" - event2Name="Bit-2-Byte" - event2Date="18 March 2023" - event2Desc="Coding Challenge" + event1Name={event1Name} + event1Date={event1Date} + event1Desc={event1Desc} + event2Name={event2Name} + event2Date={event2Date} + event2Desc={event2Desc} /> The Society of Coders at IIIT-Naya Raipur is a student-run club that @@ -68,7 +103,7 @@ const TSOC: FunctionComponent = () => { pb: 6, }} > - + @@ -78,70 +113,12 @@ const TSOC: FunctionComponent = () => { export default TSOC; -interface CrewProps { - img: StaticImageData; - name: string; - post: string; -} - interface GalleryProps { name: string; img: StaticImageData[]; date: string; } -const crew: CrewProps[] = [ - { - img: Shivaibhav, - name: "Shivaibhav Dewangan", - post: "Club Secretary", - }, - { - img: Gaurish, - name: "Gaurish Ojha", - post: "Vice Secretary", - }, - { - img: Dhyanendra, - name: "Dhyaanendra Tripathi", - post: "Core Member", - }, - { - img: Swasti_Srivastava, - name: "Swasti Srivastava", - post: "Core Member", - }, - { - img: Manav_Raj, - name: "Manav Raj Singh", - post: "Core Member", - }, - { - img: Ashutosh_Jaiswal, - name: "Ashutosh Jaiswal", - post: "Core Member", - }, - { - img: Dhyanendra, - name: "Dhyaanendra Tripathi", - post: "Core Member", - }, - { - img: Swasti_Srivastava, - name: "Swasti Srivastava", - post: "Core Member", - }, - { - img: Manav_Raj, - name: "Manav Raj Singh", - post: "Core Member", - }, - { - img: Ashutosh_Jaiswal, - name: "Ashutosh Jaiswal", - post: "Core Member", - }, -]; const gallery: GalleryProps[] = [ { name: "Bit-2-Byte",