-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3411303
commit 8101463
Showing
7 changed files
with
92 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import clsx from "classnames"; | ||
import { Col, Container, Row } from "react-bootstrap"; | ||
import PropTypes from "prop-types"; | ||
import { CaseStudyCard, Title } from "@/ui"; | ||
import { getRoute } from "@/getters/getRoute"; | ||
|
||
export default function CaseStudies({ className, title, items }) { | ||
return ( | ||
<div className={clsx(className)}> | ||
<Container className="mw-xl"> | ||
<Title title={title} /> | ||
<Row> | ||
{items.map(({ title, 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 })} /> | ||
</Col> | ||
))} | ||
</Row> | ||
</Container> | ||
</div> | ||
); | ||
} | ||
|
||
CaseStudies.defaultProps = { | ||
className: "py-5", | ||
title: null, | ||
items: [], | ||
}; | ||
|
||
CaseStudies.propTypes = { | ||
className: PropTypes.string, | ||
title: PropTypes.string, | ||
items: PropTypes.arrayOf( | ||
PropTypes.shape({ | ||
title: PropTypes.string, | ||
href: PropTypes.string, | ||
}) | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...itment-solutions/case-studies/[url_slug]/__components/CaseStudyContent/styles.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@import "src/scss/module"; | ||
|
||
.content { | ||
img { | ||
border-radius: var(#{--bs-border-radius}); | ||
} | ||
|
||
&__info { | ||
border-radius: var(#{--bs-border-radius}); | ||
|
||
dl { | ||
dt { | ||
font-weight: $font-weight-base; | ||
} | ||
|
||
dd { | ||
font-weight: $font-weight-bold; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/pages/recruitment-solutions/case-studies/__components/CaseStudyFeed/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters