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) + )}