diff --git a/src/stories/Components/Cta.jsx b/src/stories/Components/Cta.jsx index e36e332..0388ac1 100644 --- a/src/stories/Components/Cta.jsx +++ b/src/stories/Components/Cta.jsx @@ -43,6 +43,7 @@ Cta.propTypes = { buttonText: PropTypes.string, buttonLink: PropTypes.string, imageSrc: PropTypes.string, + onClick: PropTypes.func, }; Cta.defaultProps = { diff --git a/src/stories/Components/Hero.jsx b/src/stories/Components/Hero.jsx index 4b20501..53d600f 100644 --- a/src/stories/Components/Hero.jsx +++ b/src/stories/Components/Hero.jsx @@ -1,43 +1,59 @@ import React from 'react' +import PropTypes from 'prop-types'; import 'tailwindcss/tailwind.css'; -export default function Hero() { + +function Hero({ title, description, getStartedLink, learnMoreLink, buttonText }) { return (
-
-
-

- Understand User Flow. - - Increase Conversion. -

+
+
+

+ {title} +

-

- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo tenetur fuga ducimus - numquam ea! -

+

+ {description} +

- -
-
-
+
+ + {buttonText} + + + Learn More + +
+
+ + ) } + +Hero.propTypes = { + title: PropTypes.string, + description: PropTypes.string, + getStartedLink: PropTypes.string, + learnMoreLink: PropTypes.string, + buttonText: PropTypes.string, +}; + +Hero.defaultProps = { + title: 'Understand User Flow. Increase Conversion.', + description: 'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo tenetur fuga ducimus numquam ea!', + getStartedLink: '/get-started', + learnMoreLink: '/about', + buttonText: 'Get Started', +}; + +export default Hero;