diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-12-10 22:55:28 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-10 22:55:28 +0800 |
commit | 3506c0e5013c565a4d9b40d4dcd406e77ef1448d (patch) | |
tree | e5cc607d34c5e11a30e73ce248b24758fa69b51d /packages/website | |
parent | 93eb31f7a06f753fa0853f8b4fdf04fd073ab616 (diff) | |
download | dexon-sol-tools-3506c0e5013c565a4d9b40d4dcd406e77ef1448d.tar dexon-sol-tools-3506c0e5013c565a4d9b40d4dcd406e77ef1448d.tar.gz dexon-sol-tools-3506c0e5013c565a4d9b40d4dcd406e77ef1448d.tar.bz2 dexon-sol-tools-3506c0e5013c565a4d9b40d4dcd406e77ef1448d.tar.lz dexon-sol-tools-3506c0e5013c565a4d9b40d4dcd406e77ef1448d.tar.xz dexon-sol-tools-3506c0e5013c565a4d9b40d4dcd406e77ef1448d.tar.zst dexon-sol-tools-3506c0e5013c565a4d9b40d4dcd406e77ef1448d.zip |
Refactor press highlgihts
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/public/images/@next/press/logo-techcrunch.png | bin | 0 -> 2332 bytes | |||
-rw-r--r-- | packages/website/public/images/@next/press/logo-venturebeat.png | bin | 0 -> 2660 bytes | |||
-rw-r--r-- | packages/website/ts/@next/pages/about/press.tsx | 87 |
3 files changed, 48 insertions, 39 deletions
diff --git a/packages/website/public/images/@next/press/logo-techcrunch.png b/packages/website/public/images/@next/press/logo-techcrunch.png Binary files differnew file mode 100644 index 000000000..7f260d0ea --- /dev/null +++ b/packages/website/public/images/@next/press/logo-techcrunch.png diff --git a/packages/website/public/images/@next/press/logo-venturebeat.png b/packages/website/public/images/@next/press/logo-venturebeat.png Binary files differnew file mode 100644 index 000000000..2086bf0b7 --- /dev/null +++ b/packages/website/public/images/@next/press/logo-venturebeat.png 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 }) => ( + <> + <Wrap> + <Column colWidth="1/3"> + <img src={highlight.logo} alt={highlight.title} /> + </Column> + <Column colWidth="2/3"> + <Paragraph isMuted={false}>{highlight.text}</Paragraph> + <Link href={highlight.href}>Read Article</Link> + </Column> + </Wrap> + <Separator/> + </> +); + export const NextAboutPress = () => ( <SiteWrap theme="light"> <Section> @@ -21,45 +66,9 @@ export const NextAboutPress = () => ( <Heading size="medium">Press Highlights</Heading> <Paragraph size="medium">Want to write about 0x? Get in touch, or download our press kit.</Paragraph> - <Wrap> - <Column colWidth="1/3"> - <img src="/images/@next/press/logo-fortune.png" width="100" alt="Fortune"/> - </Column> - <Column colWidth="2/3"> - <Paragraph isMuted={false}>The difference is that 0x is decentralized, operating as a series of anonymous nodes...</Paragraph> - <a href="#">Read Article</a> - </Column> - </Wrap> - - <Wrap> - <Column colWidth="1/3"> - <img src="/images/@next/press/logo-fortune.png" width="100" alt="Fortune"/> - </Column> - <Column colWidth="2/3"> - <Paragraph isMuted={false}>The difference is that 0x is decentralized, operating as a series of anonymous nodes...</Paragraph> - <a href="#">Read Article</a> - </Column> - </Wrap> - - <Wrap> - <Column colWidth="1/3"> - <img src="/images/@next/press/logo-fortune.png" width="100" alt="Fortune"/> - </Column> - <Column colWidth="2/3"> - <Paragraph isMuted={false}>The difference is that 0x is decentralized, operating as a series of anonymous nodes...</Paragraph> - <a href="#">Read Article</a> - </Column> - </Wrap> + <Separator/> - <Wrap> - <Column colWidth="1/3"> - <img src="/images/@next/press/logo-fortune.png" width="100" alt="Fortune"/> - </Column> - <Column colWidth="2/3"> - <Paragraph isMuted={false}>The difference is that 0x is decentralized, operating as a series of anonymous nodes...</Paragraph> - <a href="#">Read Article</a> - </Column> - </Wrap> + {_.map(highlights, (highlight, index) => <Highlight key={`highlight-${index}`} highlight={highlight} /> )} </Column> </Wrap> </Section> |