aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/pages/about/team.tsx
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-11 21:54:05 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-11 21:54:19 +0800
commit528d882ec4103441b8eacb4d1fdcf1613830a960 (patch)
tree3fce84611ff950c51f3d5ee20429803c781d2cc0 /packages/website/ts/@next/pages/about/team.tsx
parent2471d4098fcbdc3735f77254f7f0cfcb9d597f9d (diff)
downloaddexon-sol-tools-528d882ec4103441b8eacb4d1fdcf1613830a960.tar
dexon-sol-tools-528d882ec4103441b8eacb4d1fdcf1613830a960.tar.gz
dexon-sol-tools-528d882ec4103441b8eacb4d1fdcf1613830a960.tar.bz2
dexon-sol-tools-528d882ec4103441b8eacb4d1fdcf1613830a960.tar.lz
dexon-sol-tools-528d882ec4103441b8eacb4d1fdcf1613830a960.tar.xz
dexon-sol-tools-528d882ec4103441b8eacb4d1fdcf1613830a960.tar.zst
dexon-sol-tools-528d882ec4103441b8eacb4d1fdcf1613830a960.zip
Creates about page wrapper component, clean up
Diffstat (limited to 'packages/website/ts/@next/pages/about/team.tsx')
-rw-r--r--packages/website/ts/@next/pages/about/team.tsx93
1 files changed, 38 insertions, 55 deletions
diff --git a/packages/website/ts/@next/pages/about/team.tsx b/packages/website/ts/@next/pages/about/team.tsx
index 20b5a49eb..8d7ab4b0e 100644
--- a/packages/website/ts/@next/pages/about/team.tsx
+++ b/packages/website/ts/@next/pages/about/team.tsx
@@ -1,14 +1,11 @@
import * as _ from 'lodash/core';
import * as React from 'react';
-import { Link as ReactRouterLink } from 'react-router-dom';
import styled from 'styled-components';
import { colors } from 'ts/style/colors';
-import { Link } from 'ts/@next/components/button';
-import { ChapterLink } from 'ts/@next/components/chapter_link';
+import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout';
import { Column, Section, Wrap } from 'ts/@next/components/layout';
-import { SiteWrap } from 'ts/@next/components/siteWrap';
import { Heading, Paragraph } from 'ts/@next/components/text';
interface TeamMember {
@@ -143,63 +140,49 @@ const advisors: TeamMember[] = [
},
];
-const Member = ({ name, title, imageUrl }: TeamMember) => (
- <StyledMember>
- <svg width="184" height="184" viewBox="0 0 184 184" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="184" height="184" fill="#003831"/></svg>
- <Heading color={colors.textDarkPrimary} size="small" isNoMargin={true}>{name}</Heading>
- <Paragraph isMuted={0.5}>{title}</Paragraph>
- </StyledMember>
-);
-
export const NextAboutTeam = () => (
- <SiteWrap theme="light">
- <Section isPadLarge={true}>
- <Wrap>
- <Column colWidth="1/3">
- <ChapterLink to="/next/about/mission">Our Mission</ChapterLink>
- <ChapterLink to="/next/about/team">Team</ChapterLink>
- <ChapterLink to="/next/about/press">Press</ChapterLink>
- <ChapterLink to="/next/about/jobs">Jobs</ChapterLink>
- </Column>
+ <AboutPageLayout
+ title="We are a global, growing team"
+ description="We are a distributed team with backgrounds in engineering, academic research, business, and design. The 0x Core Team is passionate about accelerating the adoption decentralized technology and believe in its potential to be an equalizing force in the world. Join us and do the most impactful work of your life."
+ linkLabel="Join the team"
+ linkUrl="/jobs"
+ >
+ <Section>
+ <Wrap>
+ <Column colWidth="1/3">
+ <Heading size="medium">0x Team</Heading>
+ </Column>
- <Column colWidth="2/3">
- <div style={{ maxWidth: '680px' }}>
- <Heading size="medium">We are a global, growing team</Heading>
- <Paragraph size="medium" marginBottom="60px">We are a distributed team with backgrounds in engineering, academic research, business, and design. The 0x Core Team is passionate about accelerating the adoption decentralized technology and believe in its potential to be an equalizing force in the world. Join us and do the most impactful work of your life.</Paragraph>
- <Link href="/mission" isNoBorder={true} isWithArrow={true}>Join the team</Link>
- </div>
- </Column>
- </Wrap>
- </Section>
+ <Column colWidth="2/3">
+ <Wrap isWrapped={true} isCentered={false}>
+ {_.map(team, (info: TeamMember, index) => <Member key={`team-${index}`} name={info.name} title={info.title} />)}
+ </Wrap>
+ </Column>
+ </Wrap>
+ </Section>
- <Section>
- <Wrap>
- <Column colWidth="1/3">
- <Heading size="medium">0x Team</Heading>
- </Column>
+ <Section bgColor="#F3F6F4">
+ <Wrap>
+ <Column colWidth="1/3">
+ <Heading size="medium">Advisors</Heading>
+ </Column>
- <Column colWidth="2/3">
- <Wrap isWrapped={true} isCentered={false}>
- {_.map(team, (info, index) => <Member key={`team-${index}`} name={info.name} title={info.title} />)}
+ <Column colWidth="2/3">
+ <Wrap isWrapped={true} isCentered={false}>
+ {_.map(advisors, (info: TeamMember, index) => <Member key={`team-${index}`} name={info.name} title={info.title} />)}
+ </Wrap>
+ </Column>
</Wrap>
- </Column>
- </Wrap>
- </Section>
-
- <Section bgColor="#F3F6F4">
- <Wrap>
- <Column colWidth="1/3">
- <Heading size="medium">Advisors</Heading>
- </Column>
+ </Section>
+ </AboutPageLayout>
+);
- <Column colWidth="2/3">
- <Wrap isWrapped={true} isCentered={false}>
- {_.map(advisors, (info, index) => <Member key={`team-${index}`} name={info.name} title={info.title} />)}
- </Wrap>
- </Column>
- </Wrap>
- </Section>
- </SiteWrap>
+const Member = ({ name, title, imageUrl }: TeamMember) => (
+ <StyledMember>
+ <svg width="184" height="184" viewBox="0 0 184 184" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="184" height="184" fill="#003831"/></svg>
+ <Heading color={colors.textDarkPrimary} size="small" isNoMargin={true}>{name}</Heading>
+ <Paragraph isMuted={0.5}>{title}</Paragraph>
+ </StyledMember>
);
const StyledMember = styled.div`