Skip to content

Commit

Permalink
added changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubelux committed Oct 31, 2023
1 parent 55ab2ca commit ced60d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/HomeParts/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { rgba, LayoutContext, titleCase } from '@lib'
import { typography, palette, breakpoint } from '@theme'
import { RankAndArtifactCount, DonationBox } from '@components'
import { IProjectFragment } from '@types'
import { truncate } from 'lodash'
import Link from 'next/link'

interface IProjectCard {
Expand All @@ -24,6 +25,12 @@ const ProjectCard = ({ seasonIsActive, project, index, totalSales, matchFundPool

const count = arrayOfOpenEdtionClean.reduce((x: any, edition: any) => x + edition.copies!, 0) || 0

const logLineTruncated =
project.title && project.title?.length > 39 ? truncate(project.logline, { length: 92 }) : project.logline

//> 39
// cut second line to 92 characters

return (
<Wrapper>
<Header>
Expand All @@ -41,7 +48,7 @@ const ProjectCard = ({ seasonIsActive, project, index, totalSales, matchFundPool
<Link href={`/project/${project.titleURL!}`}>
<h2>{project.title && titleCase(project.title)}</h2>
</Link>
<p>{project.logline}</p>
<p>{logLineTruncated}</p>
</Copy>
</AllCopy>
<ImageWrapper>
Expand Down

0 comments on commit ced60d8

Please sign in to comment.