From 19e65965c898f401acf2961f049108141352ce82 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 17 Dec 2018 14:19:10 +0100 Subject: Add market maker page --- packages/website/ts/@next/pages/market_maker.tsx | 127 +++++++++++++++++++++++ packages/website/ts/index.tsx | 2 + packages/website/ts/types.ts | 1 + 3 files changed, 130 insertions(+) create mode 100644 packages/website/ts/@next/pages/market_maker.tsx (limited to 'packages/website') diff --git a/packages/website/ts/@next/pages/market_maker.tsx b/packages/website/ts/@next/pages/market_maker.tsx new file mode 100644 index 000000000..aa14d4030 --- /dev/null +++ b/packages/website/ts/@next/pages/market_maker.tsx @@ -0,0 +1,127 @@ +import * as _ from 'lodash'; +import * as React from 'react'; + +import {Hero} from 'ts/@next/components/hero'; + +import { Banner } from 'ts/@next/components/banner'; +import { Button } from 'ts/@next/components/button'; +import { Definition } from 'ts/@next/components/definition'; +import { Icon } from 'ts/@next/components/icon'; +import { SiteWrap } from 'ts/@next/components/siteWrap'; + +import { ModalContact } from 'ts/@next/components/modals/modal_contact'; +import {Section} from 'ts/@next/components/newLayout'; + +import { WebsitePaths } from 'ts/types'; + +const offersData = [ + { + icon: 'supportForAllEthereumStandards', + title: 'Comprehensive Tutorials', + description: 'Stay on the bleeding edge of crypto by learning how to market make on decentralized exchanges. The network of 0x relayers provides market makers a first-mover advantage to capture larger spreads, arbitrage markets, and access a long-tail of new tokens not currently listed on centralized exchanges.', + }, + { + icon: 'generateRevenueForYourBusiness-large', + title: 'Market Making Compensation', + description: ( + + ), + }, + { + icon: 'getInTouch', + title: 'Personalized Support', + description: 'The 0x MM Success Manager will walk you through how to read 0x order types, spin up an Ethereum node, set up your MM bot, and execute trades on the blockchain. We are more than happy to promptly answer your questions and give you complete onboarding assistance.', + }, +]; + +export class NextMarketMaker extends React.Component { + public state = { + isContactModalOpen: false, + }; + public render(): React.ReactNode { + return ( + + } + /> + +
+ + + + + +
+ +
+ {_.map(offersData, (item, index) => ( + + ))} +
+ + + +
+ ); + } + + public _onOpenContactModal = (): void => { + this.setState({ isContactModalOpen: true }); + } + + public _onDismissContactModal = (): void => { + this.setState({ isContactModalOpen: false }); + } +} + +const HeroActions = () => ( + <> + + +); diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx index e9f629c09..ff44946dc 100644 --- a/packages/website/ts/index.tsx +++ b/packages/website/ts/index.tsx @@ -30,6 +30,7 @@ import { Next0xInstant } from 'ts/@next/pages/instant'; import { NextLanding } from 'ts/@next/pages/landing'; import { NextLaunchKit } from 'ts/@next/pages/launch_kit'; import { NextWhy } from 'ts/@next/pages/why'; +import { NextMarketMaker } from 'ts/@next/pages/market_maker'; // Check if we've introduced an update that requires us to clear the tradeHistory local storage entries tradeHistoryStorage.clearIfRequired(); @@ -107,6 +108,7 @@ render( + diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts index 73e248713..064085324 100644 --- a/packages/website/ts/types.ts +++ b/packages/website/ts/types.ts @@ -359,6 +359,7 @@ export enum WebsitePaths { LaunchKit = '/launch-kit', Instant = '/instant', Ecosystem = '/ecosystem', + MarketMaker = '/market-maker', Why = '/why', Whitepaper = '/pdfs/0x_white_paper.pdf', SmartContracts = '/docs/contracts', -- cgit v1.2.3