Skip to content

Commit

Permalink
Timeline UI Fix and People Section Tabbed
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Sep 2, 2024
1 parent 080e768 commit 33819eb
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 33 deletions.
4 changes: 3 additions & 1 deletion frontend/components/AreaTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ const Card = ({
bg={useColorModeValue("gray.100", "gray.800")}
alignItems="center"
pos="relative"
borderRadius={type === "Model" ? undefined : 30}
borderRadius={30}
left={leftValue}
right={rightValue}
>
<Box>
<HStack mb={3}>
Expand Down
145 changes: 113 additions & 32 deletions frontend/src/app/people/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useEffect, useState } from "react";
import axios from "axios";
import PeopleSection from "../../../components/People";
import { Stack } from "@chakra-ui/react";
import { Stack, HStack, Button } from "@chakra-ui/react";
import { useQuery } from "react-query";
import { API_URL } from "../config";

Expand All @@ -16,8 +16,74 @@ const fetchMembers = async () => {
}
};

const renderSection = ({
members,
section,
}: {
members: Array<any>;
section: string;
}) => {
switch (section) {
case "fdr":
return (
<PeopleSection
heading="Visionaries Behind AI4Bharat: Meet Our Founders"
description="In the vanguard of AI innovation stands a collective of extraordinary minds—the founders of AI4Bharat. Their visionary leadership has been the cornerstone of our journey, shaping the organization into a driving force of technological advancement."
members={members}
team={"1"}
/>
);
case "rnd":
return (
<PeopleSection
heading="Meet Our Research & Development Team"
description="Our RnD Team at AI4Bharat is the driving force behind our mission. Comprising innovative engineers, data scientists, and developers, they create cutting-edge solutions and applications that empower Indian languages and advance AI. With unwavering passion and a commitment to excellence, they are the engine of AI4Bharat success."
members={members}
team={"2"}
/>
);
case "vr":
return (
<PeopleSection
heading="Distinguished Minds at AI4Bharat: Our Visiting Researchers"
description="Meet the brains behind the breakthroughs, the individuals who bring a wealth of experience and innovation to our collaborative ecosystem. From pioneering research methodologies to pushing the boundaries of AI applications, our visiting researchers are at the forefront of shaping the future."
members={members}
team={"3"}
/>
);
case "dl":
return (
<PeopleSection
heading="Meet Our Data Leads: Architects of Linguistic Precision"
description="Our Data Leads are the backbone of AI4Bharat linguistic innovations. These consummate professionals meticulously curate datasets, ensuring our language models comprehend human expression with unparalleled precision. Meet the professionals shaping the linguistic future at AI4Bharat, where dedication meets excellence."
members={members}
team={"4"}
/>
);
case "do":
return (
<PeopleSection
heading="Delivery and Operations"
description="Our operations team is the backbone of AI4Bharat, meticulously orchestrating the seamless functioning of projects. Their dedication to operational efficiency ensures that our AI initiatives not only meet but exceed expectations."
members={members}
team={"5"}
/>
);
case "al":
return (
<PeopleSection
heading="Alumni"
description=""
members={members}
team={"6"}
/>
);
}
};

export default function People() {
const [members, setMembers] = useState([]);
const [section, setSection] = useState("fdr");
const { isLoading, error, data } = useQuery("fetchMembers", fetchMembers);

useEffect(() => {
Expand All @@ -29,37 +95,52 @@ export default function People() {
}, [error, data, isLoading]);

return (
<Stack>
<PeopleSection
heading="Visionaries Behind AI4Bharat: Meet Our Founders"
description="In the vanguard of AI innovation stands a collective of extraordinary minds—the founders of AI4Bharat. Their visionary leadership has been the cornerstone of our journey, shaping the organization into a driving force of technological advancement."
members={members}
team={"1"}
/>
<PeopleSection
heading="Meet Our Research & Development Team"
description="Our RnD Team at AI4Bharat is the driving force behind our mission. Comprising innovative engineers, data scientists, and developers, they create cutting-edge solutions and applications that empower Indian languages and advance AI. With unwavering passion and a commitment to excellence, they are the engine of AI4Bharat success."
members={members}
team={"2"}
/>
<PeopleSection
heading="Distinguished Minds at AI4Bharat: Our Visiting Researchers"
description="Meet the brains behind the breakthroughs, the individuals who bring a wealth of experience and innovation to our collaborative ecosystem. From pioneering research methodologies to pushing the boundaries of AI applications, our visiting researchers are at the forefront of shaping the future."
members={members}
team={"3"}
/>
<PeopleSection
heading="Meet Our Data Leads: Architects of Linguistic Precision"
description="Our Data Leads are the backbone of AI4Bharat linguistic innovations. These consummate professionals meticulously curate datasets, ensuring our language models comprehend human expression with unparalleled precision. Meet the professionals shaping the linguistic future at AI4Bharat, where dedication meets excellence."
members={members}
team={"4"}
/>
<PeopleSection
heading="Delivery and Operations"
description="Our operations team is the backbone of AI4Bharat, meticulously orchestrating the seamless functioning of projects. Their dedication to operational efficiency ensures that our AI initiatives not only meet but exceed expectations."
members={members}
team={"5"}
/>
<Stack alignItems={"center"}>
<HStack p={5}>
<Button
onClick={(event) => setSection("fdr")}
value={"fdr"}
colorScheme="orange"
>
Founders
</Button>
<Button
onClick={(event) => setSection("rnd")}
value={"rnd"}
colorScheme="orange"
>
Research and Development
</Button>
<Button
onClick={(event) => setSection("vr")}
value={"vr"}
colorScheme="orange"
>
Visiting Researchers
</Button>
<Button
onClick={(event) => setSection("dl")}
value={"dl"}
colorScheme="orange"
>
Data Leads
</Button>
<Button
onClick={(event) => setSection("do")}
value={"do"}
colorScheme="orange"
>
Delivery and Operations
</Button>
<Button
onClick={(event) => setSection("al")}
value={"al"}
colorScheme="orange"
>
Alumni
</Button>
</HStack>
{renderSection({ members, section })}
</Stack>
);
}

0 comments on commit 33819eb

Please sign in to comment.