diff options
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/home/ContentSection.js')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/components/home/ContentSection.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/home/ContentSection.js b/opendc-web/opendc-web-ui/src/components/home/ContentSection.js new file mode 100644 index 00000000..9d4832d9 --- /dev/null +++ b/opendc-web/opendc-web-ui/src/components/home/ContentSection.js @@ -0,0 +1,19 @@ +import classNames from 'classnames' +import PropTypes from 'prop-types' +import React from 'react' +import './ContentSection.sass' + +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 |
