Skip to content

Commit

Permalink
fix: projectinfo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KrustyC committed Feb 5, 2024
1 parent 92d89f0 commit 38fcbc5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-codegen/typescript": "^4.0.1",
"@types/node": "^20.11.13",
"@types/react": "^18.2.52",
"@types/react": "^18.2.53",
"@types/react-dom": "^18.2.18",
"autoprefixer": "^10.4.17",
"eslint": "^8.56.0",
Expand Down
29 changes: 17 additions & 12 deletions src/components/Project/Block/ProjectInfoBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,24 @@ export const ProjectInfoBlock: React.FC<ProjectInfoBlockProps> = ({
>
{block.title}
</motion.h1>
<motion.span
className="text-lg lg:text-xl font-light text-[#8C8C8C] mb-6 leading-snug"
variants={variants}
>
{block.subtitle}
</motion.span>

<motion.div
className="text-lg lg:text-xl font-light mb-8"
variants={variants}
>
<RichText richtext={block.description} />
</motion.div>
{block.subtitle && (
<motion.span
className="text-lg lg:text-xl font-light text-[#8C8C8C] mb-6 leading-snug"
variants={variants}
>
{block.subtitle}
</motion.span>
)}

{block.description && (
<motion.div
className="text-lg lg:text-xl font-light mb-8"
variants={variants}
>
<RichText richtext={block.description} />
</motion.div>
)}

{block.info.team && <Line title="Team" value={block.info.team} />}

Expand Down

0 comments on commit 38fcbc5

Please sign in to comment.