aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-14 20:19:22 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-14 21:00:26 +0800
commitba89429aecbb608182897f70c72acdb0323518f9 (patch)
treedf2670b89588650f8bca2998d19efa6d67007b36 /packages/website/ts/@next/components
parentee380316962c1a09944f2ac62125551dc49feffd (diff)
downloaddexon-0x-contracts-ba89429aecbb608182897f70c72acdb0323518f9.tar
dexon-0x-contracts-ba89429aecbb608182897f70c72acdb0323518f9.tar.gz
dexon-0x-contracts-ba89429aecbb608182897f70c72acdb0323518f9.tar.bz2
dexon-0x-contracts-ba89429aecbb608182897f70c72acdb0323518f9.tar.lz
dexon-0x-contracts-ba89429aecbb608182897f70c72acdb0323518f9.tar.xz
dexon-0x-contracts-ba89429aecbb608182897f70c72acdb0323518f9.tar.zst
dexon-0x-contracts-ba89429aecbb608182897f70c72acdb0323518f9.zip
Tweak definition
Diffstat (limited to 'packages/website/ts/@next/components')
-rw-r--r--packages/website/ts/@next/components/definition.tsx18
1 files changed, 9 insertions, 9 deletions
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) => (
/>
<TextWrap {...props}>
- <Title>
+ <Heading
+ asElement="h2"
+ fontWeight="400"
+ marginBottom={props.titleSize === 'small' ? '7px' : '15px'}
+ size={props.titleSize || 'default'}
+ >
{props.title}
- </Title>
+ </Heading>
<Paragraph isMuted={true}>
{props.description}
@@ -91,12 +97,6 @@ const TextWrap = styled.div<Props>`
}
`;
-const Title = styled.h2`
- font-size: 20px;
- line-height: 1.3;
- margin-bottom: 15px;
-`;
-
const LinkWrap = styled.div`
display: inline-flex;
margin-top: 60px;