From e0475ce84edbc2a007127824104e2e906a0743f3 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 3 Dec 2018 14:00:54 +0100 Subject: Added project logos --- packages/website/ts/@next/pages/landing.tsx | 65 ++++++++++++++++++++++++++--- 1 file changed, 60 insertions(+), 5 deletions(-) (limited to 'packages/website') diff --git a/packages/website/ts/@next/pages/landing.tsx b/packages/website/ts/@next/pages/landing.tsx index 9ea050af7..6371bba82 100644 --- a/packages/website/ts/@next/pages/landing.tsx +++ b/packages/website/ts/@next/pages/landing.tsx @@ -25,6 +25,50 @@ import SupportIcon from 'ts/@next/icons/illustrations/support.svg'; */ +interface ProjectLogo { + name: string; + imageUrl?: string; +} + +const projects: ProjectLogo[] = [ + { + name: 'Radar Relay', + imageUrl: '/images/@next/relayer-logos/logo_1.png', + }, + { + name: 'Paradex', + imageUrl: '/images/@next/relayer-logos/logo_5.png', + }, + { + name: 'Amadeus', + imageUrl: '/images/@next/relayer-logos/logo_3.png', + }, + { + name: 'The Ocean X', + imageUrl: '/images/@next/relayer-logos/logo_4.png', + }, + { + name: 'Paradex', + imageUrl: '/images/@next/relayer-logos/logo_5.png', + }, + { + name: 'Decent EX', + imageUrl: '/images/@next/relayer-logos/logo_2.1.png', + }, + { + name: 'dEX', + imageUrl: '/images/@next/relayer-logos/logo_2.2.png', + }, + { + name: 'OpenRelay', + imageUrl: '/images/@next/relayer-logos/logo_2.3.png', + }, + { + name: 'DDEX', + imageUrl: '/images/@next/relayer-logos/logo_2.png', + }, +]; + export const NextLanding: React.StatelessComponent<{}> = () => (
@@ -138,8 +182,8 @@ export const NextLanding: React.StatelessComponent<{}> = () => ( - {_.map([...Array(9)], (item, index) => ( - + {_.map(projects, (item: ProjectLogo, index) => ( + ))}
@@ -170,10 +214,21 @@ export const NextLanding: React.StatelessComponent<{}> = () => (
); +const Project = ({ name, imageUrl }: ProjectLogo) => ( + + {name} + +); -const SampleLogo = styled.div` - width: 60px; - height: 60px; +const StyledProject = styled.div` + width: 80px; + height: 116px; border: 1px solid blue; margin: 30px 60px; + + img { + object-fit: contain; + width: 100%; + height: 100%; + } `; -- cgit