From ea69032c4a8468a24f105f79d3ab6742e07da1cd Mon Sep 17 00:00:00 2001 From: Maksym Bykovskyy Date: Mon, 9 Dec 2019 19:48:28 +0000 Subject: [PATCH] Fix for broken images --- gitlab-pages/website/pages/en/404.js | 25 +++++++++++++++++++----- gitlab-pages/website/pages/en/contact.js | 20 +++++++++++-------- gitlab-pages/website/pages/en/index.js | 14 +++++++------ 3 files changed, 40 insertions(+), 19 deletions(-) diff --git a/gitlab-pages/website/pages/en/404.js b/gitlab-pages/website/pages/en/404.js index 9fab36f59..070e50391 100644 --- a/gitlab-pages/website/pages/en/404.js +++ b/gitlab-pages/website/pages/en/404.js @@ -5,11 +5,26 @@ module.exports = props => { return (
- - - - - + + + + +
404
diff --git a/gitlab-pages/website/pages/en/contact.js b/gitlab-pages/website/pages/en/contact.js index cb7a7fb67..3a41f6cd1 100644 --- a/gitlab-pages/website/pages/en/contact.js +++ b/gitlab-pages/website/pages/en/contact.js @@ -63,7 +63,7 @@ const COMMUNICATION_CHANNELS = [ } ]; -const Portrait = props => { +const Portrait = (config, props) => { return ( { target="_blank" rel="noopener noreferrer" > - +
{props.firstName} {props.lastName} @@ -81,7 +81,7 @@ const Portrait = props => { ); }; -const CommunicationChannel = props => { +const CommunicationChannel = (config, props) => { return ( { target="_blank" rel="noopener noreferrer" > - + {props.description} ); }; -module.exports = () => { +module.exports = props => { const pinnedMembers = TEAM.filter(member => member.pinned); const membersCeilCount = Math.ceil(pinnedMembers.length / 2); const membersInFistColumn = pinnedMembers.slice(0, membersCeilCount); @@ -104,15 +104,19 @@ module.exports = () => { return (
-
{membersInFistColumn.map(Portrait)}
+
+ {membersInFistColumn.map(entry => Portrait(props.config, entry))} +
- {membersInSecondColumn.map(Portrait)} + {membersInSecondColumn.map(entry => Portrait(props.config, entry))}
Talk to us
- {COMMUNICATION_CHANNELS.map(CommunicationChannel)} + {COMMUNICATION_CHANNELS.map(entry => + CommunicationChannel(props.config, entry) + )}
diff --git a/gitlab-pages/website/pages/en/index.js b/gitlab-pages/website/pages/en/index.js index c48ebb92b..a9bc41277 100644 --- a/gitlab-pages/website/pages/en/index.js +++ b/gitlab-pages/website/pages/en/index.js @@ -43,22 +43,22 @@ const PARTNERS = [ } ]; -const Feature = props => ( +const Feature = (config, props) => (
- +

{props.title}

{props.content}

); -const Partner = props => ( +const Partner = (config, props) => ( - + ); @@ -83,13 +83,15 @@ module.exports = props => {
- {FEATURES.map(Feature)} + {FEATURES.map(entry => Feature(props.config, entry))}
Our Partners
- {PARTNERS.filter(entry => entry.pinned).map(Partner)} + {PARTNERS.filter(entry => entry.pinned).map(entry => + Partner(props.config, entry) + )}