aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/pages/landing.tsx
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-04 21:58:37 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-04 21:58:37 +0800
commit4da419cf7591a8beb32fb5e41e31b129c5fbb99f (patch)
tree54ba3d9bc3940f526b02962967e7b65eb151f206 /packages/website/ts/@next/pages/landing.tsx
parent5bf7b9b8f3fb2780e56cb11fa9b9b48939a8041d (diff)
downloaddexon-sol-tools-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar
dexon-sol-tools-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.gz
dexon-sol-tools-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.bz2
dexon-sol-tools-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.lz
dexon-sol-tools-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.xz
dexon-sol-tools-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.zst
dexon-sol-tools-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.zip
Fixes all lint issues, cleanup
Diffstat (limited to 'packages/website/ts/@next/pages/landing.tsx')
-rw-r--r--packages/website/ts/@next/pages/landing.tsx69
1 files changed, 16 insertions, 53 deletions
diff --git a/packages/website/ts/@next/pages/landing.tsx b/packages/website/ts/@next/pages/landing.tsx
index 5f90ffb6e..b39ee409d 100644
--- a/packages/website/ts/@next/pages/landing.tsx
+++ b/packages/website/ts/@next/pages/landing.tsx
@@ -1,5 +1,5 @@
-import * as React from 'react';
import * as _ from 'lodash';
+import * as React from 'react';
import styled from 'styled-components';
import {colors} from 'ts/style/colors';
@@ -14,17 +14,6 @@ import ProtocolIcon from 'ts/@next/icons/illustrations/protocol.svg';
import ReadyToBuildIcon from 'ts/@next/icons/illustrations/ready-to-build.svg';
import SupportIcon from 'ts/@next/icons/illustrations/support.svg';
-/**
- Note(ez): Maybe when we're done at least with a basic structure,
- we can take out each section into e.g. LandingSectionIntro.tsx in
- @next/sections/landing ? so then our routes would only look like
-
- <SiteWrap>
- <LandingSectionIntro />
- <LandingSectionWhatever />
- </SiteWrap>
-*/
-
interface ProjectLogo {
name: string;
imageUrl?: string;
@@ -83,11 +72,11 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
</Paragraph>
<ButtonWrap>
- <Button inline>
+ <Button isInline={true}>
Get Started
</Button>
- <Button transparent inline>
+ <Button isTransparent={true} isInline={true}>
Learn More
</Button>
</ButtonWrap>
@@ -99,22 +88,18 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
</Wrap>
</Section>
- <Section
- bgColor={colors.backgroundDark}
- isPadLarge={true}>
+ <Section bgColor={colors.backgroundDark} isPadLarge={true}>
<WrapCentered width="narrow">
<ProtocolIcon/>
- <Paragraph
- size="large"
- isCentered={true}>
+ <Paragraph size="large" isCentered={true}>
0x is an open protocol that enables the peer-to-peer exchange of Ethereum-based
tokens. Anyone in the world can use 0x to service a wide variety of markets
ranging from gaming items to financial instruments to assets that could have
near existed before.
</Paragraph>
- <Button href="#" transparent>
+ <Button href="#" isTransparent={true}>
Discover how developers use 0x
</Button>
</WrapCentered>
@@ -122,61 +107,39 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
{/* Note you can also pass in a string "large/default" or a number for custom margins */}
<Wrap padding={['large', 0, 0, 0]}>
{/* NOTE: this probably should be withComponent as part of a <dl> */}
- <Column
- colWidth="1/3"
- isNoPadding={true}>
- <Heading
- size="medium"
- isCentered={true}>
+ <Column colWidth="1/3" isNoPadding={true}>
+ <Heading size="medium" isCentered={true}>
873,435
</Heading>
- <Paragraph
- isMuted={0.4}
- isCentered={true}
- isNoMargin={true}>
+ <Paragraph isMuted={0.4} isCentered={true} isNoMargin={true}>
Number of transactions
</Paragraph>
</Column>
- <Column
- colWidth="1/3"
- isNoPadding={true}>
- <Heading
- size="medium"
- isCentered={true}>
+ <Column colWidth="1/3" isNoPadding={true}>
+ <Heading size="medium" isCentered={true}>
$203M
</Heading>
- <Paragraph
- isMuted={0.4}
- isCentered={true}
- isNoMargin={true}>
+ <Paragraph isMuted={0.4} isCentered={true} isNoMargin={true}>
Total volume
</Paragraph>
</Column>
- <Column
- colWidth="1/3"
- isNoPadding={true}>
- <Heading
- size="medium"
- isCentered={true}>
+ <Column colWidth="1/3" isNoPadding={true}>
+ <Heading size="medium" isCentered={true}>
227,372
</Heading>
- <Paragraph
- isMuted={0.4}
- isCentered={true}
- isNoMargin={true}>
+ <Paragraph isMuted={0.4} isCentered={true} isNoMargin={true}>
Number of relayers
</Paragraph>
</Column>
</Wrap>
</Section>
- <Section
- isPadLarge={true}>
+ <Section isPadLarge={true}>
<WrapCentered>
<Heading size="small">You're in good company</Heading>
</WrapCentered>