From 0074bc5c9ab9c7b02dc8d9064fdffd69bca8009f Mon Sep 17 00:00:00 2001 From: Moris Zen Date: Sat, 30 Jun 2018 15:28:45 +0200 Subject: [PATCH] Markup structure, add InfoBox components --- src/components/InfoBox.js | 11 +++++++++ src/components/IntroDefault.js | 7 ++---- src/pages/index.js | 41 +++++++++++++++++++++++++++++----- 3 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 src/components/InfoBox.js diff --git a/src/components/InfoBox.js b/src/components/InfoBox.js new file mode 100644 index 0000000..e3bf52a --- /dev/null +++ b/src/components/InfoBox.js @@ -0,0 +1,11 @@ +import React from 'react' +import Link from 'gatsby-link' + +const InfoBox = ({ headline, text, classes }) => ( +
+

{headline}

+

{text}

+
+) + +export default InfoBox diff --git a/src/components/IntroDefault.js b/src/components/IntroDefault.js index ded4f65..c38290d 100644 --- a/src/components/IntroDefault.js +++ b/src/components/IntroDefault.js @@ -1,14 +1,11 @@ import React from 'react' import Link from 'gatsby-link' -import Button from './Button' - -const IntroDefault = ({ intro, headline, text }) => ( -
+const IntroDefault = ({ intro, headline, text, classes }) => ( +

{intro}

{headline}

{text}

-
) diff --git a/src/pages/index.js b/src/pages/index.js index d2c5ee9..cff74a5 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,14 +1,45 @@ import React from 'react' import IntroDefault from '../components/IntroDefault' - +import InfoBox from '../components/InfoBox' +import Button from '../components/Button' import ImgBuildSite from '../images/programming-company.svg' const IndexPage = () => ( -
- - -
+
+
+
+ +
+ +
+ +
+ +
+ + + + + + + +
) export default IndexPage