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

Commit 42f81ca

Browse files
committed
[pricing]: add per user/month to the cloud plans.
1 parent 760784d commit 42f81ca

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

src/components/PricingBox.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const StyledPricingBox = styled.div<StyledPricingBoxProps>`
1919
margin: 2rem 1rem;
2020
padding: 3rem 2.8rem;
2121
font-size: 95%;
22-
min-height: ${({ isTitleOutside }) => (isTitleOutside ? '42rem' : '48rem')};
22+
min-height: ${({ isTitleOutside }) => (isTitleOutside ? '42rem' : '51rem')};
2323
min-width: 20rem;
2424
max-width: 26rem;
2525
width: 25%;
@@ -261,6 +261,7 @@ export interface PricingBoxProps {
261261
info?: string
262262
areFeaturesBold?: boolean
263263
boldFeaturesCount?: number
264+
perUserMonth?: boolean
264265
}
265266

266267
const PricingBox: React.SFC<PricingBoxProps> = ({
@@ -284,7 +285,8 @@ const PricingBox: React.SFC<PricingBoxProps> = ({
284285
isTitleOutside,
285286
info,
286287
areFeaturesBold,
287-
boldFeaturesCount = 0
288+
boldFeaturesCount = 0,
289+
perUserMonth
288290
}) => (
289291
<StyledPricingBox
290292
transform={transform}
@@ -298,6 +300,7 @@ const PricingBox: React.SFC<PricingBoxProps> = ({
298300
<h4>{title}</h4>
299301
{img ? img : null}
300302
{price ? <div className="price">{price}</div> : null}
303+
{ perUserMonth ? <div className="duration" style={{fontWeight: 400}}>per user/month</div> : null }
301304
{duration ? <div className="duration">{duration}</div> : null}
302305
{feature ? <div className="feature">{feature}</div> : null}
303306
{features && features.length ? (

src/components/pricing/PricingBoxes.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const selfHostedPlans: PricingBoxProps[] = [
5656
features: ['Unlimited Use', 'Private & Public Repos'],
5757
price: (
5858
<>
59-
{isEurope() ? '€0' : '$0'} <span>/ month</span>
59+
{isEurope() ? '€0' : '$0'}
6060
</>
6161
),
6262
btnText: 'Install Now',
@@ -70,7 +70,7 @@ const selfHostedPlans: PricingBoxProps[] = [
7070
features: ['Unlimited Prebuilds', 'Shared Workspaces', 'Snapshots', 'Admin Dashboard', 'Unlimited Use', 'Private & Public Repos'],
7171
price: (
7272
<>
73-
{isEurope() ? '€18' : '$20'} <span>/ month</span>
73+
{isEurope() ? '€18' : '$20'}
7474
</>
7575
),
7676
duration: 'Per user',
@@ -88,23 +88,22 @@ const plans: PricingBoxProps[] = [
8888
price: (
8989
<>
9090
{isEurope() ? '€0' : '$0'}
91-
<span> / month</span>
9291
</>
9392
),
94-
duration: '50 hours / month',
95-
features: ['Public Repos', 'Private Repos (30-Day Trial)']
93+
perUserMonth: true,
94+
features: [<strong>50 hours/month</strong>, 'Public Repos', 'Private Repos (30-Day Trial)']
9695
},
9796
{
9897
title: 'Personal',
9998
img: <object role="presentation" tabIndex={-1} data={LightBulb} />,
10099
price: (
101100
<>
102101
{isEurope() ? '€8' : '$9'}
103-
<span> / month</span>
104102
</>
105103
),
106-
duration: '100 hours / month',
104+
perUserMonth: true,
107105
features: [
106+
<strong>100 hours / month</strong>,
108107
'Private & Public Repos',
109108
<span className="span">
110109
4 Parallel Workspaces <PopOver description="The maximum number of workspaces a user can run at the same time" />
@@ -122,11 +121,11 @@ const plans: PricingBoxProps[] = [
122121
price: (
123122
<>
124123
{isEurope() ? '€23' : '$25'}
125-
<span> / month</span>
126124
</>
127125
),
128-
duration: 'Unlimited hours',
126+
perUserMonth: true,
129127
features: [
128+
<strong>Unlimited hours</strong>,
130129
'Private & Public Repos',
131130
<span className="span">
132131
8 Parallel Workspaces <PopOver description="The maximum number of workspaces a user can run at the same time" />
@@ -150,11 +149,11 @@ const plans: PricingBoxProps[] = [
150149
price: (
151150
<>
152151
{isEurope() ? '€35' : '$39'}
153-
<span> / month</span>
154152
</>
155153
),
156-
duration: 'Unlimited hours',
154+
perUserMonth: true,
157155
features: [
156+
<strong>Unlimited hours</strong>,
158157
'Private & Public Repos',
159158
<span className="span">
160159
16 Parallel Workspaces <PopOver description="The maximum number of workspaces a user can run at the same time" />

0 commit comments

Comments
 (0)