From 1bba985124549aab3b79fa9834c613c2fe829b51 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Thu, 29 Nov 2018 14:18:19 +0100 Subject: Add text and illustrations for home --- packages/website/ts/@next/components/text.tsx | 24 +++++++++++++++++++++- .../ts/@next/icons/illustrations/protocol.svg | 1 + .../@next/icons/illustrations/ready-to-build.svg | 1 + .../ts/@next/icons/illustrations/support.svg | 1 + packages/website/ts/@next/pages/landing.tsx | 14 +++++++++++-- 5 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 packages/website/ts/@next/icons/illustrations/protocol.svg create mode 100644 packages/website/ts/@next/icons/illustrations/ready-to-build.svg create mode 100644 packages/website/ts/@next/icons/illustrations/support.svg (limited to 'packages') diff --git a/packages/website/ts/@next/components/text.tsx b/packages/website/ts/@next/components/text.tsx index 624ab760d..5b1ee9d92 100644 --- a/packages/website/ts/@next/components/text.tsx +++ b/packages/website/ts/@next/components/text.tsx @@ -4,7 +4,8 @@ import styled from 'styled-components'; import { colors } from 'ts/style/colors'; export interface Props { - size?: string; + size?: 'normal' | 'medium' | 'large'; + center?: boolean; } const StyledHeading = styled.h1` @@ -20,6 +21,18 @@ const StyledIntro = styled.p` line-height: 1.823529412em; `; +const StyledText = styled.p` + color: ${colors.white}; + font-size: 1rem; + ${(props: Props) => props.size === 'medium' && ` + font-size: 1.555555556rem; + line-height: 1.357142857em; + `} + ${(props: Props) => props.center && ` + text-align: center + `} +`; + export const Heading: React.StatelessComponent = ({ children }) => ( {children} ); @@ -27,3 +40,12 @@ export const Heading: React.StatelessComponent = ({ children }) => ( export const Intro: React.StatelessComponent = ({ children }) => ( {children} ); + +export const Text: React.StatelessComponent = ({ children, ...props }) => ( + {children} +); + +Text.defaultProps = { + size: 'normal', + center: false, +}; diff --git a/packages/website/ts/@next/icons/illustrations/protocol.svg b/packages/website/ts/@next/icons/illustrations/protocol.svg new file mode 100644 index 000000000..71453194a --- /dev/null +++ b/packages/website/ts/@next/icons/illustrations/protocol.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/website/ts/@next/icons/illustrations/ready-to-build.svg b/packages/website/ts/@next/icons/illustrations/ready-to-build.svg new file mode 100644 index 000000000..f3e44d53a --- /dev/null +++ b/packages/website/ts/@next/icons/illustrations/ready-to-build.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/website/ts/@next/icons/illustrations/support.svg b/packages/website/ts/@next/icons/illustrations/support.svg new file mode 100644 index 000000000..d3f2294cc --- /dev/null +++ b/packages/website/ts/@next/icons/illustrations/support.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/website/ts/@next/pages/landing.tsx b/packages/website/ts/@next/pages/landing.tsx index 463d53d44..849437c26 100644 --- a/packages/website/ts/@next/pages/landing.tsx +++ b/packages/website/ts/@next/pages/landing.tsx @@ -5,12 +5,15 @@ import { colors } from 'ts/style/colors' import { Button, ButtonTransparent } from 'ts/@next/components/button'; import { Column, Section, Wrap } from 'ts/@next/components/layout'; import { SiteWrap } from 'ts/@next/components/siteWrap'; -import { Heading, Intro } from 'ts/@next/components/text'; +import { Heading, Intro, Text } from 'ts/@next/components/text'; import logoOutlined from 'ts/@next/icons/illustrations/logo-outlined.svg'; +import protocol from 'ts/@next/icons/illustrations/protocol.svg'; const Icon = styled.div` flex-shrink: 0; + + ${props => props.center && `text-align: center`} `; export const NextLanding = () => ( @@ -22,7 +25,7 @@ export const NextLanding = () => ( 0x is the best solution for adding exchange functionality to your business.
@@ -31,6 +34,13 @@ export const NextLanding = () => ( + +
+ + 0x is the best solution for adding exchange functionality to your business. + Discover how developers use 0x (need arrow + line under) +
+
-- cgit v1.2.3