const React = require('react'); const TEAM = [ { firstName: 'Christian', lastName: 'Rinderknecht', image: 'img/christian.jpeg', link: 'https://github.com/rinderknecht', pinned: true }, { firstName: 'Brice', lastName: 'Aldrich', image: 'img/brice.jpeg', link: 'https://github.com/DefinitelyNotAGoat', pinned: true }, { firstName: 'Gabriel', lastName: 'Alfour', image: 'img/gabriel.jpeg', link: 'https://gitlab.com/gabriel.alfour', pinned: true }, { firstName: 'Matej', lastName: 'Sima', image: 'img/matej.jpeg', link: 'https://github.com/maht0rz', pinned: true }, { firstName: 'Sander', lastName: 'Spies', image: 'img/sander.jpeg', link: 'https://github.com/SanderSpies', pinned: true }, { firstName: 'Suzanne', lastName: 'Dupéron', image: 'img/suzanne.jpeg', link: 'https://gitlab.com/suzanne.duperon', pinned: true } ]; const COMMUNICATION_CHANNELS = [ { link: 'https://discord.gg/9rhYaEt', icon: 'img/discord.svg', description: "We're hear to help. Ask us anything" }, { link: 'https://gitlab.com/ligolang/ligo/issues', icon: 'img/gitlab.svg', description: 'Need a fix? Create an issue on GitLab' }, { link: 'https://twitter.com/ligolang', icon: 'img/twitter.svg', description: 'Join the latest chit-chat' } ]; const Portrait = props => { return (
{props.firstName} {props.lastName}
); }; const CommunicationChannel = props => { return ( {props.description} ); }; module.exports = () => { const pinnedMembers = TEAM.filter(member => member.pinned); const membersCeilCount = Math.ceil(pinnedMembers.length / 2); const membersInFistColumn = pinnedMembers.slice(0, membersCeilCount); const membersInSecondColumn = pinnedMembers.slice(membersCeilCount); return (
{membersInFistColumn.map(Portrait)}
{membersInSecondColumn.map(Portrait)}
Talk to us
{COMMUNICATION_CHANNELS.map(CommunicationChannel)}
); };