@@ -143,13 +143,14 @@ export default function TeamBilling() {
143
143
title = "Billing"
144
144
subtitle = "Manage team billing and plans."
145
145
>
146
- < h3 > { ! teamPlan ? "No billing plan " : "Plan" } </ h3 >
146
+ < h3 > { ! teamPlan ? "Upgrade Team Plan " : "Team Plan" } </ h3 >
147
147
< h2 className = "text-gray-500" >
148
148
{ ! teamPlan ? (
149
149
< div className = "flex space-x-1" >
150
- < span > Select a new billing plan for this team . Currency:</ span >
150
+ < span > Upgrade team plan to access unlimited workspace hours, and more . Currency:</ span >
151
151
< DropDown
152
152
customClasses = "w-32"
153
+ renderAsLink = { true }
153
154
activeEntry = { currency }
154
155
entries = { [
155
156
{
@@ -172,12 +173,12 @@ export default function TeamBilling() {
172
173
< div className = "mt-4 space-x-4 flex" >
173
174
{ isLoading && (
174
175
< >
175
- < SolidCard >
176
+ < SolidCard className = "w-72 h-64" >
176
177
< div className = "w-full h-full flex flex-col items-center justify-center" >
177
178
< Spinner className = "h-5 w-5 animate-spin" />
178
179
</ div >
179
180
</ SolidCard >
180
- < SolidCard >
181
+ < SolidCard className = "w-72 h-64" >
181
182
< div className = "w-full h-full flex flex-col items-center justify-center" >
182
183
< Spinner className = "h-5 w-5 animate-spin" />
183
184
</ div >
@@ -188,14 +189,22 @@ export default function TeamBilling() {
188
189
< >
189
190
{ availableTeamPlans . map ( ( tp ) => (
190
191
< >
191
- < SolidCard
192
- className = "cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-700"
193
- onClick = { ( ) => checkout ( tp ) }
194
- >
192
+ < SolidCard className = "w-72 h-72" >
195
193
< div className = "px-2 py-5 flex-grow flex flex-col" >
196
- < div className = "font-medium text-base" > { tp . name } </ div >
197
- < div className = "font-semibold text-gray-500 text-sm" > Unlimited hours</ div >
198
- < div className = "mt-8 font-semibold text-sm" > Includes:</ div >
194
+ < div className = "font-semibold text-gray-800 dark:text-gray-100 text-lg" >
195
+ { tp . name }
196
+ </ div >
197
+ < div className = "font-semibold text-gray-400 dark:text-gray-600 text-sm" >
198
+ Unlimited hours
199
+ </ div >
200
+ < div className = "mt-2" >
201
+ < PillLabel type = "warn" className = "font-semibold normal-case text-sm" >
202
+ { members . length } x { Currency . getSymbol ( tp . currency ) }
203
+ { tp . pricePerMonth } = { Currency . getSymbol ( tp . currency ) }
204
+ { members . length * tp . pricePerMonth } per month
205
+ </ PillLabel >
206
+ </ div >
207
+ < div className = "mt-4 font-semibold text-sm" > Includes:</ div >
199
208
< div className = "flex flex-col items-start text-sm" >
200
209
{ ( featuresByPlanType [ tp . type ] || [ ] ) . map ( ( f ) => (
201
210
< span className = "inline-flex space-x-1" >
@@ -204,12 +213,10 @@ export default function TeamBilling() {
204
213
</ span >
205
214
) ) }
206
215
</ div >
207
- < div className = "flex-grow flex flex-col items-end justify-end" >
208
- < PillLabel type = "warn" className = "font-semibold normal-case text-sm" >
209
- { members . length } x { Currency . getSymbol ( tp . currency ) }
210
- { tp . pricePerMonth } = { Currency . getSymbol ( tp . currency ) }
211
- { members . length * tp . pricePerMonth } per month
212
- </ PillLabel >
216
+ < div className = "flex-grow flex flex-col items-stretch justify-end" >
217
+ < button className = "m-0" onClick = { ( ) => checkout ( tp ) } >
218
+ Upgrade to { tp . name }
219
+ </ button >
213
220
</ div >
214
221
</ div >
215
222
</ SolidCard >
@@ -219,10 +226,14 @@ export default function TeamBilling() {
219
226
) }
220
227
{ ! isLoading && teamPlan && (
221
228
< >
222
- < Card >
229
+ < Card className = "w-72 h-64" >
223
230
< div className = "px-2 py-5 flex-grow flex flex-col" >
224
- < div className = "font-bold text-base" > { teamPlan . name } </ div >
225
- < div className = "font-semibold text-gray-500 text-sm" > Unlimited hours</ div >
231
+ < div className = "font-semibold text-gray-100 dark:text-gray-800 text-lg" >
232
+ { teamPlan . name }
233
+ </ div >
234
+ < div className = "font-semibold text-gray-400 dark:text-gray-600 text-sm" >
235
+ Unlimited hours
236
+ </ div >
226
237
< div className = "mt-8 font-semibold text-sm" > Includes:</ div >
227
238
< div className = "flex flex-col items-start text-sm" >
228
239
{ ( featuresByPlanType [ teamPlan . type ] || [ ] ) . map ( ( f ) => (
@@ -232,25 +243,31 @@ export default function TeamBilling() {
232
243
</ span >
233
244
) ) }
234
245
</ div >
235
- < div className = "flex-grow flex flex-col items-end justify-end" > </ div >
246
+ < div className = "flex-grow flex flex-col items-stretch justify-end" > </ div >
236
247
</ div >
237
248
</ Card >
238
249
{ ! teamSubscription ? (
239
- < SolidCard >
250
+ < SolidCard className = "w-72 h-64" >
240
251
< div className = "w-full h-full flex flex-col items-center justify-center" >
241
252
< Spinner className = "h-5 w-5 animate-spin" />
242
253
</ div >
243
254
</ SolidCard >
244
255
) : (
245
- < SolidCard >
256
+ < SolidCard className = "w-72 h-64" >
246
257
< div className = "px-2 py-5 flex-grow flex flex-col" >
247
- < div className = "font-medium text-base text-gray-400" > Members</ div >
248
- < div className = "font-semibold text-base text-gray-600" > { members . length } </ div >
249
- < div className = "mt-8 font-medium text-base text-gray-400" > Next invoice on</ div >
250
- < div className = "font-semibold text-base text-gray-600" >
258
+ < div className = "font-medium text-base text-gray-400 dark:text-gray-600" >
259
+ Members
260
+ </ div >
261
+ < div className = "font-semibold text-base text-gray-600 dark:text-gray-400" >
262
+ { members . length }
263
+ </ div >
264
+ < div className = "mt-4 font-medium text-base text-gray-400 dark:text-gray-600" >
265
+ Next invoice on
266
+ </ div >
267
+ < div className = "font-semibold text-base text-gray-600 dark:text-gray-400" >
251
268
{ guessNextInvoiceDate ( teamSubscription . startDate ) . toDateString ( ) }
252
269
</ div >
253
- < div className = "flex-grow flex flex-col items-end justify-end" >
270
+ < div className = "flex-grow flex flex-col items-stretch justify-end" >
254
271
< button
255
272
onClick = { ( ) => {
256
273
if ( team ) {
0 commit comments