Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 468d34f

Browse files
nisarhassan12svenefftinge
authored andcommitted
[pricing] add charge your company to the bottom of the cards.
1 parent 154ca06 commit 468d34f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/PricingBox.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
22

33
import styled from '@emotion/styled'
4-
import PopOver from './PopOver'
54
import { colors, shadows, sizes } from '../styles/variables'
65
import IconTick from '../resources/icon-tick.svg'
76

@@ -214,7 +213,8 @@ const StyledPricingBox = styled.div<StyledPricingBoxProps>`
214213
}
215214
}
216215
217-
.create-team {
216+
.sub-action {
217+
font-size: 90%;
218218
margin-top: .5rem;
219219
padding-bottom: 0;
220220
}
@@ -242,7 +242,7 @@ export interface PricingBoxProps {
242242
banner?: string,
243243
bannerColor?: string,
244244
backgroundColor?: string,
245-
renderCreateTeamLink?: boolean
245+
subAction?: JSX.Element
246246
}
247247

248248
const PricingBox: React.SFC<PricingBoxProps> = ({
@@ -263,7 +263,7 @@ const PricingBox: React.SFC<PricingBoxProps> = ({
263263
banner,
264264
bannerColor,
265265
backgroundColor,
266-
renderCreateTeamLink
266+
subAction
267267
}) => (
268268
<StyledPricingBox
269269
transform={transform}
@@ -294,7 +294,7 @@ const PricingBox: React.SFC<PricingBoxProps> = ({
294294
<br />
295295
{text ? <p className="text">{text}</p> : null}
296296
{btn ? btn : null}
297-
{renderCreateTeamLink ? <a href="https://gitpod.io/teams/" target="_blank" className="create-team">Create Team <PopOver textPosition="bottom" description="Setup Gitpod for an entire team with a single invoice and credit card." /></a> : <div aria-hidden="true" className="spacer"></div>}
297+
{subAction ? subAction : <div aria-hidden="true" className="spacer"></div>}
298298
</div>
299299
{banner ? <div className="banner"><p>{banner}</p></div> : null}
300300
</StyledPricingBox>

src/components/pricing/PricingBoxes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const plans: PricingBoxProps[] = [
6969
btnText: 'Buy Now',
7070
btnBackground: true,
7171
link: 'https://gitpod.io/subscription/',
72-
renderCreateTeamLink: true
72+
subAction: <a href="https://gitpod.io/teams/" target="_blank" className="sub-action">Charge your Company <PopOver textPosition="bottom" description="TDB" /></a>
7373
},
7474
{
7575
title: 'Unlimited',
@@ -79,7 +79,7 @@ const plans: PricingBoxProps[] = [
7979
features: ['Private & Public Repos', <span className="span">16 Parallel Workspaces <PopOver description="The number of workspaces running at the same time." /></span>, <span className="span">1h Timeout <PopOver description="Workspaces without user activity are stopped after 1 hour." /></span>, <span className="span">3h Timeout Boost <PopOver description="You can manually boost the timeout to 3 hours within a running workspace." /></span>],
8080
btnText: 'Buy Now',
8181
link: 'https://gitpod.io/subscription/',
82-
renderCreateTeamLink: true
82+
subAction: <a href="https://gitpod.io/teams/" target="_blank" className="sub-action">Charge your Company <PopOver textPosition="bottom" description="TDB" /></a>
8383
}
8484
]
8585

0 commit comments

Comments
 (0)