From f0d63b3dcfd6fb473c1726406efb3763cb2e9909 Mon Sep 17 00:00:00 2001 From: iloveginger Date: Fri, 4 Jul 2025 23:27:45 +0545 Subject: [PATCH 1/2] Fix: Mentors card text fixed --- frontend/src/app/components/Mentors/data.ts | 18 ++- .../src/app/sections/Organizers/fetchTeams.ts | 118 +++++++++--------- 2 files changed, 71 insertions(+), 65 deletions(-) diff --git a/frontend/src/app/components/Mentors/data.ts b/frontend/src/app/components/Mentors/data.ts index 5821140..b5dfd41 100644 --- a/frontend/src/app/components/Mentors/data.ts +++ b/frontend/src/app/components/Mentors/data.ts @@ -54,7 +54,7 @@ const Mentors_value: Mentors[] = [ }, { name: "Mala Deep Upadhaya", - position: "Data Consultant - Dataksha Analytics", + position: "Data Consultant", linkedin_url: "https://www.linkedin.com/in/maladeep", image: "https://ghostuf.github.io/static_images/mala_deep_upadhyaya.jpg" }, @@ -66,7 +66,7 @@ const Mentors_value: Mentors[] = [ // }, { name: "Yashaswee Sakha", - position: "UI/UX Engineer, Deerhold Ltd.", + position: "UI/UX Engineer", linkedin_url: "https://www.linkedin.com/in/yashaswee-sakha/", image: "https://ghostuf.github.io/static_images/yashaswee_sakha.jpg" }, @@ -78,19 +78,19 @@ const Mentors_value: Mentors[] = [ }, { name: "Sushan Shakya", - position: "Full Stack Developer - RIMES", - linkedin_url: "https://www.linkedin.com/in/sushan-shakya-8953711a6/", + position: "Data Engineer", + linkedin_url: "https://www.linkedin.com/in/er-sushan-shakya-88b78b17b/", image: "https://ghostuf.github.io/static_images/sushan_shakya.jpg" }, { name: "Prashant Malla", - position: "Embedded System Engineer - Truenary Solutions", + position: "Embedded System Engineer", linkedin_url: "https://www.linkedin.com/in/prashant-malla-139339b2", image: "https://ghostuf.github.io/static_images/prashant_malla.jpg" }, { name: "Saru Manandhar", - position: "Software Engineer - Leapfrog Technology", + position: "Software Engineer", linkedin_url: "https://www.linkedin.com/in/saru-manandhar-71222614a", image: "https://ghostuf.github.io/static_images/saru_manandhar.jpg" }, @@ -106,6 +106,12 @@ const Mentors_value: Mentors[] = [ linkedin_url: "https://www.linkedin.com/in/rojanupreti/", // No LinkedIn URL provided image: "https://ghostuf.github.io/static_images/rojan_upreti.jpg" }, + { + name: "Avinash Mishra", + position: "Senior Software Engineer", + linkedin_url: "https://www.linkedin.com/in/avinash-mishra-np/", // No LinkedIn URL provided + image: "https://ghostuf.github.io/static_images/avinash_mishra.png" + }, ] export { Mentors_value } \ No newline at end of file diff --git a/frontend/src/app/sections/Organizers/fetchTeams.ts b/frontend/src/app/sections/Organizers/fetchTeams.ts index ea969aa..022efdd 100644 --- a/frontend/src/app/sections/Organizers/fetchTeams.ts +++ b/frontend/src/app/sections/Organizers/fetchTeams.ts @@ -1,59 +1,59 @@ -import UserEntity from "@/app/types/userentity"; -import { BACKEND_URL, SERVER_URL } from "@/app/utils/config"; - -import Team from "@/app/types/team"; - -function transformData(data: any): Array { - let teams: Array = []; - - for (let team of data.data) { - let member: UserEntity = { - name: "", - image: "", - linkedin_url: "", - position: "", - }; - - const members: Array = []; - - for (let value of team.attributes.organizers.data) { - member = { - id: value.attributes.id, - name: value.attributes.name, - image: SERVER_URL + value.attributes.image.data.attributes.url, - linkedin_url: value.attributes.linkedin_url, - position: "", - }; - members.push(member); - } - - let teamInstance: Team = { - id: team.id, - name: team.attributes.name, - organizers: members, - }; - - teams.push(teamInstance); - } - return teams; -} - -async function getData() { - try { - const res = await fetch( - "http://localhost:1337/api/teams?populate=organizers&populate=organizers.image&sort=order:asc", - { cache: "no-store" }, - ); - if (!res.ok) { - throw new Error("Cannot Fetch Data"); - } - const data = await res.json(); - const teams = transformData(data); - return teams; - } catch (error: any) { - console.log("Error", error.message); - return []; - } -} - -export default getData; +// import UserEntity from "@/app/types/userentity"; +// import { BACKEND_URL, SERVER_URL } from "@/app/utils/config"; + +// import Team from "@/app/types/team"; + +// function transformData(data: any): Array { +// let teams: Array = []; + +// for (let team of data.data) { +// let member: UserEntity = { +// name: "", +// image: "", +// linkedin_url: "", +// position: "", +// }; + +// const members: Array = []; + +// for (let value of team.attributes.organizers.data) { +// member = { +// id: value.attributes.id, +// name: value.attributes.name, +// image: SERVER_URL + value.attributes.image.data.attributes.url, +// linkedin_url: value.attributes.linkedin_url, +// position: "", +// }; +// members.push(member); +// } + +// let teamInstance: Team = { +// id: team.id, +// name: team.attributes.name, +// organizers: members, +// }; + +// teams.push(teamInstance); +// } +// return teams; +// } + +// async function getData() { +// try { +// const res = await fetch( +// "http://localhost:1337/api/teams?populate=organizers&populate=organizers.image&sort=order:asc", +// { cache: "no-store" }, +// ); +// if (!res.ok) { +// throw new Error("Cannot Fetch Data"); +// } +// const data = await res.json(); +// const teams = transformData(data); +// return teams; +// } catch (error: any) { +// console.log("Error", error.message); +// return []; +// } +// } + +// export default getData; From 0ac468a68a3a15690a4e4909a487339be5aa323e Mon Sep 17 00:00:00 2001 From: iloveginger Date: Fri, 4 Jul 2025 23:56:19 +0545 Subject: [PATCH 2/2] Fix: Mentors card Text fixed --- .../src/app/sections/Organizers/fetchTeams.ts | 118 +++++++++--------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/frontend/src/app/sections/Organizers/fetchTeams.ts b/frontend/src/app/sections/Organizers/fetchTeams.ts index 022efdd..ea969aa 100644 --- a/frontend/src/app/sections/Organizers/fetchTeams.ts +++ b/frontend/src/app/sections/Organizers/fetchTeams.ts @@ -1,59 +1,59 @@ -// import UserEntity from "@/app/types/userentity"; -// import { BACKEND_URL, SERVER_URL } from "@/app/utils/config"; - -// import Team from "@/app/types/team"; - -// function transformData(data: any): Array { -// let teams: Array = []; - -// for (let team of data.data) { -// let member: UserEntity = { -// name: "", -// image: "", -// linkedin_url: "", -// position: "", -// }; - -// const members: Array = []; - -// for (let value of team.attributes.organizers.data) { -// member = { -// id: value.attributes.id, -// name: value.attributes.name, -// image: SERVER_URL + value.attributes.image.data.attributes.url, -// linkedin_url: value.attributes.linkedin_url, -// position: "", -// }; -// members.push(member); -// } - -// let teamInstance: Team = { -// id: team.id, -// name: team.attributes.name, -// organizers: members, -// }; - -// teams.push(teamInstance); -// } -// return teams; -// } - -// async function getData() { -// try { -// const res = await fetch( -// "http://localhost:1337/api/teams?populate=organizers&populate=organizers.image&sort=order:asc", -// { cache: "no-store" }, -// ); -// if (!res.ok) { -// throw new Error("Cannot Fetch Data"); -// } -// const data = await res.json(); -// const teams = transformData(data); -// return teams; -// } catch (error: any) { -// console.log("Error", error.message); -// return []; -// } -// } - -// export default getData; +import UserEntity from "@/app/types/userentity"; +import { BACKEND_URL, SERVER_URL } from "@/app/utils/config"; + +import Team from "@/app/types/team"; + +function transformData(data: any): Array { + let teams: Array = []; + + for (let team of data.data) { + let member: UserEntity = { + name: "", + image: "", + linkedin_url: "", + position: "", + }; + + const members: Array = []; + + for (let value of team.attributes.organizers.data) { + member = { + id: value.attributes.id, + name: value.attributes.name, + image: SERVER_URL + value.attributes.image.data.attributes.url, + linkedin_url: value.attributes.linkedin_url, + position: "", + }; + members.push(member); + } + + let teamInstance: Team = { + id: team.id, + name: team.attributes.name, + organizers: members, + }; + + teams.push(teamInstance); + } + return teams; +} + +async function getData() { + try { + const res = await fetch( + "http://localhost:1337/api/teams?populate=organizers&populate=organizers.image&sort=order:asc", + { cache: "no-store" }, + ); + if (!res.ok) { + throw new Error("Cannot Fetch Data"); + } + const data = await res.json(); + const teams = transformData(data); + return teams; + } catch (error: any) { + console.log("Error", error.message); + return []; + } +} + +export default getData;