Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions components/CaseStudyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ export default function CaseStudyCard({ studies = [] }: ICaseStudyCardProps) {
}

return (
<div className='flex flex-wrap pt-10 lg:grid lg:grid-cols-3 lg:gap-8 lg:text-center'>
{studies.map((study, index) => (
<a key={index} href={`casestudies/${study.id}`}>
<div
className='max-w-sm overflow-hidden rounded-md border border-gray-200 bg-white p-4'
data-testid='CaseStudyCard-main'
>
<span className='mr-2'>
<div className='mx-auto max-w-screen-lg pt-10'>
<div className='flex flex-row justify-center gap-4 overflow-x-auto lg:gap-8'>
{studies.map((study, index) => (
<a key={index} href={`casestudies/${study.id}`} className='w-[350px] shrink-0 px-4'>
<div
className='flex h-full flex-col items-center justify-center overflow-hidden rounded-md border border-gray-200 bg-white p-4 text-center sm:p-6 md:p-8'
data-testid='CaseStudyCard-main'
>
<img className='m-auto h-16' src={study.company.logo} alt={study.company.name} />
</span>
<Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4'>
{study.company.description}
</Paragraph>
</div>
</a>
))}
<Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4'>
{study.company.description}
</Paragraph>
</div>
</a>
))}
</div>
</div>
);
}
Loading