summaryrefslogtreecommitdiff
path: root/src/components/home/ContentSection.js
blob: 2e24ee10c9f5aa280bd2169483454b0f91e61837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import classNames from "classnames";
import PropTypes from "prop-types";
import React from "react";
import "./ContentSection.css";

const ContentSection = ({ name, title, children }) => (
  <div id={name} className={classNames(name + "-section", "content-section")}>
    <div className="container">
      <h1>{title}</h1>
      {children}
    </div>
  </div>
);

ContentSection.propTypes = {
  name: PropTypes.string.isRequired
};

export default ContentSection;