Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/app/components/Mentors/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const Mentors_value: Mentors[] = [
},
{
name: "Avinash Mishra",
position: "Senior Software Engineer",
position: "Lead 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"
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const Navbar = () => {
</div>

<Link href="/organizers" className="hover:text-secondary text-2xl">
{/* Organizers */}
Organizers
</Link>

{/* <Link href="/legacy" className="hover:text-secondary text-2xl">
Expand Down Expand Up @@ -223,7 +223,7 @@ const Navbar = () => {
</div>

<Link href="/organizers" className={`hover:text-secondary text-base ${cabinetBold.className}`}>
{/* Organizers */}
Organizers
</Link>

{/* <Link href="/legacy" className={`hover:text-secondary text-base ${cabinetBold.className}`}>
Expand Down
71 changes: 22 additions & 49 deletions frontend/src/app/sections/Organizers/Organizers.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { ReactElement } from "react";
import getData from "./fetchTeams";
import Team from "@/app/types/team";
import Image from "next/image";
// app/components/Organizers.tsx

import teamsData from "./team_data"; // ⬅️ Now from static file
import UserCard from "@/app/components/core/UserCard";
import { cabinetBold, cabinetExtraBold, cabinetBlack } from "@/app/utils/fonts";
import { cabinetExtraBold } from "@/app/utils/fonts";
import VolunteerSection from "../Volunteers/VolunteerSection";

export default async function Organizers() {
const teams: Array<Team> = await getData();
export default function Organizers() {
const teams = teamsData;

return (
<div className="pb-9 flex flex-col items-center">
Expand All @@ -16,57 +15,31 @@ export default async function Organizers() {
>
Meet The Organizers
</h1>
{teams.map((team: Team, key = team.id) => (

{teams.map((team) => (
<div
className="text-white mt-20 flex flex-col justify-center w-[100%] md:w-[85%] lg:w-[70%] xl2:w-[55%]"
key={key}
key={team.id}
>
<h1
className={`headings ${cabinetExtraBold.className} text-3xl mb-10`}
>
<h1 className={`headings ${cabinetExtraBold.className} text-3xl mb-10`}>
{team.name}
</h1>
<div className="">
{team.organizers.length === 2 ? (
<div className="flex justify-center flex-wrap items-center gap-8 mb-20">
{team.organizers.map((organizer, index) => (
<UserCard
key={index}
image={organizer.image}
linkedin_url={organizer.linkedin_url}
name={organizer.name}
/>
))}
</div>
) : (
<div className="flex flex-wrap justify-center items-center align-middle gap-8">
{team.organizers.map((organizer, index) =>
index == 0 ? (
<div className="w-full" key={index}>
<UserCard
image={organizer.image}
linkedin_url={organizer.linkedin_url}
name={organizer.name}
/>
</div>
) : (
<UserCard
key={index}
image={organizer.image}
linkedin_url={organizer.linkedin_url}
name={organizer.name}
/>
),
)}

<div className="flex flex-wrap justify-center items-center gap-8 mb-20">
{team.organizers.map((organizer, index) => (
<div key={index} className={team.organizers.length === 1 ? "w-full" : ""}>
<UserCard
image={organizer.image}
linkedin_url={organizer.linkedin_url}
name={organizer.name}
/>
</div>
)}
))}
</div>
</div>
))}
<div
key="volunteers"
className="flex justify-center items-center flex-col mt-20"
>

<div className="flex justify-center items-center flex-col mt-20">
<h1 className={`headings ${cabinetExtraBold.className} text-3xl`}>
Volunteers
</h1>
Expand Down
59 changes: 0 additions & 59 deletions frontend/src/app/sections/Organizers/fetchTeams.ts

This file was deleted.

204 changes: 204 additions & 0 deletions frontend/src/app/sections/Organizers/team_data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
// app/lib/data.ts

import Team from "@/app/types/team";

const teamsData: Array<Team> = [
{
id: 1,
name: "Event Co-leads",
organizers: [
{
id: 101,
name: "Dipan Silwal",
image: "https://ghostuf.github.io/static_images/oc/dipan_silwal.jpg",
linkedin_url: "https://www.linkedin.com/in/dipansilwal/",
position: "Event Co-lead",
},
{
id: 102,
name: "Pragalva Sapkota",
image: "https://ghostuf.github.io/static_images/oc/pragalva_sapkota.jpg",
linkedin_url: "https://www.linkedin.com/in/pragalva-sapkota/",
position: "Event Co-lead",
},
],
},
{
id: 2,
name: "Technical Team",
organizers: [
{
id: 201,
name: "Srijan Dahal",
image: "https://ghostuf.github.io/static_images/oc/srijan_dahal.jpg",
linkedin_url: "https://www.linkedin.com/in/srijan-dahal-b532aa26b/",
position: "Technical Team",
},
{
id: 202,
name: "Suprit Phuyal",
image: "https://ghostuf.github.io/static_images/oc/suprit_phuyal.jpg",
linkedin_url: "https://www.linkedin.com/in/suprit-phuyal-225a7a2a7/",
position: "Technical Team",
},
],
},
{
id: 3,
name: "Design Team",
organizers: [
{
id: 301,
name: "Parth Poudyal",
image: "https://ghostuf.github.io/static_images/oc/parth_poudyal.jpg",
linkedin_url: "https://www.linkedin.com/in/parth-poudyal-79a56b2b9/",
position: "Design Team",
},
{
id: 302,
name: "Paruhangma Limbu",
image: "https://ghostuf.github.io/static_images/oc/paruhangma_limbu.jpg",
linkedin_url: "https://www.linkedin.com/in/paruhangmalimbu",
position: "Design Team",
},
{
id: 303,
name: "Aashish Sapkota",
image: "https://ghostuf.github.io/static_images/oc/aashish_sapkota.png",
linkedin_url: "https://www.linkedin.com/in/aashish-sapkota-aa66a22a7/",
position: "Design Team",

}
],
},
{
id: 4,
name: "Judges and Mentor Coordinator",
organizers: [
{
id: 401,
name: "Yashaswi Shiwakoti",
image: "https://ghostuf.github.io/static_images/oc/yashaswi_shiwakoti.png",
linkedin_url: "https://www.linkedin.com/in/yashaswi-shiwakoti-09a6012a2/",
position: "Judges and Mentor Coordinator",
},
{
id: 402,
name: "Sakshi Sapkota",
image: "https://ghostuf.github.io/static_images/oc/sakshi_sapkota.PNG",
linkedin_url: "https://www.linkedin.com/in/sakshi-sapkota-316647328/",
position: "Judges and Mentor Coordinator",
},
],
},
{
id: 5,
name: "PR and Social Media",
organizers: [
{
id: 501,
name: "Ishan Shrestha",
image: "https://ghostuf.github.io/static_images/oc/ishan_shrestha.jpg",
linkedin_url: "https://www.linkedin.com/in/ishan-shrestha-5635b42b1/",
position: "PR and Social Media",
},
{
id: 502,
name: "Sukriti Pyakurel",
image: "https://ghostuf.github.io/static_images/oc/sukriti_pyakurel.jpg",
linkedin_url: "https://www.linkedin.com/in/sukriti-pyakurel-05b0132ba/",
position: "PR and Social Media",
},
],
},
{
id: 6,
name: "Logistics",
organizers: [
{
id: 601,
name: "Prajwol Bohara",
image: "https://ghostuf.github.io/static_images/oc/prajwol_bohara.jpeg",
linkedin_url: "https://www.linkedin.com/in/prajwol-bohara-132aab2b1/",
position: "Logistics",
},
{
id: 602,
name: "Rupesh Thapa",
image: "https://ghostuf.github.io/static_images/oc/rupesh_thapa.jpg",
linkedin_url: "",
position: "Logistics",
},
{
id: 603,
name: "Shivank Poudel",
image: "https://ghostuf.github.io/static_images/oc/shivank_poudel.jpg",
linkedin_url: "https://www.linkedin.com/in/shivank-poudel-6a8677263/",
position: "Logistics",
},
{
id: 604,
name: "Kaustuv Shrestha",
image: "https://ghostuf.github.io/static_images/oc/kaustuv_shrestha.jpeg",
linkedin_url: "https://www.linkedin.com/in/kaustuv-shrestha-42b3482a8",
position: "Logistics",
},
],
},
{
id: 7,
name: "Documentation",
organizers: [
{
id: 701,
name: "Anbit Bhattrai",
image: "https://ghostuf.github.io/static_images/oc/anbit_bhattrai.png",
linkedin_url: "https://www.linkedin.com/in/anbit-bhattarai-518377370/",
position: "Documentation",
},
],
},
{
id: 8,
name: "Outreach Team",
organizers: [
{
id: 801,
name: "Pranil Parsai",
image: "https://ghostuf.github.io/static_images/oc/pranil_parsai.jpg",
linkedin_url: "www.linkedin.com/in/pranil-prasai-98b72a2b3",
position: "Outreach Team",
},
{
id: 802,
name: "Abhinav Bista",
image: "https://ghostuf.github.io/static_images/oc/abhinav_bista.jpeg",
linkedin_url: "http://linkedin.com/in/abhinav-bista-21ba7b2a7",
position: "Outreach Team",
},
{
id: 803,
name: "Arunesh Manandhar",
image: "https://ghostuf.github.io/static_images/oc/arunesh_manandhar.jpg",
linkedin_url: "https://www.linkedin.com/in/arunesh-manandhar-5bb207362/",
position: "Outreach Team",
},
{
id: 804,
name: "Sampriya Bista",
image: "https://ghostuf.github.io/static_images/oc/sampriya_bista.png",
linkedin_url: "",
position: "Outreach Team",
},
{
id: 805,
name: "Samyam Khadka",
image: "https://ghostuf.github.io/static_images/oc/samyam_khadka.png",
linkedin_url: "https://www.linkedin.com/in/samyam-khadka-0361b62a6/",
position: "Outreach Team",
},
],
},
];

export default teamsData;
Loading
Loading