Skip to content

Commit

Permalink
add case study page
Browse files Browse the repository at this point in the history
  • Loading branch information
seanjermey committed Oct 16, 2023
1 parent 8101463 commit a251fba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/CaseStudies/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { getRoute } from "@/getters/getRoute";
export default function CaseStudies({ className, title, items }) {
return (
<div className={clsx(className)}>
<Container className="mw-xl">
<Container className="mw-xxl">
<Title title={title} />
<Row>
{items.map(({ title, cover_image, url_slug }, k) => (
{items.map(({ title, card_image, cover_image, url_slug }, k) => (
<Col key={k} xs={12} md={4} className="mb-4">
<CaseStudyCard title={title} img={cover_image} href={getRoute("caseStudy", { url_slug })} />
<CaseStudyCard title={title} img={card_image ?? cover_image} href={getRoute("caseStudy", { url_slug })} />
</Col>
))}
</Row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export default function CaseStudyFeed({ className, title }) {

return (
<div className={clsx(className)}>
<Container className="mw-xl">
<Container className="mw-xxl">
<Title title={title} />
<Row>
{items.map(({ title, cover_image, url_slug }, k) => (
{items.map(({ title, card_image, cover_image, url_slug }, k) => (
<Col key={k} xs={12} md={4} className="mb-4">
<CaseStudyCard title={title} img={cover_image} href={getRoute("caseStudy", { url_slug })} />
<CaseStudyCard title={title} img={card_image ?? cover_image} href={getRoute("caseStudy", { url_slug })} />
</Col>
))}
</Row>
Expand Down

0 comments on commit a251fba

Please sign in to comment.