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 --- .../public/images/@next/press/logo-techcrunch.png | Bin 0 -> 2332 bytes .../public/images/@next/press/logo-venturebeat.png | Bin 0 -> 2660 bytes packages/website/ts/@next/pages/about/press.tsx | 87 ++++++++++++--------- 3 files changed, 48 insertions(+), 39 deletions(-) create mode 100644 packages/website/public/images/@next/press/logo-techcrunch.png create mode 100644 packages/website/public/images/@next/press/logo-venturebeat.png (limited to 'packages') diff --git a/packages/website/public/images/@next/press/logo-techcrunch.png b/packages/website/public/images/@next/press/logo-techcrunch.png new file mode 100644 index 000000000..7f260d0ea Binary files /dev/null and b/packages/website/public/images/@next/press/logo-techcrunch.png differ diff --git a/packages/website/public/images/@next/press/logo-venturebeat.png b/packages/website/public/images/@next/press/logo-venturebeat.png new file mode 100644 index 000000000..2086bf0b7 Binary files /dev/null and b/packages/website/public/images/@next/press/logo-venturebeat.png differ 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