From 4da419cf7591a8beb32fb5e41e31b129c5fbb99f Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Tue, 4 Dec 2018 14:58:37 +0100 Subject: Fixes all lint issues, cleanup --- packages/website/ts/@next/pages/about/jobs.tsx | 34 ++++--- packages/website/ts/@next/pages/about/mission.tsx | 13 +-- packages/website/ts/@next/pages/about/press.tsx | 12 +-- packages/website/ts/@next/pages/about/team.tsx | 10 +- packages/website/ts/@next/pages/ecosystem.tsx | 105 ++++++++++--------- packages/website/ts/@next/pages/instant.tsx | 24 +---- packages/website/ts/@next/pages/landing.tsx | 69 +++---------- packages/website/ts/@next/pages/launchKit.tsx | 119 ++++++++++++++-------- packages/website/ts/@next/pages/why.tsx | 1 - 9 files changed, 176 insertions(+), 211 deletions(-) (limited to 'packages/website/ts/@next/pages') diff --git a/packages/website/ts/@next/pages/about/jobs.tsx b/packages/website/ts/@next/pages/about/jobs.tsx index 35d4432c5..4f85b9945 100644 --- a/packages/website/ts/@next/pages/about/jobs.tsx +++ b/packages/website/ts/@next/pages/about/jobs.tsx @@ -1,18 +1,10 @@ import * as React from 'react'; -import styled from 'styled-components'; import { Link as ReactRouterLink } from 'react-router-dom'; +import styled from 'styled-components'; -import { colors } from 'ts/style/colors'; - -import { Column, Section, Wrap, WrapCentered } from 'ts/@next/components/layout'; +import { Column, Section, Wrap } from 'ts/@next/components/layout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; -import { Image } from 'ts/@next/components/image'; - -import CoinIcon from 'ts/@next/icons/illustrations/coin.svg'; -import ConsistentlyShipIcon from 'ts/@next/icons/illustrations/consistently-ship.svg'; -import LongTermImpactIcon from 'ts/@next/icons/illustrations/long-term-impact.svg'; -import RightThingIcon from 'ts/@next/icons/illustrations/right-thing.svg'; export const NextAboutJobs = () => ( @@ -25,9 +17,12 @@ export const NextAboutJobs = () => ( Jobs - Join Us in Our Mission - To create a tokenized world where all value can flow freely. -We are powering a growing ecosystem of decentralized applications and solving novel challenges to make our technology intuitive, flexible, and accessible to all. Read more about our mission, and join us in building financial infrastructure upon which the exchange of anything of value will take place. + + Join Us in Our Mission + + + To create a tokenized world where all value can flow freely.We are powering a growing ecosystem of decentralized applications and solving novel challenges to make our technology intuitive, flexible, and accessible to all. Read more about our mission, and join us in building financial infrastructure upon which the exchange of anything of value will take place. + @@ -35,8 +30,12 @@ We are powering a growing ecosystem of decentralized applications and solving no
- Powered by a Diverse Worldwide Community - We're a highly technical team with varied backgrounds in engineering, science, business, finance, and research. While the core team is headquartered in San Francisco, there are 30+ teams building on 0x and hundreds of thousands of participants behind our efforts globally. We're passionate about open-source software and decentralized technology's potential to act as an equalizing force in the world. + + Powered by a Diverse Worldwide Community + + + We're a highly technical team with varied backgrounds in engineering, science, business, finance, and research. While the core team is headquartered in San Francisco, there are 30+ teams building on 0x and hundreds of thousands of participants behind our efforts globally. We're passionate about open-source software and decentralized technology's potential to act as an equalizing force in the world. + @@ -95,7 +94,9 @@ We are powering a growing ecosystem of decentralized applications and solving no Open Positition - We're always interested in talking to talented people. Send us an application if you think you're the right fit. + + We're always interested in talking to talented people. Send us an application if you think you're the right fit. + Apply @@ -118,6 +119,7 @@ const BenefitsList = styled.ul` } `; +// Lets refactor these chapter links into button perhaps as a const ChapterLink = styled(ReactRouterLink)` font-size: 1.222222222rem; display: block; diff --git a/packages/website/ts/@next/pages/about/mission.tsx b/packages/website/ts/@next/pages/about/mission.tsx index fd52d1a16..234f7254d 100644 --- a/packages/website/ts/@next/pages/about/mission.tsx +++ b/packages/website/ts/@next/pages/about/mission.tsx @@ -1,15 +1,12 @@ import * as React from 'react'; -import styled from 'styled-components'; import { Link as ReactRouterLink } from 'react-router-dom'; - -import { colors } from 'ts/style/colors'; +import styled from 'styled-components'; import { Image } from 'ts/@next/components/image'; -import { Column, Section, Wrap, WrapCentered } from 'ts/@next/components/layout'; +import { Column, Section, Wrap } from 'ts/@next/components/layout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; -import CoinIcon from 'ts/@next/icons/illustrations/coin.svg'; import ConsistentlyShipIcon from 'ts/@next/icons/illustrations/consistently-ship.svg'; import LongTermImpactIcon from 'ts/@next/icons/illustrations/long-term-impact.svg'; import RightThingIcon from 'ts/@next/icons/illustrations/right-thing.svg'; @@ -32,11 +29,9 @@ export const NextAboutMission = () => (
-
+
- +
diff --git a/packages/website/ts/@next/pages/about/press.tsx b/packages/website/ts/@next/pages/about/press.tsx index e222434b4..3a500ff39 100644 --- a/packages/website/ts/@next/pages/about/press.tsx +++ b/packages/website/ts/@next/pages/about/press.tsx @@ -1,18 +1,10 @@ import * as React from 'react'; -import styled from 'styled-components'; import { Link as ReactRouterLink } from 'react-router-dom'; +import styled from 'styled-components'; -import { colors } from 'ts/style/colors'; - -import { Column, Section, Wrap, WrapCentered } from 'ts/@next/components/layout'; +import { Column, Section, Wrap } from 'ts/@next/components/layout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; -import { Image } from 'ts/@next/components/image'; - -import CoinIcon from 'ts/@next/icons/illustrations/coin.svg'; -import ConsistentlyShipIcon from 'ts/@next/icons/illustrations/consistently-ship.svg'; -import RightThingIcon from 'ts/@next/icons/illustrations/right-thing.svg'; -import LongTermImpactIcon from 'ts/@next/icons/illustrations/long-term-impact.svg'; export const NextAboutPress = () => ( diff --git a/packages/website/ts/@next/pages/about/team.tsx b/packages/website/ts/@next/pages/about/team.tsx index 1a88a7ff7..1c7ff319b 100644 --- a/packages/website/ts/@next/pages/about/team.tsx +++ b/packages/website/ts/@next/pages/about/team.tsx @@ -1,18 +1,12 @@ import * as React from 'react'; -import styled from 'styled-components'; import { Link as ReactRouterLink } from 'react-router-dom'; +import styled from 'styled-components'; import { colors } from 'ts/style/colors'; -import { Column, Section, Wrap, WrapGrid, WrapCentered } from 'ts/@next/components/layout'; +import { Column, Section, Wrap } from 'ts/@next/components/layout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; -import { Image } from 'ts/@next/components/image'; - -import CoinIcon from 'ts/@next/icons/illustrations/coin.svg'; -import ConsistentlyShipIcon from 'ts/@next/icons/illustrations/consistently-ship.svg'; -import LongTermImpactIcon from 'ts/@next/icons/illustrations/long-term-impact.svg'; -import RightThingIcon from 'ts/@next/icons/illustrations/right-thing.svg'; interface TeamMember { name: string; diff --git a/packages/website/ts/@next/pages/ecosystem.tsx b/packages/website/ts/@next/pages/ecosystem.tsx index 199c9038e..094d5e126 100644 --- a/packages/website/ts/@next/pages/ecosystem.tsx +++ b/packages/website/ts/@next/pages/ecosystem.tsx @@ -1,6 +1,4 @@ import * as React from 'react'; -import styled from 'styled-components'; -import { Link as ReactRouterLink } from 'react-router-dom'; import { colors } from 'ts/style/colors'; @@ -8,19 +6,19 @@ import {Button} from 'ts/@next/components/button'; import { Column, Section, Wrap, WrapCentered } from 'ts/@next/components/layout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; -import { Image } from 'ts/@next/components/image'; -import CoinIcon from 'ts/@next/icons/illustrations/coin.svg'; -import ConsistentlyShipIcon from 'ts/@next/icons/illustrations/consistently-ship.svg'; -import LongTermImpactIcon from 'ts/@next/icons/illustrations/long-term-impact.svg'; import RightThingIcon from 'ts/@next/icons/illustrations/right-thing.svg'; export const NextEcosystem = () => (
- Jumpstart your Business on 0x - The Ecosystem Acceleration Program gives teams access to a variety of services including funding, personalized technical support, and recruiting assistance. We created the Ecosystem Acceleration Program to bolster the expansion of both infrastructure projects and relayers building on 0x. + + Jumpstart your Business on 0x + + + The Ecosystem Acceleration Program gives teams access to a variety of services including funding, personalized technical support, and recruiting assistance. We created the Ecosystem Acceleration Program to bolster the expansion of both infrastructure projects and relayers building on 0x. +
Get Started Learn More @@ -31,39 +29,68 @@ export const NextEcosystem = () => (
- Join a vibrant ecosystem of projects in the 0x Network. + + Join a vibrant ecosystem of projects in the 0x Network. + + {/* This */} - Milestone Grants - Receive non-dilutive capital ranging from $10,000 to $100,000, with grant sizes awarded based on the quality of your team, vision, execution, and community involvement. + + Milestone Grants + + + Receive non-dilutive capital ranging from $10,000 to $100,000, with grant sizes awarded based on the quality of your team, vision, execution, and community involvement. + + - VC Introductions - Connect with leading venture capital firms that could participate in your next funding round. + + VC Introductions + + + Connect with leading venture capital firms that could participate in your next funding round. + + - Technical Support - Receive ongoing technical assistance from knowledgeable and responsive 0x developers. + + Technical Support + + + Receive ongoing technical assistance from knowledgeable and responsive 0x developers. + - Recruiting Assistance - Grow your team by accessing an exclusive pool of top engineering and business operations talent. + + Recruiting Assistance + + + Grow your team by accessing an exclusive pool of top engineering and business operations talent. + - Marketing and Design Help - Get strategic advice on product positioning, customer acquisition, and UI/UX design that can impact the growth of your business. + + Marketing and Design Help + + + Get strategic advice on product positioning, customer acquisition, and UI/UX design that can impact the growth of your business. + - Legal Resources - Obtain important legal documents and resources that will help you navigate the regulatory landscape. + + Legal Resources + + + Obtain important legal documents and resources that will help you navigate the regulatory landscape. +
@@ -72,8 +99,12 @@ export const NextEcosystem = () => ( - Apply for the program now - Have questions? Please join our Discord channel + + Apply for the program now + + + Have questions? Please join our Discord channel + @@ -81,7 +112,7 @@ export const NextEcosystem = () => (
- +
@@ -89,29 +120,3 @@ export const NextEcosystem = () => (
); - -const BenefitsList = styled.ul` - color: #000; - list-style: disc; - columns: auto 2; - column-gap: 80px; - - li { - margin-bottom: 1em; - } -`; - -const ChapterLink = styled(ReactRouterLink)` - font-size: 1.222222222rem; - display: block; - opacity: 0.8; - margin-bottom: 1.666666667rem; - - &:first-child { - opacity: 1; - } - - &:hover { - opacity: 1; - } -`; diff --git a/packages/website/ts/@next/pages/instant.tsx b/packages/website/ts/@next/pages/instant.tsx index a8707cdd7..29975193d 100644 --- a/packages/website/ts/@next/pages/instant.tsx +++ b/packages/website/ts/@next/pages/instant.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -import styled from 'styled-components'; import {colors} from 'ts/style/colors'; @@ -8,9 +7,9 @@ import {Column, Section, Wrap, WrapCentered} from 'ts/@next/components/layout'; import {SiteWrap} from 'ts/@next/components/siteWrap'; import {Heading, Paragraph} from 'ts/@next/components/text'; -import TokensIcon from 'ts/@next/icons/illustrations/tokens.svg'; import LogoOutlined from 'ts/@next/icons/illustrations/logo-outlined.svg'; import ProtocolIcon from 'ts/@next/icons/illustrations/protocol.svg'; +import TokensIcon from 'ts/@next/icons/illustrations/tokens.svg'; export const Next0xInstant = () => ( @@ -22,9 +21,7 @@ export const Next0xInstant = () => (
-
+
Preview of payment widgets @@ -108,7 +105,7 @@ export const Next0xInstant = () => (
- +
@@ -125,18 +122,3 @@ export const Next0xInstant = () => (
); - -const ChapterLink = styled.a ` - font-size: 1.222222222rem; - display: block; - opacity: 0.8; - margin-bottom: 1.666666667rem; - - &:first-child { - opacity: 1; - } - - &:hover { - opacity: 1; - } -`; 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 - - - - - -*/ - interface ProjectLogo { name: string; imageUrl?: string; @@ -83,11 +72,11 @@ export const NextLanding: React.StatelessComponent<{}> = () => ( - - @@ -99,22 +88,18 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
-
+
- + 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. - @@ -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 */} {/* NOTE: this probably should be withComponent as part of a
*/} - - + + 873,435 - + Number of transactions - - + + $203M - + Total volume - - + + 227,372 - + Number of relayers
-
+
You're in good company diff --git a/packages/website/ts/@next/pages/launchKit.tsx b/packages/website/ts/@next/pages/launchKit.tsx index dd0ff0758..cd86f66c9 100644 --- a/packages/website/ts/@next/pages/launchKit.tsx +++ b/packages/website/ts/@next/pages/launchKit.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -import styled from 'styled-components'; import {colors} from 'ts/style/colors'; @@ -8,17 +7,22 @@ import {Column, Section, Wrap, WrapCentered} from 'ts/@next/components/layout'; import {SiteWrap} from 'ts/@next/components/siteWrap'; import {Heading, Paragraph} from 'ts/@next/components/text'; -import TokensIcon from 'ts/@next/icons/illustrations/tokens.svg'; -import LogoOutlined from 'ts/@next/icons/illustrations/logo-outlined.svg'; import ProtocolIcon from 'ts/@next/icons/illustrations/protocol.svg'; +import TokensIcon from 'ts/@next/icons/illustrations/tokens.svg'; export const NextLaunchKit = () => (
- 0x Launch Kit - The definitive starting point for building a business on top of the 0x protocol. - + + 0x Launch Kit + + + The definitive starting point for building a business on top of the 0x protocol. + +
@@ -31,7 +35,9 @@ export const NextLaunchKit = () => ( > - Tap into and share liquidity with other relayers + + Tap into and share liquidity with other relayers + ( > - Tap into and share liquidity with other relayers + + Tap into and share liquidity with other relayers + ( > - Tap into and share liquidity with other relayers + + Tap into and share liquidity with other relayer + @@ -64,8 +74,12 @@ export const NextLaunchKit = () => ( - Working on a new token? - Easily create a secondary market for your asset/asset class + + Working on a new token? + + + Easily create a secondary market for your asset/asset clas +
@@ -76,8 +90,12 @@ export const NextLaunchKit = () => ( - Working on a new game? - Easily create an in-app marketplace + + Working on a new game? + + + Easily create an in-app marketplace +
@@ -88,8 +106,12 @@ export const NextLaunchKit = () => ( - No exchange in your location? - Build a 0x relayer for your contry’s market + + No exchange in your location? + + + Build a 0x relayer for your contry’s market +
@@ -97,17 +119,31 @@ export const NextLaunchKit = () => (
- 0x Instant Configurator - Liquidity Source - What tokens can users buy? (select all) - Transaction fee ETH address - Fee Percentage + + 0x Instant Configurator + + + Liquidity Source + + + What tokens can users buy? (select all) + + + Transaction fee ETH address + + + Fee Percentage + - Code Snippet + + Code Snippet + Explore the Docs - <code snippet> + + <code snippet> +
@@ -116,16 +152,24 @@ export const NextLaunchKit = () => ( - Need more flexibility? - Dive into our docs, or contact us if needed + + Need more flexibility? + + + Dive into our docs, or contact us if needed +
- - + +
@@ -135,25 +179,14 @@ export const NextLaunchKit = () => (
- Disclaimer: The laws and regulations applicable to the use and exchange of digital assets and blockchain-native tokens, including through any software developed using the licensed work created by ZeroEx Intl. (the “Work”), vary by jurisdiction. As set forth in the Apache License, Version 2.0 applicable to the Work, developers are “solely responsible for determining the appropriateness of using or redistributing the Work,” which includes responsibility for ensuring compliance with any such applicable laws and regulations. - See the Apache License, Version 2.0 for the specific language governing all applicable permissions and limitations. + + Disclaimer: The laws and regulations applicable to the use and exchange of digital assets and blockchain-native tokens, including through any software developed using the licensed work created by ZeroEx Intl. (the “Work”), vary by jurisdiction. As set forth in the Apache License, Version 2.0 applicable to the Work, developers are “solely responsible for determining the appropriateness of using or redistributing the Work,” which includes responsibility for ensuring compliance with any such applicable laws and regulations. + + + See the Apache License, Version 2.0 for the specific language governing all applicable permissions and limitations. +
); - -const ChapterLink = styled.a ` - font-size: 1.222222222rem; - display: block; - opacity: 0.8; - margin-bottom: 1.666666667rem; - - &:first-child { - opacity: 1; - } - - &:hover { - opacity: 1; - } -`; diff --git a/packages/website/ts/@next/pages/why.tsx b/packages/website/ts/@next/pages/why.tsx index 52268bd26..d922aac9e 100644 --- a/packages/website/ts/@next/pages/why.tsx +++ b/packages/website/ts/@next/pages/why.tsx @@ -9,7 +9,6 @@ import { Heading, Paragraph } from 'ts/@next/components/text'; import CoinIcon from 'ts/@next/icons/illustrations/coin.svg'; import CustomizeIcon from 'ts/@next/icons/illustrations/customize.svg'; -import LogoOutlined from 'ts/@next/icons/illustrations/logo-outlined.svg'; import ProtocolIcon from 'ts/@next/icons/illustrations/protocol.svg'; export const NextWhy = () => ( -- cgit