@foundrykit/blocks 2.0.16 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,483 +0,0 @@
1
- import type { ComponentConfig } from '@foundrykit/types';
2
-
3
- export const interactiveRegionsMapConfig: ComponentConfig = {
4
- name: 'Interactive Regions Map',
5
- description:
6
- 'Interactive Regions Map is designed for sites with multiple hotels across multiple global regions.',
7
- category: 'blocks',
8
- tags: ['map', 'interactive', 'hotels', 'regions', 'geography'],
9
- preview: {
10
- type: 'static',
11
- html: '<div class="flex h-12 w-full flex-col justify-center rounded-md bg-gray-50 p-2"><div class="mb-1 h-2 w-3/4 rounded bg-gray-300"></div><div class="mb-2 h-1 w-1/2 rounded bg-gray-200"></div><div class="flex space-x-1"><div class="h-4 w-8 rounded bg-blue-500"></div><div class="h-4 w-10 rounded bg-green-500"></div><div class="h-4 w-8 rounded bg-red-500"></div></div></div>',
12
- },
13
- variants: [
14
- {
15
- name: 'Default',
16
- description: 'Basic interactive regions map with default styling',
17
- code: `<WorldMap
18
- title="Our Global Presence"
19
- regions={[
20
- { countries: ["FR", "DE", "ES"], name: "Europe" },
21
- { countries: ["IQ", "IR"], name: "Middle East" },
22
- { countries: ["MG", "ZA", "KE"], name: "Africa" }
23
- ]}
24
- />`,
25
- preview: {
26
- type: 'component',
27
- component: 'WorldMap',
28
- props: {
29
- title: 'Our Global Presence',
30
- regions: [
31
- { countries: ['FR', 'DE', 'ES'], name: 'Europe' },
32
- { countries: ['IQ', 'IR'], name: 'Middle East' },
33
- {
34
- countries: ['MG', 'ZA', 'KE'],
35
- name: 'Africa',
36
- },
37
- ],
38
- },
39
- },
40
- },
41
- {
42
- name: 'With Content',
43
- description: 'Map with descriptive content below the title',
44
- code: `<WorldMap
45
- title="Explore Our Hotel Destinations"
46
- content="Discover luxury accommodations across multiple continents. Click on any region to learn more about our properties in that area."
47
- regions={[
48
- { countries: ["US", "CA"], name: "North America", color: "#3b82f6" },
49
- { countries: ["FR", "DE", "ES"], name: "Europe", color: "#10b981" },
50
- { countries: ["IQ", "IR"], name: "Middle East", color: "#f59e0b" }
51
- ]}
52
- />`,
53
- preview: {
54
- type: 'component',
55
- component: 'WorldMap',
56
- props: {
57
- title: 'Explore Our Hotel Destinations',
58
- content:
59
- 'Discover luxury accommodations across multiple continents. Click on any region to learn more about our properties in that area.',
60
- regions: [
61
- {
62
- countries: ['US', 'CA'],
63
- name: 'North America',
64
- color: '#3b82f6',
65
- },
66
- {
67
- countries: ['FR', 'DE', 'ES'],
68
- name: 'Europe',
69
- color: '#10b981',
70
- },
71
- {
72
- countries: ['IQ', 'IR'],
73
- name: 'Middle East',
74
- color: '#f59e0b',
75
- },
76
- ],
77
- },
78
- },
79
- },
80
- {
81
- name: 'Custom Colors',
82
- description: 'Regions with custom color schemes',
83
- code: `<WorldMap
84
- title="Regional Divisions"
85
- regions={[
86
- { countries: ["FR", "DE", "ES"], name: "Western Europe", color: "#8b5cf6" },
87
- { countries: ["IQ", "IR", "SA"], name: "Middle East", color: "#ef4444" },
88
- { countries: ["ZA", "KE", "MG"], name: "Africa", color: "#f97316" },
89
- { countries: ["US", "CA"], name: "North America", color: "#06b6d4" }
90
- ]}
91
- />`,
92
- preview: {
93
- type: 'component',
94
- component: 'WorldMap',
95
- props: {
96
- title: 'Regional Divisions',
97
- regions: [
98
- {
99
- countries: ['FR', 'DE', 'ES'],
100
- name: 'Western Europe',
101
- color: '#8b5cf6',
102
- },
103
- {
104
- countries: ['IQ', 'IR', 'SA'],
105
- name: 'Middle East',
106
- color: '#ef4444',
107
- },
108
- {
109
- countries: ['ZA', 'KE', 'MG'],
110
- name: 'Africa',
111
- color: '#f97316',
112
- },
113
- {
114
- countries: ['US', 'CA'],
115
- name: 'North America',
116
- color: '#06b6d4',
117
- },
118
- ],
119
- },
120
- },
121
- },
122
- {
123
- name: 'With Navigation',
124
- description: 'Regions configured with href navigation links',
125
- code: `<WorldMap
126
- title="Hotel Locations by Region"
127
- content="Click on any region to view available properties"
128
- regions={[
129
- { countries: ["FR", "ES"], name: "Southern Europe", color: "#3b82f6", href: "/hotels/southern-europe" },
130
- { countries: ["DE"], name: "Central Europe", color: "#10b981", href: "/hotels/central-europe" },
131
- { countries: ["IQ", "IR"], name: "Middle East", color: "#f59e0b", href: "/hotels/middle-east" },
132
- { countries: ["ZA", "KE"], name: "Africa", color: "#ef4444", href: "/hotels/africa" }
133
- ]}
134
- />`,
135
- preview: {
136
- type: 'component',
137
- component: 'WorldMap',
138
- props: {
139
- title: 'Hotel Locations by Region',
140
- content: 'Click on any region to view available properties',
141
- regions: [
142
- {
143
- countries: ['FR', 'ES'],
144
- name: 'Southern Europe',
145
- color: '#3b82f6',
146
- href: '/hotels/southern-europe',
147
- },
148
- {
149
- countries: ['DE'],
150
- name: 'Central Europe',
151
- color: '#10b981',
152
- href: '/hotels/central-europe',
153
- },
154
- {
155
- countries: ['IQ', 'IR'],
156
- name: 'Middle East',
157
- color: '#f59e0b',
158
- href: '/hotels/middle-east',
159
- },
160
- {
161
- countries: ['ZA', 'KE'],
162
- name: 'Africa',
163
- color: '#ef4444',
164
- href: '/hotels/africa',
165
- },
166
- ],
167
- },
168
- },
169
- },
170
- {
171
- name: 'Comprehensive Coverage',
172
- description: 'Maximum regions showcasing all supported countries',
173
- code: `<WorldMap
174
- title="Global Hotel Network"
175
- content="Our extensive portfolio spans continents with premium properties in key destinations"
176
- regions={[
177
- { countries: ["US", "CA"], name: "North America", color: "#3b82f6" },
178
- { countries: ["BR", "AR", "MX"], name: "Latin America", color: "#10b981" },
179
- { countries: ["FR", "DE", "ES", "IT", "GB"], name: "Europe", color: "#8b5cf6" },
180
- { countries: ["IQ", "IR", "SA"], name: "Middle East", color: "#f59e0b" },
181
- { countries: ["ZA", "KE", "MG", "EG"], name: "Africa", color: "#ef4444" },
182
- { countries: ["CN", "JP", "IN"], name: "Asia", color: "#06b6d4" },
183
- { countries: ["AU"], name: "Oceania", color: "#f97316" },
184
- { countries: ["RU"], name: "Eastern Europe", color: "#84cc16" }
185
- ]}
186
- />`,
187
- preview: {
188
- type: 'component',
189
- component: 'WorldMap',
190
- props: {
191
- title: 'Global Hotel Network',
192
- content:
193
- 'Our extensive portfolio spans continents with premium properties in key destinations',
194
- regions: [
195
- {
196
- countries: ['US', 'CA'],
197
- name: 'North America',
198
- color: '#3b82f6',
199
- },
200
- {
201
- countries: ['BR', 'AR', 'MX'],
202
- name: 'Latin America',
203
- color: '#10b981',
204
- },
205
- {
206
- countries: ['FR', 'DE', 'ES', 'IT', 'GB'],
207
- name: 'Europe',
208
- color: '#8b5cf6',
209
- },
210
- {
211
- countries: ['IQ', 'IR', 'SA'],
212
- name: 'Middle East',
213
- color: '#f59e0b',
214
- },
215
- {
216
- countries: ['ZA', 'KE', 'MG', 'EG'],
217
- name: 'Africa',
218
- color: '#ef4444',
219
- },
220
- {
221
- countries: ['CN', 'JP', 'IN'],
222
- name: 'Asia',
223
- color: '#06b6d4',
224
- },
225
- { countries: ['AU'], name: 'Oceania', color: '#f97316' },
226
- { countries: ['RU'], name: 'Eastern Europe', color: '#84cc16' },
227
- ],
228
- },
229
- },
230
- },
231
- {
232
- name: 'Zoomed In',
233
- description:
234
- 'Map configured to initially zoom into a specific area (e.g., Europe)',
235
- code: `<WorldMap
236
- title="European Hotels"
237
- initialView={{ x: -1600, y: -450, scale: 4.5 }}
238
- regions={[
239
- { countries: ["FR", "DE", "ES", "IT", "GB"], name: "Europe" }
240
- ]}
241
- />`,
242
- preview: {
243
- type: 'component',
244
- component: 'WorldMap',
245
- props: {
246
- title: 'European Hotels',
247
- initialView: { x: 100, y: 100, scale: 4.5 },
248
- regions: [
249
- { countries: ['FR', 'DE', 'ES', 'IT', 'GB'], name: 'Europe' },
250
- ],
251
- },
252
- },
253
- },
254
- {
255
- name: 'Minimal',
256
- description: 'Simple two-region setup with minimal styling',
257
- code: `<WorldMap
258
- title="Primary Markets"
259
- regions={[
260
- { countries: ["US"], name: "United States" },
261
- { countries: ["FR", "DE"], name: "Europe" }
262
- ]}
263
- />`,
264
- preview: {
265
- type: 'component',
266
- component: 'WorldMap',
267
- props: {
268
- title: 'Primary Markets',
269
- regions: [
270
- { countries: ['US'], name: 'United States' },
271
- { countries: ['FR', 'DE'], name: 'Europe' },
272
- ],
273
- },
274
- },
275
- },
276
- {
277
- name: 'Custom Styled',
278
- description:
279
- 'Demonstrates mapStyles and classNames props for full visual customisation',
280
- code: `<WorldMap
281
- title="Our Regions"
282
- mapStyles={{
283
- mapBackground: '#1e293b',
284
- countryDefaultFill: '#334155',
285
- countryStroke: '#0f172a',
286
- regionDefaultColor: '#6366f1',
287
- }}
288
- classNames={{
289
- title: 'mb-2 text-3xl font-bold text-white',
290
- content: 'max-w-2xl text-lg text-slate-400',
291
- mapContainer: 'relative aspect-video w-full touch-none overflow-hidden rounded-xl shadow-2xl',
292
- resetButton: 'rounded-md bg-slate-700 px-3 py-1.5 text-sm font-medium text-slate-200 hover:bg-slate-600',
293
- tooltip: 'pointer-events-none fixed z-50 rounded-md bg-slate-700 px-3 py-2 text-sm font-medium text-white shadow-md',
294
- legendItem: 'flex items-center gap-2 rounded-lg border border-slate-700 bg-slate-800 px-3 py-2 transition-all duration-200',
295
- legendItemActive: 'flex items-center gap-2 rounded-lg border border-indigo-500 bg-slate-700 px-3 py-2 shadow-md transition-all duration-200',
296
- }}
297
- regions={[
298
- { countries: ["US", "CA"], name: "North America", color: "#6366f1" },
299
- { countries: ["FR", "DE", "GB"], name: "Europe", color: "#10b981" },
300
- ]}
301
- />`,
302
- preview: {
303
- type: 'component',
304
- component: 'WorldMap',
305
- props: {
306
- title: 'Our Regions',
307
- mapStyles: {
308
- mapBackground: '#1e293b',
309
- countryDefaultFill: '#334155',
310
- countryStroke: '#0f172a',
311
- regionDefaultColor: '#6366f1',
312
- },
313
- classNames: {
314
- title: 'mb-2 text-3xl font-bold text-white',
315
- content: 'max-w-2xl text-lg text-slate-400',
316
- mapContainer:
317
- 'relative aspect-video w-full touch-none overflow-hidden rounded-xl shadow-2xl',
318
- resetButton:
319
- 'rounded-md bg-slate-700 px-3 py-1.5 text-sm font-medium text-slate-200 hover:bg-slate-600',
320
- tooltip:
321
- 'pointer-events-none fixed z-50 rounded-md bg-slate-700 px-3 py-2 text-sm font-medium text-white shadow-md',
322
- legendItem:
323
- 'flex items-center gap-2 rounded-lg border border-slate-700 bg-slate-800 px-3 py-2 transition-all duration-200',
324
- legendItemActive:
325
- 'flex items-center gap-2 rounded-lg border border-indigo-500 bg-slate-700 px-3 py-2 shadow-md transition-all duration-200',
326
- },
327
- regions: [
328
- {
329
- countries: ['US', 'CA'],
330
- name: 'North America',
331
- color: '#6366f1',
332
- },
333
- { countries: ['FR', 'DE', 'GB'], name: 'Europe', color: '#10b981' },
334
- ],
335
- },
336
- },
337
- },
338
- {
339
- name: 'Compound Primitives',
340
- description:
341
- 'Uses the compound component API to compose Legend, Tooltip, ZoomControls and ResetButton as explicit children',
342
- code: `<WorldMap
343
- title="Global Presence"
344
- regions={[
345
- { countries: ["US", "CA"], name: "North America", color: "#3b82f6" },
346
- { countries: ["FR", "DE", "ES", "IT", "GB"], name: "Europe", color: "#10b981" },
347
- { countries: ["CN", "JP", "IN"], name: "Asia", color: "#f59e0b" },
348
- ]}
349
- >
350
- {/*
351
- ZoomControls renders as an absolute overlay inside the map canvas.
352
- Use the position prop to place it: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
353
- */}
354
- <WorldMap.ZoomControls position="bottom-right" />
355
-
356
- {/* Tooltip uses fixed positioning so can be placed anywhere inside the provider */}
357
- <WorldMap.Tooltip />
358
-
359
- <WorldMap.Legend />
360
- </WorldMap>`,
361
- preview: {
362
- type: 'component',
363
- component: 'WorldMap',
364
- props: {
365
- title: 'Global Presence',
366
- regions: [
367
- {
368
- countries: ['US', 'CA'],
369
- name: 'North America',
370
- color: '#3b82f6',
371
- },
372
- {
373
- countries: ['FR', 'DE', 'ES', 'IT', 'GB'],
374
- name: 'Europe',
375
- color: '#10b981',
376
- },
377
- { countries: ['CN', 'JP', 'IN'], name: 'Asia', color: '#f59e0b' },
378
- ],
379
- },
380
- },
381
- },
382
- {
383
- name: 'Journey / Trip Planner',
384
- description:
385
- 'Visual route planner with animated waypoints, transport icons, callout labels and step navigation',
386
- code: `// Waypoint coordinates use SVG viewBox space (0–1010 x, 0–666 y).
387
- // Use the developer tools SVG inspector to find coordinates for any location.
388
-
389
- const WAYPOINTS = [
390
- {
391
- id: 'london',
392
- label: 'London',
393
- description: 'Trip begins',
394
- x: 468,
395
- y: 195,
396
- transport: 'flight',
397
- duration: 'Start',
398
- },
399
- {
400
- id: 'dubai',
401
- label: 'Dubai',
402
- description: 'Stopover',
403
- x: 610,
404
- y: 330,
405
- transport: 'flight',
406
- duration: '7h flight',
407
- },
408
- {
409
- id: 'singapore',
410
- label: 'Singapore',
411
- description: 'Cultural hub',
412
- x: 750,
413
- y: 415,
414
- transport: 'flight',
415
- duration: '7h flight',
416
- },
417
- {
418
- id: 'sydney',
419
- label: 'Sydney',
420
- description: 'Final destination',
421
- x: 870,
422
- y: 510,
423
- transport: 'flight',
424
- duration: '8h flight',
425
- },
426
- ];
427
-
428
- export function TripPlanner() {
429
- const [step, setStep] = useState(0);
430
-
431
- return (
432
- <WorldMap
433
- title="Around the World"
434
- content="Follow the journey from London to Sydney"
435
- regions={[]}
436
- mapStyles={{ mapBackground: '#bfdbfe' }}
437
- >
438
- <WorldMap.ZoomControls position="bottom-right" />
439
- <WorldMap.Tooltip />
440
-
441
- {/*
442
- Journey renders the SVG overlay and provides JourneyContext.
443
- Place it as a child of WorldMap so it sits
444
- inside the map canvas div.
445
- */}
446
- <WorldMap.Journey
447
- waypoints={WAYPOINTS}
448
- activeIndex={step}
449
- onStepChange={(i) => setStep(i)}
450
- pathColor="#3b82f6"
451
- autoFocus
452
- autoFocusScale={2.5}
453
- animationDuration={900}
454
- >
455
- {/* Callout bubble above the active waypoint */}
456
- <WorldMap.JourneyCallout />
457
- </WorldMap.Journey>
458
-
459
- {/* JourneyControls and JourneyStepList also consume JourneyContext */}
460
- {/* so they must be inside <Journey>, not siblings of it */}
461
- <WorldMap.JourneyControls />
462
- <WorldMap.JourneyStepList />
463
- </WorldMap>
464
- );
465
- }`,
466
- preview: {
467
- type: 'component',
468
- component: 'WorldMap',
469
- props: {
470
- title: 'Around the World',
471
- content: 'Follow the journey from London to Sydney',
472
- regions: [],
473
- mapStyles: { mapBackground: '#bfdbfe' },
474
- },
475
- },
476
- },
477
- ],
478
- dependencies: ['card', 'badge', 'utils'],
479
- files: [
480
- 'components/interactive-regions-map/index.tsx',
481
- 'components/interactive-regions-map/world-map-data.ts',
482
- ],
483
- };
@@ -1,106 +0,0 @@
1
- import type { ComponentConfig } from '@foundrykit/types';
2
-
3
- export const pricingConfig: ComponentConfig = {
4
- name: 'Pricing',
5
- description: 'Pricing table component for subscription plans',
6
- category: 'blocks',
7
- tags: ['pricing', 'subscription', 'plans', 'billing'],
8
- preview: {
9
- type: 'static',
10
- html: '<div class="flex h-12 w-full flex-col justify-center rounded-md border border-gray-200 bg-white p-2"><div class="mb-1 h-1 w-1/2 rounded bg-gray-300"></div><div class="mb-1 h-2 w-1/4 rounded bg-gray-800"></div><div class="space-y-0.5"><div class="flex items-center space-x-1"><div class="h-1 w-1 rounded-full bg-green-500"></div><div class="h-0.5 w-8 rounded bg-gray-200"></div></div><div class="flex items-center space-x-1"><div class="h-1 w-1 rounded-full bg-green-500"></div><div class="h-0.5 w-8 rounded bg-gray-200"></div></div></div></div>',
11
- },
12
- variants: [
13
- {
14
- name: 'Default',
15
- description: 'Default pricing table',
16
- code: '<Pricing tiers={[{ name: "Basic", price: "$9", description: "Perfect for getting started", features: ["Feature 1", "Feature 2"], cta: "Get Started" }, { name: "Pro", price: "$19", description: "Best for growing teams", features: ["All Basic", "Feature 3"], cta: "Start Free Trial" }]} />',
17
- preview: {
18
- type: 'component',
19
- component: 'Pricing',
20
- props: {
21
- tiers: [
22
- {
23
- name: 'Basic',
24
- price: '$9',
25
- description: 'Perfect for getting started',
26
- features: ['Feature 1', 'Feature 2'],
27
- cta: 'Get Started',
28
- },
29
- {
30
- name: 'Pro',
31
- price: '$19',
32
- description: 'Best for growing teams',
33
- features: ['All Basic', 'Feature 3'],
34
- cta: 'Start Free Trial',
35
- },
36
- ],
37
- },
38
- },
39
- },
40
- {
41
- name: 'With Popular',
42
- description: 'Pricing with popular plan highlight',
43
- code: '<Pricing tiers={[{ name: "Basic", price: "$9", description: "Perfect for getting started", features: ["Feature 1", "Feature 2"], cta: "Get Started" }, { name: "Pro", price: "$19", description: "Best for growing teams", features: ["All Basic", "Feature 3"], popular: true, cta: "Start Free Trial" }]} />',
44
- preview: {
45
- type: 'component',
46
- component: 'Pricing',
47
- props: {
48
- tiers: [
49
- {
50
- name: 'Basic',
51
- price: '$9',
52
- description: 'Perfect for getting started',
53
- features: ['Feature 1', 'Feature 2'],
54
- cta: 'Get Started',
55
- },
56
- {
57
- name: 'Pro',
58
- price: '$19',
59
- description: 'Best for growing teams',
60
- features: ['All Basic', 'Feature 3'],
61
- popular: true,
62
- cta: 'Start Free Trial',
63
- },
64
- ],
65
- },
66
- },
67
- },
68
- {
69
- name: 'Three Tiers',
70
- description: 'Complete pricing with three tiers',
71
- code: '<Pricing tiers={[{ name: "Starter", price: "$9", description: "Perfect for individuals", features: ["5 Projects", "10GB Storage"], cta: "Get Started" }, { name: "Pro", price: "$29", description: "Best for teams", features: ["50 Projects", "100GB Storage", "Priority Support"], popular: true, cta: "Start Free Trial" }, { name: "Enterprise", price: "$99", description: "For large organizations", features: ["Unlimited Projects", "1TB Storage", "24/7 Support"], cta: "Contact Sales" }]} />',
72
- preview: {
73
- type: 'component',
74
- component: 'Pricing',
75
- props: {
76
- tiers: [
77
- {
78
- name: 'Starter',
79
- price: '$9',
80
- description: 'Perfect for individuals',
81
- features: ['5 Projects', '10GB Storage'],
82
- cta: 'Get Started',
83
- },
84
- {
85
- name: 'Pro',
86
- price: '$29',
87
- description: 'Best for teams',
88
- features: ['50 Projects', '100GB Storage', 'Priority Support'],
89
- popular: true,
90
- cta: 'Start Free Trial',
91
- },
92
- {
93
- name: 'Enterprise',
94
- price: '$99',
95
- description: 'For large organizations',
96
- features: ['Unlimited Projects', '1TB Storage', '24/7 Support'],
97
- cta: 'Contact Sales',
98
- },
99
- ],
100
- },
101
- },
102
- },
103
- ],
104
- dependencies: ['button', 'card', 'badge', 'utils'],
105
- files: ['components/pricing/index.tsx'],
106
- };
@@ -1,95 +0,0 @@
1
- import {
2
- Badge,
3
- Button,
4
- Card,
5
- CardContent,
6
- CardDescription,
7
- CardHeader,
8
- CardTitle,
9
- } from '@foundrykit/primitives';
10
- import { Check } from 'lucide-react';
11
-
12
- export interface PricingTier {
13
- name: string;
14
- price: string;
15
- description: string;
16
- features: string[];
17
- popular?: boolean;
18
- cta: string;
19
- }
20
-
21
- export interface PricingProps {
22
- tiers: PricingTier[];
23
- title?: string;
24
- subtitle?: string;
25
- className?: string;
26
- }
27
-
28
- /**
29
- * Responsive pricing section that renders a grid of cards from the `tiers`
30
- * array. A tier marked `popular` is highlighted with a "Most Popular" badge and
31
- * an emphasised border.
32
- */
33
- export function Pricing({
34
- tiers,
35
- title = 'Simple, transparent pricing',
36
- subtitle = "Choose the plan that's right for you",
37
- className,
38
- }: PricingProps) {
39
- return (
40
- <section className={`w-full py-12 md:py-24 lg:py-32 ${className}`}>
41
- <div className='container mx-auto px-4 md:px-6'>
42
- <div className='flex flex-col items-center space-y-4 text-center'>
43
- <div className='space-y-2'>
44
- <h2 className='text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl'>
45
- {title}
46
- </h2>
47
- <p className='mx-auto max-w-[700px] text-gray-500 md:text-xl dark:text-gray-400'>
48
- {subtitle}
49
- </p>
50
- </div>
51
- </div>
52
- <div className='mx-auto mt-8 grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3 lg:gap-8'>
53
- {tiers.map((tier, index) => (
54
- <Card
55
- key={index}
56
- className={`relative ${tier.popular ? 'border-primary shadow-lg' : ''}`}
57
- >
58
- {tier.popular && (
59
- <Badge className='absolute -top-3 left-1/2 -translate-x-1/2'>
60
- Most Popular
61
- </Badge>
62
- )}
63
- <CardHeader>
64
- <CardTitle>{tier.name}</CardTitle>
65
- <CardDescription>{tier.description}</CardDescription>
66
- <div className='mt-4'>
67
- <span className='text-4xl font-bold'>{tier.price}</span>
68
- </div>
69
- </CardHeader>
70
- <CardContent>
71
- <ul className='space-y-3'>
72
- {tier.features.map((feature, featureIndex) => (
73
- <li
74
- key={featureIndex}
75
- className='flex items-center space-x-2'
76
- >
77
- <Check className='h-4 w-4 text-green-500' />
78
- <span className='text-sm'>{feature}</span>
79
- </li>
80
- ))}
81
- </ul>
82
- <Button
83
- className='mt-6 w-full'
84
- variant={tier.popular ? 'default' : 'outline'}
85
- >
86
- {tier.cta}
87
- </Button>
88
- </CardContent>
89
- </Card>
90
- ))}
91
- </div>
92
- </div>
93
- </section>
94
- );
95
- }