diff options
Diffstat (limited to 'src/components/home/ContentSection.js')
| -rw-r--r-- | src/components/home/ContentSection.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/home/ContentSection.js b/src/components/home/ContentSection.js new file mode 100644 index 00000000..126c5e4b --- /dev/null +++ b/src/components/home/ContentSection.js @@ -0,0 +1,20 @@ +import classNames from "classnames"; +import PropTypes from "prop-types"; +import React from "react"; +import "./ContentSection.css"; + +const ContentSection = ({name, children}) => ( + <div id={name} className={classNames(name + "-section", "content-section")}> + <div className="container"> + <div className="row"> + {children} + </div> + </div> + </div> +); + +ContentSection.propTypes = { + name: PropTypes.string.isRequired, +}; + +export default ContentSection; |
