aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-12 21:50:31 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-12 21:50:31 +0800
commitffff1d5fff898af8796e02892b562d308aed33d0 (patch)
tree3f689733253012587b1f873c8605be1603c5a598 /packages/website/ts/@next
parentfa389f18cdb11f52a803523ba3d3f559ff2b2d31 (diff)
downloaddexon-sol-tools-ffff1d5fff898af8796e02892b562d308aed33d0.tar
dexon-sol-tools-ffff1d5fff898af8796e02892b562d308aed33d0.tar.gz
dexon-sol-tools-ffff1d5fff898af8796e02892b562d308aed33d0.tar.bz2
dexon-sol-tools-ffff1d5fff898af8796e02892b562d308aed33d0.tar.lz
dexon-sol-tools-ffff1d5fff898af8796e02892b562d308aed33d0.tar.xz
dexon-sol-tools-ffff1d5fff898af8796e02892b562d308aed33d0.tar.zst
dexon-sol-tools-ffff1d5fff898af8796e02892b562d308aed33d0.zip
Edits aboutLayout, mission.tsx
Diffstat (limited to 'packages/website/ts/@next')
-rw-r--r--packages/website/ts/@next/components/aboutPageLayout.tsx59
-rw-r--r--packages/website/ts/@next/pages/about/mission.tsx70
2 files changed, 62 insertions, 67 deletions
diff --git a/packages/website/ts/@next/components/aboutPageLayout.tsx b/packages/website/ts/@next/components/aboutPageLayout.tsx
index e8f09c8d9..54e4c34f4 100644
--- a/packages/website/ts/@next/components/aboutPageLayout.tsx
+++ b/packages/website/ts/@next/components/aboutPageLayout.tsx
@@ -3,7 +3,7 @@ import styled from 'styled-components';
import { Link } from 'ts/@next/components/button';
import { ChapterLink } from 'ts/@next/components/chapter_link';
-import { BREAKPOINTS, Column, Section, Wrap } from 'ts/@next/components/layout';
+import { Column, Section } from 'ts/@next/components/newLayout';
import { SiteWrap } from 'ts/@next/components/siteWrap';
import { Heading, Paragraph } from 'ts/@next/components/text';
@@ -16,44 +16,39 @@ interface Props {
export const AboutPageLayout = (props: Props) => (
<SiteWrap theme="light">
- <Section isPadLarge={true}>
- <Wrap>
- <Nav 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>
- </Nav>
-
- <Column colWidth="2/3">
- <IntroWrap>
- <Heading size="medium">
- {props.title}
- </Heading>
- <Paragraph size="medium" marginBottom="60px">
- {props.description}
- </Paragraph>
-
- {(props.linkLabel && props.linkUrl) &&
- <Link href={props.linkUrl} isNoBorder={true} isWithArrow={true}>
- {props.linkLabel}
- </Link>
- }
- </IntroWrap>
- </Column>
- </Wrap>
+ <Section isFlex={true} maxWidth="1170px">
+ <Nav 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>
+ </Nav>
+
+ <Column width="70%" maxWidth="826px">
+ <Column width="100%" maxWidth="680px">
+ <Heading size="medium">
+ {props.title}
+ </Heading>
+
+ <Paragraph size="medium" marginBottom="60px" isMuted={0.65}>
+ {props.description}
+ </Paragraph>
+
+ {(props.linkLabel && props.linkUrl) &&
+ <Link href={props.linkUrl} isNoBorder={true} isWithArrow={true}>
+ {props.linkLabel}
+ </Link>
+ }
+ </Column>
+ </Column>
</Section>
{props.children}
</SiteWrap>
);
-const IntroWrap = styled.div`
- max-width: 680px;
-`;
-
const Nav = styled(Column)`
- @media (max-width: ${BREAKPOINTS.mobile}) {
+ @media (max-width: 768px) {
// display: none;
}
`;
diff --git a/packages/website/ts/@next/pages/about/mission.tsx b/packages/website/ts/@next/pages/about/mission.tsx
index f8b01dc08..d71644094 100644
--- a/packages/website/ts/@next/pages/about/mission.tsx
+++ b/packages/website/ts/@next/pages/about/mission.tsx
@@ -1,10 +1,12 @@
import * as _ from 'lodash';
import * as React from 'react';
+import styled from 'styled-components';
import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout';
+import { Definition } from 'ts/@next/components/definition';
import { Icon } from 'ts/@next/components/icon';
import { Image } from 'ts/@next/components/image';
-import { Column, Section, Wrap } from 'ts/@next/components/layout';
+import { Column, Section } from 'ts/@next/components/newLayout';
import { Separator } from 'ts/@next/components/separator';
import { Heading, Paragraph } from 'ts/@next/components/text';
@@ -30,47 +32,45 @@ export const NextAboutMission = () => (
<AboutPageLayout
title="Creating a tokenized world where all value can flow freely."
description="0x Protocol is an important infrastructure layer for the emerging crypto economy and enables markets to be created that couldn't have existed before. As more assets become tokenized, public blockchains provide the opportunity to establish a new financial stack that is more efficient, transparent, and equitable than any system in the past."
+ linkLabel="Our mission and values"
+ linkUrl="#"
>
- <Section isFullWidth={true} isNoPadding={true}>
- <Wrap width="full">
- <Image
- src="/images/@next/about/about-mission@2x.jpg"
- height="372"
- alt=""
- isCentered={true}
- />
- </Wrap>
+ <Section isFullWidth={true}>
+ <Image
+ src="/images/@next/about/about-mission@2x.jpg"
+ height="372"
+ alt=""
+ isCentered={true}
+ />
</Section>
- <Section isPadLarge={true}>
- <Wrap>
- <Column colWidth="1/3">
- <Heading size="medium">Core Values</Heading>
- </Column>
+ <Section isFlex={true} maxWidth="1170px">
+ <Column colWidth="1/3">
+ <Heading size="medium">
+ Core Values
+ </Heading>
+ </Column>
- <Column colWidth="2/3" isNoPadding={true}>
+ <Column width="70%" maxWidth="826px">
+ <Column width="100%" maxWidth="800px">
{_.map(values, (item, index) => (
- <>
- <Wrap>
- <Column colWidth="1/4">
- <Icon name={item.icon} size={120} />
- </Column>
-
- <Column colWidth="2/3">
- <Heading>
- {item.title}
- </Heading>
- <Paragraph isMuted={true}>
- {item.description}
- </Paragraph>
- </Column>
- </Wrap>
-
- {(index < values.length - 1) && <Separator/>}
- </>
+ <StyledDefinition
+ icon={item.icon}
+ title={item.title}
+ description={item.description}
+ isInlineIcon={true}
+ iconSize="large"
+ />
))}
</Column>
- </Wrap>
+ </Column>
</Section>
</AboutPageLayout>
);
+
+const StyledDefinition = styled(Definition)`
+ & + & {
+ padding-top: 30px;
+ border-top: 1px solid #eaeaea;
+ }
+`;