Skip to content

Commit a604d7d

Browse files
feat(homepage): update pricing page (#7019)
* remove unused section * misc adjustments: typos, reorder and simplify * update FreeBox -> TeamFree and contents * update TeamPro contents * feat: custom org price card * hero text * adds title to the team/org plans * add doubleArrowDown asset * wip * usePrefersReducedMotion hook * drop * update personal pro * wip * wip * update plans * update FAQ * adjustments 1/* * adjustments 2/* * fix typos, update mailto links, hide feature Co-authored-by: Filipe Lima <[email protected]>
1 parent 25c19d0 commit a604d7d

File tree

6 files changed

+810
-621
lines changed

6 files changed

+810
-621
lines changed

packages/homepage/src/pages/pricing/_elements.js

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import styled, { css } from 'styled-components';
22
import React from 'react';
33

4+
import doubleArrowDown from './assets/doubleArrowDown.svg';
5+
46
export const Title = styled.h2`
57
letter-spacing: -0.025em;
68
font-size: 32px;
@@ -30,6 +32,21 @@ export const Title = styled.h2`
3032
}
3133
`;
3234

35+
export const Caption = styled.p`
36+
font-family: 'TWKEverett', sans-serif;
37+
font-weight: 500;
38+
39+
letter-spacing: -0.01em;
40+
font-size: 24px;
41+
font-weight: 500;
42+
line-height: 28px;
43+
44+
@media (min-width: 769px) {
45+
font-size: 32px;
46+
line-height: 42px;
47+
}
48+
`;
49+
3350
export const BoxPlan = styled.a`
3451
scroll-snap-align: start center;
3552
@@ -98,9 +115,9 @@ export const BoxPlan = styled.a`
98115
}
99116
}
100117
101-
${({ pro }) => {
118+
${({ teamPro }) => {
102119
return (
103-
pro &&
120+
teamPro &&
104121
css`
105122
background: #fff;
106123
border-top-color: #edffa5;
@@ -119,6 +136,17 @@ export const BoxPlan = styled.a`
119136
`
120137
);
121138
}}
139+
140+
${({ orgCustom }) => {
141+
return (
142+
orgCustom &&
143+
css`
144+
background: #fff;
145+
border-top-color: #e1e1e1;
146+
color: #090909;
147+
`
148+
);
149+
}}
122150
`;
123151

124152
export const BoxPlanButton = styled.div`
@@ -175,7 +203,6 @@ export const BoxPlanPrice = styled(({ plan, price, caption, className }) => {
175203
176204
@media (min-width: 769px) {
177205
margin-bottom: 12px;
178-
font-size: 56px;
179206
font-size: 64px;
180207
}
181208
}
@@ -190,4 +217,58 @@ export const BoxPlanPrice = styled(({ plan, price, caption, className }) => {
190217
font-size: 13px;
191218
}
192219
}
220+
221+
${({ customPrice }) => {
222+
return (
223+
customPrice &&
224+
css`
225+
margin-top: -24px; // Visually align with the other cards.
226+
227+
.plan {
228+
margin-bottom: 0;
229+
230+
@media (min-width: 769px) {
231+
margin-bottom: 0;
232+
}
233+
}
234+
235+
.price {
236+
@media (min-width: 769px) {
237+
font-size: 48px;
238+
line-height: 68px;
239+
}
240+
}
241+
`
242+
);
243+
}}
244+
`;
245+
246+
export const ComparePlansLink = styled(({ scrollTo, ...props }) => {
247+
return (
248+
<a href="#plans" onClick={scrollTo} {...props}>
249+
<img src={doubleArrowDown} width="16" alt="" />
250+
Compare plans
251+
</a>
252+
);
253+
})`
254+
display: flex;
255+
text-decoration: none;
256+
257+
color: #edffa5;
258+
font-weight: 400;
259+
font-size: 16px;
260+
line-height: 1;
261+
letter-spacing: -0.019em;
262+
263+
img {
264+
flex-shrink: 0;
265+
transition: transform 0.2s ease;
266+
margin-right: 0.4em;
267+
}
268+
269+
@media (hover: hover) {
270+
&:hover img {
271+
transform: translateY(4px);
272+
}
273+
}
193274
`;

0 commit comments

Comments
 (0)