Adds buttonWrapper
This commit is contained in:
@@ -18,6 +18,16 @@ export const Button: React.StatelessComponent<ButtonInterface> = props => {
|
|||||||
return <Component {...props}>{ props.children }</Component>;
|
return <Component {...props}>{ props.children }</Component>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Added this, & + & doesnt really work since we switch with element types...
|
||||||
|
export const ButtonWrap = styled.div`
|
||||||
|
button + button,
|
||||||
|
a + a,
|
||||||
|
a + button,
|
||||||
|
button + a {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
const StyledButton = styled.button<ButtonInterface>`
|
const StyledButton = styled.button<ButtonInterface>`
|
||||||
appearance: none;
|
appearance: none;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { colors } from 'ts/style/colors'
|
import { colors } from 'ts/style/colors'
|
||||||
import { Button } from 'ts/@next/components/button';
|
import { Button, ButtonWrap } from 'ts/@next/components/button';
|
||||||
import { Column, Section, Wrap, WrapCentered } from 'ts/@next/components/layout';
|
import { Column, Section, Wrap, WrapCentered } from 'ts/@next/components/layout';
|
||||||
import { SiteWrap } from 'ts/@next/components/siteWrap';
|
import { SiteWrap } from 'ts/@next/components/siteWrap';
|
||||||
import { Heading, Intro, Text } from 'ts/@next/components/text';
|
import { Heading, Intro, Text } from 'ts/@next/components/text';
|
||||||
@@ -22,7 +22,8 @@ export const NextLanding = () => (
|
|||||||
<Column colWidth="2/3">
|
<Column colWidth="2/3">
|
||||||
<Heading>Powering Decentralized Exchange</Heading>
|
<Heading>Powering Decentralized Exchange</Heading>
|
||||||
<Intro>0x is the best solution for adding exchange functionality to your business.</Intro>
|
<Intro>0x is the best solution for adding exchange functionality to your business.</Intro>
|
||||||
<div>
|
|
||||||
|
<ButtonWrap>
|
||||||
<Button inline>
|
<Button inline>
|
||||||
Get Started
|
Get Started
|
||||||
</Button>
|
</Button>
|
||||||
@@ -30,7 +31,7 @@ export const NextLanding = () => (
|
|||||||
<Button transparent inline>
|
<Button transparent inline>
|
||||||
Learn More
|
Learn More
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</ButtonWrap>
|
||||||
</Column>
|
</Column>
|
||||||
|
|
||||||
<Column colWidth="1/3">
|
<Column colWidth="1/3">
|
||||||
|
|||||||
Reference in New Issue
Block a user