Skip to content

Commit

Permalink
Dataset Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Sep 9, 2024
1 parent fe955b1 commit f34bb21
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions frontend/components/Datasets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ import {
} from "react-icons/fa";

const datasetIcons: { [key: string]: React.ReactElement } = {
nmt: <FaLanguage color="orange" size={35} />,
llm: <FaFileAlt color="orange" size={35} />,
asr: <FaMicrophone color="orange" size={35} />,
tts: <FaVolumeUp color="orange" size={35} />,
xlit: <FaKeyboard color="orange" size={35} />,
nmt: <FaLanguage color="orange" size={20} />,
llm: <FaFileAlt color="orange" size={20} />,
asr: <FaMicrophone color="orange" size={20} />,
tts: <FaVolumeUp color="orange" size={20} />,
xlit: <FaKeyboard color="orange" size={20} />,
};

interface FeatureProps {
Expand Down Expand Up @@ -68,6 +68,14 @@ interface Dataset {
const Feature = ({ title, icon, dataset_link }: FeatureProps) => {
return (
<HStack as={Link} href={dataset_link}>
<Flex
align={"center"}
justify={"center"}
color={"white"}
rounded={"full"}
>
{datasetIcons[icon]}
</Flex>
<Text fontWeight={600}>{title}</Text>
</HStack>
);
Expand Down

0 comments on commit f34bb21

Please sign in to comment.