@@ -6,6 +6,7 @@ import usePrefersReducedMotion from '../../utils/isReducedMOtion';
6
6
import {
7
7
BoxPlan ,
8
8
BoxPlanButton ,
9
+ BoxPlanList ,
9
10
BoxPlanPrice ,
10
11
Caption ,
11
12
ComparePlansLink ,
@@ -15,7 +16,30 @@ import { formatCurrency } from './_utils';
15
16
/**
16
17
* Main component
17
18
*/
18
- export const Intro = ( { plans } ) => {
19
+ export const Intro = ( {
20
+ plans = {
21
+ team_pro : {
22
+ month : {
23
+ currency : '$' ,
24
+ unit_amount : 5 ,
25
+ } ,
26
+ year : {
27
+ currency : '$' ,
28
+ unit_amount : 5 ,
29
+ } ,
30
+ } ,
31
+ pro : {
32
+ month : {
33
+ currency : '$' ,
34
+ unit_amount : 5 ,
35
+ } ,
36
+ year : {
37
+ currency : '$' ,
38
+ unit_amount : 5 ,
39
+ } ,
40
+ } ,
41
+ } ,
42
+ } ) => {
19
43
// plans: {
20
44
// pro | team_pro {
21
45
// month | year {
@@ -24,6 +48,7 @@ export const Intro = ({ plans }) => {
24
48
// }
25
49
// }
26
50
// }
51
+
27
52
const shouldReduceMotion = usePrefersReducedMotion ( ) ;
28
53
29
54
const [ teamHover , setTeamHover ] = useState ( false ) ;
@@ -145,18 +170,16 @@ const Title = styled.h1`
145
170
146
171
letter-spacing: -0.025em;
147
172
font-size: 40px;
148
- line-height: 48px ;
173
+ line-height: 1.1 ;
149
174
150
175
@media (min-width: 769px) {
151
176
font-size: 48px;
152
- line-height: 56px;
153
177
}
154
178
155
179
@media (min-width: 1025px) {
156
180
letter-spacing: -0.03em;
157
181
font-weight: 500;
158
182
font-size: 64px;
159
- line-height: 1.45;
160
183
}
161
184
` ;
162
185
@@ -192,7 +215,7 @@ const Gradient = styled.div`
192
215
css `
193
216
background: radial-gradient(
194
217
61.76% 61.76% at 50% 38.24%,
195
- #ac9cff 0%,
218
+ #edffa5 0%,
196
219
#000000 60.35%
197
220
);
198
221
`
@@ -204,23 +227,9 @@ const Gradient = styled.div`
204
227
personalSection &&
205
228
css `
206
229
background: radial-gradient(
207
- 50% 50% at 50% 50%,
208
- hsl(72deg 100% 82%) 0%,
209
- hsl(72deg 69% 76%) 3%,
210
- hsl(72deg 50% 71%) 6%,
211
- hsl(72deg 38% 65%) 9%,
212
- hsl(72deg 30% 59%) 12%,
213
- hsl(72deg 23% 54%) 15%,
214
- hsl(72deg 20% 48%) 19%,
215
- hsl(72deg 19% 43%) 22%,
216
- hsl(71deg 19% 38%) 26%,
217
- hsl(71deg 18% 32%) 30%,
218
- hsl(71deg 17% 27%) 34%,
219
- hsl(71deg 16% 23%) 39%,
220
- hsl(71deg 15% 18%) 44%,
221
- hsl(70deg 13% 13%) 51%,
222
- hsl(69deg 9% 9%) 59%,
223
- hsl(0deg 0% 4%) 77%
230
+ 61.76% 61.76% at 50% 38.24%,
231
+ #ac9cff 0%,
232
+ #000000 60.35%
224
233
);
225
234
`
226
235
) ;
@@ -305,7 +314,7 @@ const TeamFree = () => {
305
314
306
315
< BoxPlanPrice plan = "Free" price = "$0" caption = "forever" />
307
316
308
- < ul >
317
+ < BoxPlanList >
309
318
< li > 5 editors</ li >
310
319
< li > 20 public sandboxes</ li >
311
320
< li > 3 public repositories</ li >
@@ -319,7 +328,7 @@ const TeamFree = () => {
319
328
< li > 4GB RAM</ li >
320
329
< li > 2vCPUs</ li >
321
330
< li > 4GB Disk</ li >
322
- </ ul >
331
+ </ BoxPlanList >
323
332
324
333
< BoxPlanButton href = "/s" > Start coding now</ BoxPlanButton >
325
334
</ BoxPlan >
@@ -345,7 +354,7 @@ const TeamPro = ({ plan, ...props }) => {
345
354
per month.` }
346
355
/>
347
356
348
- < ul >
357
+ < BoxPlanList >
349
358
< li > 20 editors</ li >
350
359
< li > Unlimited sandboxes</ li >
351
360
< li > Unlimited repositories</ li >
@@ -359,7 +368,7 @@ const TeamPro = ({ plan, ...props }) => {
359
368
< li > 6GB RAM</ li >
360
369
< li > 4vCPUs</ li >
361
370
< li > 12GB Disk</ li >
362
- </ ul >
371
+ </ BoxPlanList >
363
372
364
373
< BoxPlanButton > Upgrade to Team Pro</ BoxPlanButton >
365
374
</ BoxPlan >
@@ -369,7 +378,7 @@ const TeamPro = ({ plan, ...props }) => {
369
378
const OrgCustom = props => {
370
379
return (
371
380
< BoxPlan
372
- href = "mailto:support@ codesandbox.io?subject=Organization plan "
381
+ href = "https:// codesandbox.typeform.com/organization "
373
382
target = "_blank"
374
383
rel = "noopener noreferrer"
375
384
orgCustom
@@ -384,19 +393,15 @@ const OrgCustom = props => {
384
393
customPrice
385
394
/>
386
395
387
- < ul >
396
+ < BoxPlanList >
388
397
< li > All Team Pro features, plus:</ li >
389
- < li > Unlimited editors</ li >
398
+ < li > 20+ editors (no limit) </ li >
390
399
< li > Bulk pricing for seats</ li >
391
400
< li > Custom VM Specs</ li >
392
401
< li > Custom support</ li >
393
402
< li > Shared Slack channel</ li >
394
403
< li > Customer success manager </ li >
395
-
396
- { /* Visually aligned */ }
397
- < br />
398
- < br />
399
- </ ul >
404
+ </ BoxPlanList >
400
405
401
406
< BoxPlanButton > Contact us</ BoxPlanButton >
402
407
</ BoxPlan >
@@ -410,7 +415,7 @@ const PersonalFree = () => {
410
415
411
416
< BoxPlanPrice plan = "Free" price = "$0" caption = "forever" />
412
417
413
- < ul >
418
+ < BoxPlanList >
414
419
< li > Free for individuals</ li >
415
420
< li > All platform features</ li >
416
421
< li > Unlimited public sandboxes</ li >
@@ -424,7 +429,7 @@ const PersonalFree = () => {
424
429
< li > 4GB RAM</ li >
425
430
< li > 2vCPUs</ li >
426
431
< li > 4GB Disk</ li >
427
- </ ul >
432
+ </ BoxPlanList >
428
433
429
434
< BoxPlanButton href = "/s" > Start coding now</ BoxPlanButton >
430
435
</ BoxPlan >
@@ -446,7 +451,7 @@ const PersonalPro = ({ plan, ...props }) => {
446
451
per month.` }
447
452
/>
448
453
449
- < ul >
454
+ < BoxPlanList >
450
455
< li > All Free features, plus:</ li >
451
456
< li > Unlimited private sandboxes</ li >
452
457
< li > Unlimited private repositories</ li >
@@ -455,11 +460,13 @@ const PersonalPro = ({ plan, ...props }) => {
455
460
{ /* Visually aligned */ }
456
461
< br />
457
462
< br />
463
+ < br />
464
+ < br />
458
465
459
466
< li > 6GB RAM</ li >
460
467
< li > 4vCPUs</ li >
461
468
< li > 12GB Disk</ li >
462
- </ ul >
469
+ </ BoxPlanList >
463
470
464
471
< BoxPlanButton > Upgrade to Personal Pro</ BoxPlanButton >
465
472
</ BoxPlan >
0 commit comments