From ba89429aecbb608182897f70c72acdb0323518f9 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Fri, 14 Dec 2018 13:19:22 +0100 Subject: Tweak definition --- packages/website/ts/@next/components/definition.tsx | 18 +++++++++--------- packages/website/ts/@next/pages/launch_kit.tsx | 6 +++++- packages/website/ts/@next/pages/why.tsx | 5 +++++ 3 files changed, 19 insertions(+), 10 deletions(-) (limited to 'packages') diff --git a/packages/website/ts/@next/components/definition.tsx b/packages/website/ts/@next/components/definition.tsx index 4155db472..294c194a5 100644 --- a/packages/website/ts/@next/components/definition.tsx +++ b/packages/website/ts/@next/components/definition.tsx @@ -3,7 +3,7 @@ import styled from 'styled-components'; import { Button } from 'ts/@next/components/button'; import { Icon } from 'ts/@next/components/icon'; -import { Paragraph } from 'ts/@next/components/text'; +import { Paragraph, Heading } from 'ts/@next/components/text'; interface Action { label: string; @@ -18,6 +18,7 @@ interface Props { icon: string; iconSize?: 'medium' | 'large' | number; title: string; + titleSize?: 'small' | 'default' | number; description: React.ReactNode | string; actions?: Action[]; } @@ -31,9 +32,14 @@ export const Definition = (props: Props) => ( /> - + <Heading + asElement="h2" + fontWeight="400" + marginBottom={props.titleSize === 'small' ? '7px' : '15px'} + size={props.titleSize || 'default'} + > {props.title} - + {props.description} @@ -91,12 +97,6 @@ const TextWrap = styled.div` } `; -const Title = styled.h2` - font-size: 20px; - line-height: 1.3; - margin-bottom: 15px; -`; - const LinkWrap = styled.div` display: inline-flex; margin-top: 60px; diff --git a/packages/website/ts/@next/pages/launch_kit.tsx b/packages/website/ts/@next/pages/launch_kit.tsx index 9318d8a6a..c3447f12f 100644 --- a/packages/website/ts/@next/pages/launch_kit.tsx +++ b/packages/website/ts/@next/pages/launch_kit.tsx @@ -55,6 +55,7 @@ export class NextLaunchKit extends React.PureComponent { > ))} diff --git a/packages/website/ts/@next/pages/why.tsx b/packages/website/ts/@next/pages/why.tsx index 6010b9c8a..b54a682ff 100644 --- a/packages/website/ts/@next/pages/why.tsx +++ b/packages/website/ts/@next/pages/why.tsx @@ -101,6 +101,7 @@ export class NextWhy extends React.PureComponent { > @@ -171,6 +175,7 @@ export class NextWhy extends React.PureComponent { key={`functionality-${index}`} icon={item.icon} title={item.title} + titleSize="small" description={item.description} isWithMargin={true} /> -- cgit v1.2.3