2020-06-14 13:22:07 +00:00
|
|
|
import PropTypes from "prop-types";
|
|
|
|
import React from "react";
|
|
|
|
import styles from "./modules/CaseSection.module.css";
|
|
|
|
import Section from "./Section";
|
|
|
|
import CaseCard from "./CaseCard";
|
|
|
|
|
|
|
|
export default function CaseSection(props) {
|
|
|
|
return (
|
|
|
|
<Section>
|
|
|
|
<div className={styles.bg} />
|
|
|
|
<div className={styles.content}>
|
|
|
|
<h1 className={styles.title}>Case Studies</h1>
|
|
|
|
<div className={styles.cardRow}>
|
|
|
|
{props.caseStudies.map((study) => (
|
2021-04-19 13:35:51 +00:00
|
|
|
<CaseCard key={study.title} study={props.caseStudies[props.caseStudies.indexOf(study)]} />
|
2020-06-14 13:22:07 +00:00
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
CaseSection.propTypes = {
|
|
|
|
caseStudies: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
};
|