- );
- });
+const TasteOurCoffee = props => {
+ let cafes = props.cafes.map((cafe, index) => {
+ let name = cafe.system.name;
+ let imageLink = cafe.photo.value[0].url;
return (
-
+
-
{this.props.t('title')}
+
+
{name}
+
+
+
- {cafes}
);
- }
-}
+ });
+
+ return (
+
+
+
{props.t('title')}
+
+ {cafes}
+
+ );
+};
export default translate('TasteOurCoffee')(TasteOurCoffee);
diff --git a/src/Images/banner-default.jpg b/src/Images/banner-default.jpg
deleted file mode 100644
index 4a79067..0000000
Binary files a/src/Images/banner-default.jpg and /dev/null differ
diff --git a/src/Images/our-story.jpg b/src/Images/our-story.jpg
deleted file mode 100644
index 89d1dc0..0000000
Binary files a/src/Images/our-story.jpg and /dev/null differ
diff --git a/src/Localization/en-US.json b/src/Localization/en-US.json
index 9f24251..5a26743 100644
--- a/src/Localization/en-US.json
+++ b/src/Localization/en-US.json
@@ -1,9 +1,5 @@
{
"locale": "en-US",
- "Banner": {
- "heading": "Roasting premium coffee",
- "text": "Discover the fascinating world of Dancing Goat high-quality coffee and you will never miss a single coffee break again."
- },
"LatestArticles": {
"title": "Latest articles",
"noTitleValue": "(Article has no title)",
@@ -26,10 +22,6 @@
"aboutLinkText": "Read the whole story",
"cafesLinkText": "Find out more"
},
- "OurStory": {
- "title": "Our Story",
- "text": "At Dancing Goat, we strive to do things right. Not only do we source the best coffees you can get your hands on. We also make sure we have a direct relationship with our farmers. Visiting the micro farms where we source our coffees is our daily bread. This way, we can guarantee the highest quality standard all year long. No middle-men, no unfair shares. Our farmers get the best deal possible. So do you."
- },
"TasteOurCoffee": {
"title": "Taste Our Coffee"
},
diff --git a/src/Localization/es-ES.json b/src/Localization/es-ES.json
index 1c80763..f4463ef 100644
--- a/src/Localization/es-ES.json
+++ b/src/Localization/es-ES.json
@@ -1,9 +1,5 @@
{
"locale": "es-ES",
- "Banner": {
- "heading": "Café tostado de primera calidad ",
- "text": "Descubre el fascinante mundo de Dancing Goat café de la mas alta calidad. Nunca más perderás una sola oportunidad de disfrutar un buen café."
- },
"LatestArticles": {
"title": "Último artículo",
"noTitleValue": "(El artículo no tiene título)",
@@ -26,10 +22,6 @@
"aboutLinkText": "Leer toda la historia",
"cafesLinkText": "Más cafés"
},
- "OurStory": {
- "title": "Nuestra historia",
- "text": "Dancing Goat originó en 1969 como una empresa de entusiastas del café. Nuestro principal objetivo siempre ha sido ofrecer una experiencia inolvidable a nuestros clientes. Conocemos a todos los agricultores personalmente y tenemos la calidad como la mayor exigencia. Con esta creencia nos hemos convertido en una marca reconocida y disfrutarda por todo el mundo."
- },
"TasteOurCoffee": {
"title": "Probar nuestro café"
},
diff --git a/src/Pages/Home.js b/src/Pages/Home.js
index c44e756..90f9826 100644
--- a/src/Pages/Home.js
+++ b/src/Pages/Home.js
@@ -13,7 +13,7 @@ import { englishCode, spanishCode } from '../Utilities/LanguageCodes';
let getState = props => {
return {
- metaData: HomeStore.getMetaData(props.language)
+ home: HomeStore.getHome(props.language)
};
};
@@ -27,7 +27,7 @@ class Home extends Component {
componentDidMount() {
HomeStore.addChangeListener(this.onChange);
- HomeStore.provideMetaData(this.props.language);
+ HomeStore.provideHome(this.props.language);
}
componentWillUnmount() {
@@ -37,7 +37,7 @@ class Home extends Component {
static getDerivedStateFromProps(nextProps, prevState) {
if (prevState.language !== nextProps.language) {
- HomeStore.provideMetaData(nextProps.language);
+ HomeStore.provideHome(nextProps.language);
return {
language: nextProps.language
};
@@ -50,29 +50,36 @@ class Home extends Component {
}
render() {
- let metaData = this.state.metaData;
+ let home = this.state.home;
return (