react-icons/fa#FaGraduationCap TypeScript Examples
The following examples show how to use
react-icons/fa#FaGraduationCap.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: about.tsx From portfolio with MIT License | 5 votes |
About = () => {
const { colorMode } = useColorMode();
return (
<PageSlideFade>
<StaggerChildren>
<MotionBox>
<Heading>
<Flex alignItems="center">
<Header underlineColor={TURQUOISE} mt={0} mb={0}>
Career
</Header>
<Stack pl={3}>
<Box as={BsFillBriefcaseFill} size="25px" />
</Stack>
</Flex>
</Heading>
</MotionBox>
<VStack spacing={4} marginBottom={6} align="left" mx={[0, 0, 6]} mt={12}>
{companies.map((company, index) => (
<MotionBox whileHover={{ y: -5 }} key={index}>
<Card
key={index}
title={company.title}
role={company.role}
skills={company.skills}
period={company.period}
logo={company.logo}
colorMode={colorMode}
/>
</MotionBox>
))}
</VStack>
<Heading>
<Flex alignItems="center">
<Header underlineColor={TURQUOISE} mt={0} mb={0}>
Education
</Header>
<Stack pl={3}>
<Box as={FaGraduationCap} size="25px" />
</Stack>
</Flex>
</Heading>
<VStack spacing={4} marginBottom={6} align="left" mx={[0, 0, 6]} mt={12}>
{institutes.map((institute, index) => (
<MotionBox whileHover={{ y: -5 }} key={index}>
<Card
key={index}
title={institute.title}
role={institute.role}
skills={institute.skills}
period={institute.period}
logo={institute.logo}
colorMode={colorMode}
/>
</MotionBox>
))}
</VStack>
</StaggerChildren>
</PageSlideFade>
);
}
Example #2
Source File: my-story.tsx From portfolio with MIT License | 4 votes |
MyStory = () => {
return (
<VStack>
<Section mb={14}>
<PageSlideFade>
<VStack>
<Header mt={0} mb={1}>
Developer Story
</Header>
{/* <Text
fontSize={"xl"}
color={useColorModeValue("gray.500", "gray.200")}
maxW="lg"
textAlign="center"
>
This page tells you my story in timeline shape.
</Text> */}
</VStack>
</PageSlideFade>
</Section>
<VStack textAlign="start" align="flex-start" mb={0}>
<Box>
<StoryTimeline year={"2021"} index={0} />
{companies.map((company, index) => (
<StoryTimeline
icon={BsFillBriefcaseFill}
index={index}
>
{" "}
<HStack>
<Image
rounded="full"
w={[6, 8]}
h={[6, 8]}
objectFit="cover"
fallbackSrc={placeholder}
src={company.logo}
alt={company.alt}
/>
<VStack align="start">
<Heading
fontSize={[12, 13, 15]}
lineHeight="shorter"
fontWeight="bold"
>
<Box>{company.title}</Box>
<Box mt={1}>{company.period}</Box>
</Heading>
</VStack>
</HStack>
<Divider my={2} />
<Text fontSize={[12, 13, 15]}>{company.role}</Text>
</StoryTimeline>
))}
<StoryTimeline year={"2017"} index={0} />
{institutes.map((institute, index) => (
<>
<StoryTimeline
icon={FaGraduationCap}
index={index > 0 ? index + 1 : index}
>
{" "}
<HStack>
<Image
rounded="full"
w={[6, 8]}
h={[6, 8]}
objectFit="cover"
fallbackSrc={placeholder}
src={institute.logo}
alt={institute.alt}
/>
<VStack align="start">
<Heading
fontSize={[12, 13, 15]}
lineHeight="shorter"
fontWeight="bold"
>
<Box>{institute.short_title}</Box>
<Box mt={1}>{institute.period}</Box>
</Heading>
</VStack>
</HStack>
<Divider my={2} />
<Text fontSize={[12, 13, 15]}>{institute.role}</Text>
</StoryTimeline>
{institute.awards &&
institute.awards.map((award, index1) => (
<StoryTimeline icon={FaAward} index={index1 + index + 1}>
{" "}
<HStack>
<IconButton
colorScheme="blue"
rounded="full"
size="sm"
aria-label="medal"
icon={<FaMedal />}
/>
<VStack align="start">
<Heading
fontSize={[12, 13, 15]}
lineHeight="shorter"
fontWeight="bold"
>
<Box>{award.title}</Box>
<Box mt={1}>{award.date}</Box>
</Heading>
</VStack>
</HStack>
<Divider my={2} />
<Text fontSize={[12, 13, 15]}>{award.description}</Text>
</StoryTimeline>
))}
<StoryTimeline
year={institute.startingYear}
index={0}
skipTrail={index === institutes.length - 1 ? true : false}
/>
</>
))}
</Box>
</VStack>
</VStack>
);
}