Skip to content

Commit

Permalink
Add gatsby-plugin-csp and update tag styling
Browse files Browse the repository at this point in the history
  • Loading branch information
saipraveenkondapalli committed Jan 25, 2024
1 parent 1a07f27 commit ea48522
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 9 deletions.
29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@emotion/styled": "^11.11.0",
"framer-motion": "^10.18.0",
"gatsby": "^5.13.1",
"gatsby-plugin-csp": "^1.1.4",
"gatsby-plugin-image": "^3.13.0",
"gatsby-plugin-manifest": "^5.13.0",
"gatsby-plugin-minify": "^0.5.0",
Expand All @@ -37,7 +38,7 @@
"license": "0BSD",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop -p 1801",
"develop": "gatsby develop -p 1801 -H 0.0.0.0",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,css}\"",
"start": "gatsby develop",
"serve": "gatsby serve",
Expand Down
14 changes: 8 additions & 6 deletions src/components/CompanyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,17 @@ const CompanyCard: React.FC<ICompanyCard> = ({ company, colorMode }) => {
isInline
display={["flex", "flex", "flex", "flex"]}
>
{company.skills.map((skill) => (
<Tag size="sm" padding="0 5px" key={skill}>
{skill}
</Tag>
))}
<Flex flexWrap="wrap">
{company.skills.map((skill, index) => (
<Tag key={index} size="sm" mx={1} my={1} borderRadius="5px">
{skill}
</Tag>
))}
</Flex>
</Stack>
</Stack>
</Flex>
<Stack display={["none", "none", "flex", "flex"]}>
<Stack display={"flex"}>
<Text fontSize={14} color={`mode.${colorMode}.career.subtext`}>
{company.period}
</Text>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SideProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const SideProjectCard: React.FC<ISideProjectCard> = ({ project }) => {
maxH={"210px"}
h={"210px"}
w="full"
alt={project.alt}/>
alt={project.alt} />
</Box>
<Stack mb={3}>
<Text
Expand All @@ -53,7 +53,7 @@ export const SideProjectCard: React.FC<ISideProjectCard> = ({ project }) => {
{project.tech.map((tech, index) => {
const techStack = allTechStacks.find(stack => stack.name === tech);
return (
<Tag size="sm" padding="10px" key={index} mx={1}>
<Tag size="sm" padding="10px" key={index} mb={2} mx={1}>
{techStack ? <Circle size="30px">{techStack.icon}</Circle> : tech}
</Tag>
);
Expand Down

0 comments on commit ea48522

Please sign in to comment.