extracting content into data object

This commit is contained in:
Sharyn 2018-07-18 12:10:04 +02:00
parent d2059c5fbc
commit d3525939e1
2 changed files with 8 additions and 10 deletions

View File

@ -1,19 +1,12 @@
import React from 'react';
import Data from '../../data/content/content';
import Parser from 'html-react-parser';
import './style.scss';
const ContentBlurb = () => (
<div className="content-blurb">
<div className="container">
<p>
The community behind ETHPrize has interviewed over 100 developers in order to produce this
website which showcases the biggest frustrations and opportunities in the ecosystem.
</p>
<p>
We invite all developers, product managers, designers and #buidlers to use the ideas here
and figure out what to make next so that we can all continue to build the worlds best
cryptocurrency community and ship great products that actually improve the lives of as many
people as possible.
</p>
{ Parser(Data.blurb) }
</div>
</div>
);

5
data/content/content.js Normal file
View File

@ -0,0 +1,5 @@
const data = {
blurb: '<p>The community behind ETHPrize has interviewed over 100 developers in order to produce this website which showcases the biggest frustrations and opportunities in the ecosystem.</p><p>We invite all developers, product managers, designers and #buidlers to use the ideas here and figure out what to make next so that we can all continue to build the worlds best cryptocurrency community and ship great products that actually improve the lives of as many people as possible.</p>',
};
export default data;