Skip to content

Commit

Permalink
Redesign/Refacoting go brr
Browse files Browse the repository at this point in the history
  • Loading branch information
varuogm committed May 17, 2024
1 parent fe94ad8 commit 68a1d9a
Show file tree
Hide file tree
Showing 13 changed files with 577 additions and 235 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
Empty file added src/common/Constants.js
Empty file.
57 changes: 57 additions & 0 deletions src/components/Accordion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import React from "react";
import {
Accordion,
AccordionItem,
AccordionButton,
AccordionPanel,
AccordionIcon,
Box,
Heading,
} from "@chakra-ui/react";

const AccordionComponent = () => {
return (
<Accordion defaultIndex={[0]} allowMultiple>
<Heading
mt="0"
mb="5"
size="2xl"
fontWeight="extrabold"
bgClip="text"
bgGradient="linear(to-r, yellow.500, pink.300, purple.500)"
>
FAQ
</Heading>
<AccordionItem>
<h2>
<AccordionButton>
<Box flex="1" textAlign="left">
Why it's useful
</Box>
<AccordionIcon />
</AccordionButton>
</h2>
<AccordionPanel pb={4}>
It gives you an overall insight of a person's GitHub profile in one
place
</AccordionPanel>
</AccordionItem>
<AccordionItem>
<h2>
<AccordionButton>
<Box flex="1" textAlign="left">
How are the points being calculated
</Box>
<AccordionIcon />
</AccordionButton>
</h2>
<AccordionPanel pb={4}>
There are various parameters keeping in mind calculating the most
accurate result. We are still working on more parameters.
</AccordionPanel>
</AccordionItem>
</Accordion>
);
};

export default AccordionComponent;
77 changes: 77 additions & 0 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import React from "react";
import {
Box,
Stack,
Center,
Image,
IconButton,
Text,
ButtonGroup,
} from "@chakra-ui/react";
import { FaTwitter, FaGithub, FaLinkedin, FaLink } from "react-icons/fa";

const Footer = () => {
return (
<Box
as="footer"
role="contentinfo"
mt="auto"
py="12"
px={{ base: "4", md: "8" }}
color="white"
>
<Stack spacing={8}>
<Center>
<Image
alignSelf="flex-center"
borderRadius="100px"
align="center"
justify="center"
boxSize="90px"
boxShadow="inner"
src="https://i.ibb.co/b29dG1G/JEo6-Jh-S1-400x400.jpg"
alt="gourav image"
/>
</Center>
<Stack direction="row" mt="5" align="center" justify="center">
<ButtonGroup boxShadow="inner">
<IconButton
boxShadow="inner"
onClick={() =>
window.open("https://twitter.com/Varougm", "_blank")
}
icon={<FaTwitter fontSize="30px" />}
/>
<IconButton
boxShadow="inner"
onClick={() =>
window.open("https://github.com/varuogm", "_blank")
}
icon={<FaGithub fontSize="30px" />}
/>
<IconButton
boxShadow="inner"
onClick={() =>
window.open(
"https://in.linkedin.com/in/gourav-majee-724b37188",
"_blank"
)
}
icon={<FaLinkedin fontSize="30px" />}
/>
<IconButton
boxShadow="inner"
onClick={() => window.open("https://varuog.xyz/", "_blank")}
icon={<FaLink fontSize="30px" />}
/>
</ButtonGroup>
</Stack>
<Stack direction="column" alignItems="center" mt="10">
<Text fontSize="sm">© 2024 Gourav Maje. All Rights Reserved.</Text>
</Stack>
</Stack>
</Box>
);
};

export default Footer;
45 changes: 45 additions & 0 deletions src/components/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React from "react";
import {
VStack,
IconButton,
Heading,
Text,
Skeleton,
useColorMode,
} from "@chakra-ui/react";

import { FaMoon } from "react-icons/fa";
import { FiZap } from "react-icons/fi";
import WelcomeHeaderComponent from "./atoms/WelcomeHeader";

const HeaderComponent = ({ toggleColorMode, colorMode }) => {
return (
<>
<VStack direction="0" p={4}>
<IconButton
icon={colorMode === "light" ? <FiZap /> : <FaMoon />}
isRound="true"
size="lg"
alignSelf="flex-end"
onClick={toggleColorMode}
boxShadow="inner"
p="6"
/>

<Heading mt="0" mb="5" size="2xl" fontWeight="extrabold" bgClip="text">
Welcome to Git-CAT
<br />
<Text ml={10} fontSize="m" fontWeight="bold" color="cyan.500">
Tells you about your github stats
</Text>
</Heading>

<br />
<Skeleton startColor="pink.500" endColor="orange.500" height="7px" />
</VStack>
<WelcomeHeaderComponent />
</>
);
};

export default HeaderComponent;
Loading

0 comments on commit 68a1d9a

Please sign in to comment.