From 3506c0e5013c565a4d9b40d4dcd406e77ef1448d Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 10 Dec 2018 15:55:28 +0100 Subject: Refactor press highlgihts --- packages/website/ts/@next/pages/about/press.tsx | 87 ++++++++++++++----------- 1 file changed, 48 insertions(+), 39 deletions(-) (limited to 'packages/website/ts/@next/pages') diff --git a/packages/website/ts/@next/pages/about/press.tsx b/packages/website/ts/@next/pages/about/press.tsx index db2a631e7..80307a98f 100644 --- a/packages/website/ts/@next/pages/about/press.tsx +++ b/packages/website/ts/@next/pages/about/press.tsx @@ -1,12 +1,57 @@ import * as React from 'react'; -import { Link as ReactRouterLink } from 'react-router-dom'; +import * as _ from 'lodash'; import styled from 'styled-components'; import { ChapterLink } from 'ts/@next/components/chapter_link'; import { Column, Section, Wrap } from 'ts/@next/components/layout'; +import { Link } from 'ts/@next/components/link'; +import { Separator } from 'ts/@next/components/separator'; import { SiteWrap } from 'ts/@next/components/siteWrap'; import { Heading, Paragraph } from 'ts/@next/components/text'; +interface HighlightInterface { + logo: string; + title?: string; + text: string; + href: string; +} + +const highlights: HighlightInterface[] = [ + { + logo: '/images/@next/press/logo-venturebeat.png', + title: 'VentureBeat', + text: '0x leads the way for ‘tokenization’ of the world, and collectible game items are next', + href: '#', + }, + { + logo: '/images/@next/press/logo-fortune.png', + title: 'Fortune', + text: 'In the future, many traditional investments like real estate and corporate shares will come in the form of digital tokens that are bought and transferred on a blockchain. ', + href: '#', + }, + { + logo: '/images/@next/press/logo-techcrunch.png', + title: 'TechCrunch', + text: '0x allows any developer to quickly build their own decentralized cryptocurrency exchange and decide their own fees.', + href: '#', + }, +]; + +const Highlight = ({ highlight }) => ( + <> + + + {highlight.title} + + + {highlight.text} + Read Article + + + + +); + export const NextAboutPress = () => (
@@ -21,45 +66,9 @@ export const NextAboutPress = () => ( Press Highlights Want to write about 0x? Get in touch, or download our press kit. - - - Fortune - - - The difference is that 0x is decentralized, operating as a series of anonymous nodes... - Read Article - - - - - - Fortune - - - The difference is that 0x is decentralized, operating as a series of anonymous nodes... - Read Article - - - - - - Fortune - - - The difference is that 0x is decentralized, operating as a series of anonymous nodes... - Read Article - - + - - - Fortune - - - The difference is that 0x is decentralized, operating as a series of anonymous nodes... - Read Article - - + {_.map(highlights, (highlight, index) => )}
-- cgit v1.2.3