diff --git a/src/components/hero.jsx b/src/components/hero.jsx new file mode 100644 index 0000000..245cb04 --- /dev/null +++ b/src/components/hero.jsx @@ -0,0 +1,24 @@ +import React from "react" +import PropTypes from "prop-types" + +import ButtonCTA from "./buttonCTA" + +const Hero = ({ title, subtitle }) => ( +
+
+

{title}

+

{subtitle}

+ +
+
+) + +Hero.propTypes = { + title: PropTypes.string.isRequired, + subtitle: PropTypes.string.isRequired, +} + +export default Hero diff --git a/src/pages/index.jsx b/src/pages/index.jsx index daa3e39..40d3f52 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,12 +1,16 @@ import React from "react" -import { Link } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" +import Hero from "../components/hero" const IndexPage = () => ( + )