diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-18 08:01:21 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-18 08:01:21 +0800 |
commit | c5f85a365bc9f478de03229d362463b489f7b0d3 (patch) | |
tree | a56493a6e1c95994a42bc625972ea11dae8bba5e /packages/website/ts | |
parent | 14767f1a513c47c616d9ed3783f6c2bbe6963fef (diff) | |
download | dexon-sol-tools-c5f85a365bc9f478de03229d362463b489f7b0d3.tar dexon-sol-tools-c5f85a365bc9f478de03229d362463b489f7b0d3.tar.gz dexon-sol-tools-c5f85a365bc9f478de03229d362463b489f7b0d3.tar.bz2 dexon-sol-tools-c5f85a365bc9f478de03229d362463b489f7b0d3.tar.lz dexon-sol-tools-c5f85a365bc9f478de03229d362463b489f7b0d3.tar.xz dexon-sol-tools-c5f85a365bc9f478de03229d362463b489f7b0d3.tar.zst dexon-sol-tools-c5f85a365bc9f478de03229d362463b489f7b0d3.zip |
Allow banner to open in new window
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/@next/components/banner.tsx | 8 | ||||
-rw-r--r-- | packages/website/ts/@next/pages/launch_kit.tsx | 8 |
2 files changed, 13 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/banner.tsx b/packages/website/ts/@next/components/banner.tsx index 40ec22c3f..982e764af 100644 --- a/packages/website/ts/@next/components/banner.tsx +++ b/packages/website/ts/@next/components/banner.tsx @@ -21,6 +21,7 @@ interface CTAButton { text: string; href?: string; onClick?: () => void; + shouldOpenInNewTab?: boolean; } interface BorderProps { @@ -46,7 +47,12 @@ export const Banner: React.StatelessComponent<Props> = (props: Props) => { <Column> <ButtonWrap> {mainCta && ( - <Button color={colors.white} isTransparent={false} href={mainCta.href}> + <Button + color={colors.white} + isTransparent={false} + href={mainCta.href} + target={mainCta.shouldOpenInNewTab ? '_blank' : ''} + > {mainCta.text} </Button> )} diff --git a/packages/website/ts/@next/pages/launch_kit.tsx b/packages/website/ts/@next/pages/launch_kit.tsx index 189c46892..7b15e5352 100644 --- a/packages/website/ts/@next/pages/launch_kit.tsx +++ b/packages/website/ts/@next/pages/launch_kit.tsx @@ -89,7 +89,11 @@ export class NextLaunchKit extends React.Component { <Banner heading="Need more flexibility?" subline="Dive into our docs, or contact us if needed" - mainCta={{ text: 'Get Started', href: '/docs' }} + mainCta={{ + text: 'Get Started', + href: 'https://github.com/0xProject/0x-launch-kit/#table-of-contents', + shouldOpenInNewTab: true, + }} secondaryCta={{ text: 'Get in Touch', onClick: this._onOpenContactModal.bind(this) }} /> <ModalContact isOpen={this.state.isContactModalOpen} onDismiss={this._onDismissContactModal} /> @@ -108,7 +112,7 @@ export class NextLaunchKit extends React.Component { const HeroActions = () => ( <React.Fragment> - <Button href="https://github.com/0xProject/0x-launch-kit" isInline={true}> + <Button href="https://github.com/0xProject/0x-launch-kit" isInline={true} target="_blank"> Get Started </Button> |