1
1
import styled , { css } from 'styled-components' ;
2
2
import React from 'react' ;
3
3
4
+ import doubleArrowDown from './assets/doubleArrowDown.svg' ;
5
+
4
6
export const Title = styled . h2 `
5
7
letter-spacing : -0.025em ;
6
8
font-size : 32px ;
@@ -30,6 +32,21 @@ export const Title = styled.h2`
30
32
}
31
33
` ;
32
34
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
+
33
50
export const BoxPlan = styled . a `
34
51
scroll-snap-align : start center;
35
52
@@ -98,9 +115,9 @@ export const BoxPlan = styled.a`
98
115
}
99
116
}
100
117
101
- ${ ( { pro } ) => {
118
+ ${ ( { teamPro } ) => {
102
119
return (
103
- pro &&
120
+ teamPro &&
104
121
css `
105
122
background : # fff ;
106
123
border-top-color : # edffa5 ;
@@ -119,6 +136,17 @@ export const BoxPlan = styled.a`
119
136
`
120
137
) ;
121
138
} }
139
+
140
+ ${ ( { orgCustom } ) => {
141
+ return (
142
+ orgCustom &&
143
+ css `
144
+ background : # fff ;
145
+ border-top-color : # e1e1e1 ;
146
+ color : # 090909 ;
147
+ `
148
+ ) ;
149
+ } }
122
150
` ;
123
151
124
152
export const BoxPlanButton = styled . div `
@@ -175,7 +203,6 @@ export const BoxPlanPrice = styled(({ plan, price, caption, className }) => {
175
203
176
204
@media (min-width: 769px) {
177
205
margin-bottom: 12px;
178
- font-size: 56px;
179
206
font-size: 64px;
180
207
}
181
208
}
@@ -190,4 +217,58 @@ export const BoxPlanPrice = styled(({ plan, price, caption, className }) => {
190
217
font-size: 13px;
191
218
}
192
219
}
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
+ }
193
274
` ;
0 commit comments