diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-27 17:42:50 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:45 +0200 |
| commit | 2c42e9488771070d8efec5d91835cd8c7885f4b1 (patch) | |
| tree | 63efba6438169ba4f74940cbdba72ad5d2396773 /src/components/home/ContentSection.js | |
| parent | d22fa82e50d8ac540584659225c1c113d939251b (diff) | |
Restyle navbar and use across entire site
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; |
