@tangle-network/starter-foundry 0.1.0 → 0.3.0
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.
- package/dist/cli.js +30 -0
- package/dist/cli.js.map +1 -1
- package/dist/lib/agent-context.d.ts +43 -0
- package/dist/lib/agent-context.js +63 -0
- package/dist/lib/agent-context.js.map +1 -0
- package/dist/lib/compose-prompt.d.ts +50 -0
- package/dist/lib/compose-prompt.js +68 -0
- package/dist/lib/compose-prompt.js.map +1 -0
- package/dist/lib/compose.js +2 -0
- package/dist/lib/compose.js.map +1 -1
- package/dist/lib/index.d.ts +6 -1
- package/dist/lib/index.js +4 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/industries.d.ts +33 -0
- package/dist/lib/industries.js +52 -0
- package/dist/lib/industries.js.map +1 -0
- package/dist/lib/keywords.d.ts +6 -0
- package/dist/lib/keywords.js +21 -0
- package/dist/lib/keywords.js.map +1 -1
- package/dist/lib/prompt-planner.js +21 -1
- package/dist/lib/prompt-planner.js.map +1 -1
- package/dist/lib/telemetry.d.ts +1 -0
- package/dist/lib/telemetry.js.map +1 -1
- package/package.json +4 -1
- package/registry/layers/capability/layout-landing/files/features-section.tsx +54 -77
- package/registry/layers/capability/layout-landing/files/hero-section.tsx +18 -23
- package/registry/layers/capability/layout-landing/files/landing-page.tsx +25 -63
- package/registry/layers/capability/layout-landing/files/personalize.json +146 -0
- package/registry/layers/capability/layout-landing/files/pricing-section.tsx +45 -94
- package/registry/layers/capability/layout-landing/manifest.json +4 -0
- package/registry/layers/capability/layout-landing/variants/dark-product/features-section.tsx +55 -59
- package/registry/layers/capability/layout-landing/variants/dark-product/hero-section.tsx +83 -55
- package/registry/layers/capability/layout-landing/variants/dark-product/landing-page.tsx +25 -63
- package/registry/layers/capability/layout-landing/variants/dark-product/personalize.json +53 -0
- package/registry/layers/capability/layout-landing/variants/dark-product/pricing-section.tsx +51 -91
- package/registry/layers/capability/layout-landing/variants/default/features-section.tsx +54 -77
- package/registry/layers/capability/layout-landing/variants/default/hero-section.tsx +18 -23
- package/registry/layers/capability/layout-landing/variants/default/landing-page.tsx +25 -63
- package/registry/layers/capability/layout-landing/variants/default/personalize.json +146 -0
- package/registry/layers/capability/layout-landing/variants/default/pricing-section.tsx +45 -94
- package/registry/layers/capability/layout-landing/variants/gradient-hero/features-section.tsx +53 -57
- package/registry/layers/capability/layout-landing/variants/gradient-hero/hero-section.tsx +86 -53
- package/registry/layers/capability/layout-landing/variants/gradient-hero/landing-page.tsx +25 -63
- package/registry/layers/capability/layout-landing/variants/gradient-hero/personalize.json +53 -0
- package/registry/layers/capability/layout-landing/variants/gradient-hero/pricing-section.tsx +49 -88
- package/registry/layers/capability/layout-landing/variants/minimal-clean/features-section.tsx +53 -51
- package/registry/layers/capability/layout-landing/variants/minimal-clean/hero-section.tsx +88 -47
- package/registry/layers/capability/layout-landing/variants/minimal-clean/landing-page.tsx +25 -63
- package/registry/layers/capability/layout-landing/variants/minimal-clean/personalize.json +53 -0
- package/registry/layers/capability/layout-landing/variants/minimal-clean/pricing-section.tsx +51 -87
- package/registry/layers/framework/nextjs-app-router/files/layout.tsx +1 -0
- package/registry/layers/framework/nextjs-app-router/files/personalize.css +1 -0
- package/registry/layers/framework/nextjs-app-router/manifest.json +4 -0
- package/registry/layers/framework/react-vite-ts/files/main.ts +1 -0
- package/registry/layers/framework/react-vite-ts/files/personalize.css +1 -0
- package/registry/layers/framework/react-vite-ts/manifest.json +4 -0
- package/registry/layers/industry/creative/files/personalize.css +11 -0
- package/registry/layers/industry/creative/manifest.json +39 -0
- package/registry/layers/industry/crypto/files/personalize.css +11 -0
- package/registry/layers/industry/crypto/manifest.json +41 -0
- package/registry/layers/industry/ecommerce/files/personalize.css +11 -0
- package/registry/layers/industry/ecommerce/manifest.json +39 -0
- package/registry/layers/industry/education/files/personalize.css +11 -0
- package/registry/layers/industry/education/manifest.json +39 -0
- package/registry/layers/industry/finance/files/personalize.css +11 -0
- package/registry/layers/industry/finance/manifest.json +39 -0
- package/registry/layers/industry/fitness/files/personalize.css +11 -0
- package/registry/layers/industry/fitness/manifest.json +43 -0
- package/registry/layers/industry/gaming/files/personalize.css +11 -0
- package/registry/layers/industry/gaming/manifest.json +39 -0
- package/registry/layers/industry/health/files/personalize.css +11 -0
- package/registry/layers/industry/health/manifest.json +39 -0
- package/registry/layers/industry/restaurant/files/personalize.css +11 -0
- package/registry/layers/industry/restaurant/manifest.json +41 -0
- package/registry/layers/industry/saas/files/personalize.css +11 -0
- package/registry/layers/industry/saas/manifest.json +39 -0
|
@@ -2,43 +2,10 @@ import { Button } from '@/components/ui/button'
|
|
|
2
2
|
import { HeroSection } from '@/components/landing/hero-section'
|
|
3
3
|
import { FeaturesSection } from '@/components/landing/features-section'
|
|
4
4
|
import { PricingSection } from '@/components/landing/pricing-section'
|
|
5
|
-
|
|
6
|
-
const footerLinks = {
|
|
7
|
-
Product: [
|
|
8
|
-
{ label: 'Features', href: '#features' },
|
|
9
|
-
{ label: 'Pricing', href: '#pricing' },
|
|
10
|
-
{ label: 'Changelog', href: '/changelog' },
|
|
11
|
-
{ label: 'Docs', href: '/docs' },
|
|
12
|
-
],
|
|
13
|
-
Company: [
|
|
14
|
-
{ label: 'About', href: '/about' },
|
|
15
|
-
{ label: 'Blog', href: '/blog' },
|
|
16
|
-
{ label: 'Careers', href: '/careers' },
|
|
17
|
-
{ label: 'Contact', href: '/contact' },
|
|
18
|
-
],
|
|
19
|
-
Resources: [
|
|
20
|
-
{ label: 'Documentation', href: '/docs' },
|
|
21
|
-
{ label: 'API Reference', href: '/docs/api' },
|
|
22
|
-
{ label: 'Status', href: '/status' },
|
|
23
|
-
{ label: 'Support', href: '/support' },
|
|
24
|
-
],
|
|
25
|
-
Legal: [
|
|
26
|
-
{ label: 'Privacy', href: '/privacy' },
|
|
27
|
-
{ label: 'Terms', href: '/terms' },
|
|
28
|
-
{ label: 'Security', href: '/security' },
|
|
29
|
-
],
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const trustLogos = [
|
|
33
|
-
'Acme Corp',
|
|
34
|
-
'TechFlow',
|
|
35
|
-
'Quantum',
|
|
36
|
-
'NovaSoft',
|
|
37
|
-
'BuildStack',
|
|
38
|
-
'DataPipe',
|
|
39
|
-
]
|
|
5
|
+
import personalize from '@/personalize.json'
|
|
40
6
|
|
|
41
7
|
export default function LandingPage() {
|
|
8
|
+
const { brand, trust, footer } = personalize
|
|
42
9
|
return (
|
|
43
10
|
<div className="min-h-screen scroll-smooth bg-background text-foreground">
|
|
44
11
|
<a
|
|
@@ -53,28 +20,28 @@ export default function LandingPage() {
|
|
|
53
20
|
<span className="flex items-center gap-2 text-lg font-semibold tracking-tight">
|
|
54
21
|
<img
|
|
55
22
|
src="/images/logo.svg"
|
|
56
|
-
alt=
|
|
23
|
+
alt={brand.name}
|
|
57
24
|
className="h-8 w-auto"
|
|
58
25
|
onError={(e) => { e.currentTarget.style.display = 'none' }}
|
|
59
26
|
/>
|
|
60
|
-
<span>{
|
|
27
|
+
<span>{brand.name}</span>
|
|
61
28
|
</span>
|
|
62
29
|
<nav className="hidden items-center gap-8 text-sm md:flex">
|
|
63
30
|
<a
|
|
64
31
|
href="#features"
|
|
65
|
-
className="font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2
|
|
32
|
+
className="font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
|
|
66
33
|
>
|
|
67
34
|
Features
|
|
68
35
|
</a>
|
|
69
36
|
<a
|
|
70
37
|
href="#pricing"
|
|
71
|
-
className="font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2
|
|
38
|
+
className="font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
|
|
72
39
|
>
|
|
73
40
|
Pricing
|
|
74
41
|
</a>
|
|
75
42
|
<a
|
|
76
43
|
href="/sign-in"
|
|
77
|
-
className="font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2
|
|
44
|
+
className="font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
|
|
78
45
|
>
|
|
79
46
|
Sign in
|
|
80
47
|
</a>
|
|
@@ -95,17 +62,16 @@ export default function LandingPage() {
|
|
|
95
62
|
<main id="main">
|
|
96
63
|
<HeroSection />
|
|
97
64
|
|
|
98
|
-
{/* Trust section */}
|
|
99
65
|
<section className="border-y border-border/50 bg-muted/20 py-12 dark:bg-muted/5">
|
|
100
66
|
<div className="mx-auto max-w-6xl px-6 lg:px-8">
|
|
101
67
|
<p className="mb-8 text-center text-xs font-medium uppercase tracking-widest text-muted-foreground">
|
|
102
68
|
Trusted by teams at
|
|
103
69
|
</p>
|
|
104
70
|
<div className="flex flex-wrap items-center justify-center gap-x-10 gap-y-4 lg:gap-x-16">
|
|
105
|
-
{
|
|
71
|
+
{trust.logoNames.map((name) => (
|
|
106
72
|
<span
|
|
107
73
|
key={name}
|
|
108
|
-
className="text-lg font-semibold tracking-tight text-muted-foreground/30
|
|
74
|
+
className="select-none text-lg font-semibold tracking-tight text-muted-foreground/30"
|
|
109
75
|
>
|
|
110
76
|
{name}
|
|
111
77
|
</span>
|
|
@@ -114,35 +80,33 @@ export default function LandingPage() {
|
|
|
114
80
|
</div>
|
|
115
81
|
</section>
|
|
116
82
|
|
|
117
|
-
{/* Gradient divider */}
|
|
118
83
|
<div aria-hidden="true" className="h-px bg-gradient-to-r from-transparent via-border to-transparent" />
|
|
119
84
|
|
|
120
|
-
<
|
|
121
|
-
<FeaturesSection />
|
|
122
|
-
</section>
|
|
85
|
+
<FeaturesSection />
|
|
123
86
|
|
|
124
|
-
{/* Gradient divider */}
|
|
125
87
|
<div aria-hidden="true" className="h-px bg-gradient-to-r from-transparent via-border to-transparent" />
|
|
126
88
|
|
|
127
|
-
<
|
|
128
|
-
<PricingSection />
|
|
129
|
-
</section>
|
|
89
|
+
<PricingSection />
|
|
130
90
|
</main>
|
|
131
91
|
|
|
132
|
-
<footer className="border-t
|
|
92
|
+
<footer className="border-t border-border/50 bg-muted/10">
|
|
133
93
|
<div className="mx-auto max-w-6xl px-6 py-16 lg:px-8">
|
|
134
|
-
<div className="grid gap-8
|
|
135
|
-
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
94
|
+
<div className="grid gap-8 lg:grid-cols-5 lg:gap-12">
|
|
95
|
+
<div className="lg:col-span-1">
|
|
96
|
+
<span className="text-lg font-semibold tracking-tight">{brand.name}</span>
|
|
97
|
+
<p className="mt-3 text-sm leading-relaxed text-muted-foreground">
|
|
98
|
+
{footer.tagline}
|
|
99
|
+
</p>
|
|
100
|
+
</div>
|
|
101
|
+
{Object.entries(footer.sections).map(([title, links]) => (
|
|
102
|
+
<div key={title}>
|
|
103
|
+
<h4 className="text-sm font-semibold text-foreground">{title}</h4>
|
|
140
104
|
<ul className="mt-4 space-y-3">
|
|
141
105
|
{links.map((link) => (
|
|
142
106
|
<li key={link.label}>
|
|
143
107
|
<a
|
|
144
108
|
href={link.href}
|
|
145
|
-
className="text-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:
|
|
109
|
+
className="text-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
|
|
146
110
|
>
|
|
147
111
|
{link.label}
|
|
148
112
|
</a>
|
|
@@ -152,10 +116,8 @@ export default function LandingPage() {
|
|
|
152
116
|
</div>
|
|
153
117
|
))}
|
|
154
118
|
</div>
|
|
155
|
-
<div className="mt-12 border-t pt-8">
|
|
156
|
-
<p className="text-sm text-muted-foreground">
|
|
157
|
-
© {new Date().getFullYear()} {'{{headline}}'}. All rights reserved.
|
|
158
|
-
</p>
|
|
119
|
+
<div className="mt-12 border-t border-border/50 pt-8">
|
|
120
|
+
<p className="text-sm text-muted-foreground">{footer.copyright}</p>
|
|
159
121
|
</div>
|
|
160
122
|
</div>
|
|
161
123
|
</footer>
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_meta": {
|
|
3
|
+
"doc": "Edit this file to customize ALL copy, branding, and content on the landing page. Components read from this at build time. Agents personalizing scaffolds should rewrite this file based on the user's actual product.",
|
|
4
|
+
"version": 1
|
|
5
|
+
},
|
|
6
|
+
"brand": {
|
|
7
|
+
"name": "Acme",
|
|
8
|
+
"tagline": "The platform for shipping fast"
|
|
9
|
+
},
|
|
10
|
+
"hero": {
|
|
11
|
+
"badge": "NOW IN BETA — GET EARLY ACCESS",
|
|
12
|
+
"headline": "Build something people want.",
|
|
13
|
+
"subheadline": "The modern platform that gives your team everything it needs to go from idea to production.",
|
|
14
|
+
"ctaPrimary": "Get Started",
|
|
15
|
+
"ctaSecondary": "See a Demo"
|
|
16
|
+
},
|
|
17
|
+
"trust": {
|
|
18
|
+
"label": "Trusted by 1,000+ teams worldwide",
|
|
19
|
+
"logoNames": ["Acme Corp", "TechFlow", "Quantum", "NovaSoft", "BuildStack", "DataPipe"]
|
|
20
|
+
},
|
|
21
|
+
"features": {
|
|
22
|
+
"eyebrow": "Features",
|
|
23
|
+
"headline": "Everything you need, nothing you don't",
|
|
24
|
+
"subheadline": "Built for teams who care about craft and ship fast.",
|
|
25
|
+
"primary": [
|
|
26
|
+
{
|
|
27
|
+
"icon": "Zap",
|
|
28
|
+
"title": "Lightning fast",
|
|
29
|
+
"description": "Optimized for speed at every layer. Sub-second cold starts, instant hot reload."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"icon": "Shield",
|
|
33
|
+
"title": "Secure by default",
|
|
34
|
+
"description": "Authentication, authorization, and encryption built in. SOC 2 ready out of the box."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"icon": "BarChart3",
|
|
38
|
+
"title": "Built-in analytics",
|
|
39
|
+
"description": "Real-time metrics, custom dashboards, and automatic alerting on what matters."
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"secondary": [
|
|
43
|
+
{
|
|
44
|
+
"icon": "Layers",
|
|
45
|
+
"title": "Composable architecture",
|
|
46
|
+
"description": "Mix and match the pieces you need."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"icon": "Globe",
|
|
50
|
+
"title": "Global by default",
|
|
51
|
+
"description": "Edge-deployed across 200+ regions."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"icon": "Lock",
|
|
55
|
+
"title": "Privacy-first",
|
|
56
|
+
"description": "Your data stays yours. No tracking, no telemetry."
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"pricing": {
|
|
61
|
+
"eyebrow": "Pricing",
|
|
62
|
+
"headline": "Simple, transparent pricing",
|
|
63
|
+
"subheadline": "Start free. Upgrade when you're ready. Cancel anytime.",
|
|
64
|
+
"toggleMonthly": "Monthly",
|
|
65
|
+
"toggleYearly": "Yearly",
|
|
66
|
+
"yearlyDiscount": "Save 20%",
|
|
67
|
+
"tiers": [
|
|
68
|
+
{
|
|
69
|
+
"name": "Free",
|
|
70
|
+
"price": "$0",
|
|
71
|
+
"period": "/mo",
|
|
72
|
+
"description": "For side projects and exploration",
|
|
73
|
+
"features": [
|
|
74
|
+
"Up to 3 projects",
|
|
75
|
+
"Community support",
|
|
76
|
+
"Basic analytics",
|
|
77
|
+
"1 team member"
|
|
78
|
+
],
|
|
79
|
+
"cta": "Start for free",
|
|
80
|
+
"highlighted": false,
|
|
81
|
+
"note": "No credit card required"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "Pro",
|
|
85
|
+
"price": "$29",
|
|
86
|
+
"period": "/mo",
|
|
87
|
+
"description": "For growing teams shipping in production",
|
|
88
|
+
"features": [
|
|
89
|
+
"Unlimited projects",
|
|
90
|
+
"Priority support",
|
|
91
|
+
"Advanced analytics",
|
|
92
|
+
"Up to 10 team members",
|
|
93
|
+
"Custom integrations",
|
|
94
|
+
"API access"
|
|
95
|
+
],
|
|
96
|
+
"cta": "Start free trial",
|
|
97
|
+
"highlighted": true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "Enterprise",
|
|
101
|
+
"price": "Custom",
|
|
102
|
+
"period": "",
|
|
103
|
+
"description": "For organizations with custom needs",
|
|
104
|
+
"features": [
|
|
105
|
+
"Everything in Pro",
|
|
106
|
+
"Unlimited team members",
|
|
107
|
+
"Dedicated support",
|
|
108
|
+
"Custom SLAs",
|
|
109
|
+
"SSO and SAML",
|
|
110
|
+
"On-premise deployment"
|
|
111
|
+
],
|
|
112
|
+
"cta": "Contact sales",
|
|
113
|
+
"highlighted": false
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"footer": {
|
|
118
|
+
"tagline": "Built with care by people who give a damn.",
|
|
119
|
+
"sections": {
|
|
120
|
+
"Product": [
|
|
121
|
+
{ "label": "Features", "href": "#features" },
|
|
122
|
+
{ "label": "Pricing", "href": "#pricing" },
|
|
123
|
+
{ "label": "Changelog", "href": "/changelog" },
|
|
124
|
+
{ "label": "Docs", "href": "/docs" }
|
|
125
|
+
],
|
|
126
|
+
"Company": [
|
|
127
|
+
{ "label": "About", "href": "/about" },
|
|
128
|
+
{ "label": "Blog", "href": "/blog" },
|
|
129
|
+
{ "label": "Careers", "href": "/careers" },
|
|
130
|
+
{ "label": "Contact", "href": "/contact" }
|
|
131
|
+
],
|
|
132
|
+
"Resources": [
|
|
133
|
+
{ "label": "Documentation", "href": "/docs" },
|
|
134
|
+
{ "label": "API Reference", "href": "/docs/api" },
|
|
135
|
+
{ "label": "Status", "href": "/status" },
|
|
136
|
+
{ "label": "Support", "href": "/support" }
|
|
137
|
+
],
|
|
138
|
+
"Legal": [
|
|
139
|
+
{ "label": "Privacy", "href": "/privacy" },
|
|
140
|
+
{ "label": "Terms", "href": "/terms" },
|
|
141
|
+
{ "label": "Security", "href": "/security" }
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"copyright": "© 2026 Acme. All rights reserved."
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -4,147 +4,100 @@ import * as React from 'react'
|
|
|
4
4
|
import { Button } from '@/components/ui/button'
|
|
5
5
|
import { Check } from 'lucide-react'
|
|
6
6
|
import { cn } from '@/lib/utils'
|
|
7
|
-
|
|
8
|
-
const tiers = [
|
|
9
|
-
{
|
|
10
|
-
name: 'Free',
|
|
11
|
-
price: { monthly: '$0', yearly: '$0' },
|
|
12
|
-
description: 'For side projects and experimentation.',
|
|
13
|
-
features: [
|
|
14
|
-
'Up to 3 projects',
|
|
15
|
-
'1 GB storage',
|
|
16
|
-
'Community support',
|
|
17
|
-
'Basic analytics',
|
|
18
|
-
],
|
|
19
|
-
cta: 'Get Started',
|
|
20
|
-
highlighted: false,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'Pro',
|
|
24
|
-
price: { monthly: '$29', yearly: '$24' },
|
|
25
|
-
description: 'For growing teams that need more power.',
|
|
26
|
-
features: [
|
|
27
|
-
'Unlimited projects',
|
|
28
|
-
'100 GB storage',
|
|
29
|
-
'Priority support',
|
|
30
|
-
'Advanced analytics',
|
|
31
|
-
'Custom domains',
|
|
32
|
-
'Team roles',
|
|
33
|
-
],
|
|
34
|
-
cta: 'Start Free Trial',
|
|
35
|
-
highlighted: true,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'Enterprise',
|
|
39
|
-
price: { monthly: 'Custom', yearly: 'Custom' },
|
|
40
|
-
description: 'For organizations with advanced needs.',
|
|
41
|
-
features: [
|
|
42
|
-
'Everything in Pro',
|
|
43
|
-
'Unlimited storage',
|
|
44
|
-
'Dedicated support engineer',
|
|
45
|
-
'SSO / SAML',
|
|
46
|
-
'SLA guarantees',
|
|
47
|
-
'Audit logs',
|
|
48
|
-
],
|
|
49
|
-
cta: 'Contact Sales',
|
|
50
|
-
highlighted: false,
|
|
51
|
-
},
|
|
52
|
-
]
|
|
7
|
+
import personalize from '@/personalize.json'
|
|
53
8
|
|
|
54
9
|
export function PricingSection() {
|
|
55
10
|
const [yearly, setYearly] = React.useState(false)
|
|
11
|
+
const { pricing } = personalize
|
|
56
12
|
|
|
57
13
|
return (
|
|
58
|
-
<section className="py-24 sm:py-32">
|
|
14
|
+
<section id="pricing" className="relative bg-background py-24 sm:py-32">
|
|
59
15
|
<div className="mx-auto max-w-6xl px-6 lg:px-8">
|
|
60
16
|
<div className="mx-auto max-w-2xl text-center">
|
|
61
|
-
<
|
|
62
|
-
|
|
17
|
+
<p className="text-sm font-semibold uppercase tracking-wider text-primary">
|
|
18
|
+
{pricing.eyebrow}
|
|
19
|
+
</p>
|
|
20
|
+
<h2 className="mt-3 text-4xl font-bold tracking-tight text-foreground sm:text-5xl">
|
|
21
|
+
{pricing.headline}
|
|
63
22
|
</h2>
|
|
64
|
-
<p className="mt-
|
|
65
|
-
|
|
23
|
+
<p className="mt-6 text-lg leading-relaxed text-muted-foreground">
|
|
24
|
+
{pricing.subheadline}
|
|
66
25
|
</p>
|
|
26
|
+
</div>
|
|
67
27
|
|
|
68
|
-
|
|
69
|
-
<div className="
|
|
70
|
-
{/* Sliding indicator */}
|
|
71
|
-
<div
|
|
72
|
-
className={cn(
|
|
73
|
-
'absolute inset-y-1 w-[calc(50%-4px)] rounded-full bg-primary shadow-sm transition-transform duration-200 ease-out',
|
|
74
|
-
yearly ? 'translate-x-[calc(100%+4px)]' : 'translate-x-0.5'
|
|
75
|
-
)}
|
|
76
|
-
/>
|
|
28
|
+
<div className="mt-12 flex justify-center">
|
|
29
|
+
<div className="inline-flex items-center rounded-full border border-border/50 bg-muted/50 p-1 shadow-sm">
|
|
77
30
|
<button
|
|
78
31
|
type="button"
|
|
79
32
|
onClick={() => setYearly(false)}
|
|
80
33
|
className={cn(
|
|
81
|
-
'
|
|
82
|
-
!yearly
|
|
83
|
-
? 'text-primary-foreground'
|
|
84
|
-
: 'text-muted-foreground hover:text-foreground'
|
|
34
|
+
'rounded-full px-5 py-2 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2',
|
|
35
|
+
!yearly ? 'bg-primary text-primary-foreground shadow-sm' : 'text-muted-foreground hover:text-foreground',
|
|
85
36
|
)}
|
|
86
37
|
>
|
|
87
|
-
|
|
38
|
+
{pricing.toggleMonthly}
|
|
88
39
|
</button>
|
|
89
40
|
<button
|
|
90
41
|
type="button"
|
|
91
42
|
onClick={() => setYearly(true)}
|
|
92
43
|
className={cn(
|
|
93
|
-
'
|
|
94
|
-
yearly
|
|
95
|
-
? 'text-primary-foreground'
|
|
96
|
-
: 'text-muted-foreground hover:text-foreground'
|
|
44
|
+
'inline-flex items-center gap-2 rounded-full px-5 py-2 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2',
|
|
45
|
+
yearly ? 'bg-primary text-primary-foreground shadow-sm' : 'text-muted-foreground hover:text-foreground',
|
|
97
46
|
)}
|
|
98
47
|
>
|
|
99
|
-
|
|
100
|
-
{!yearly &&
|
|
48
|
+
{pricing.toggleYearly}
|
|
49
|
+
{!yearly && (
|
|
50
|
+
<span className="rounded-full bg-primary/10 px-2 py-0.5 text-xs font-semibold text-primary">
|
|
51
|
+
{pricing.yearlyDiscount}
|
|
52
|
+
</span>
|
|
53
|
+
)}
|
|
101
54
|
</button>
|
|
102
55
|
</div>
|
|
103
56
|
</div>
|
|
104
57
|
|
|
105
|
-
<div className="
|
|
106
|
-
{tiers.map((tier) => (
|
|
58
|
+
<div className="mt-16 grid gap-8 lg:grid-cols-3 lg:gap-6">
|
|
59
|
+
{pricing.tiers.map((tier) => (
|
|
107
60
|
<div
|
|
108
61
|
key={tier.name}
|
|
109
62
|
className={cn(
|
|
110
|
-
'
|
|
63
|
+
'relative rounded-2xl bg-card p-8 transition-all',
|
|
111
64
|
tier.highlighted
|
|
112
|
-
? '
|
|
113
|
-
: 'border-border/50
|
|
65
|
+
? 'border-2 border-primary bg-gradient-to-b from-primary/5 to-transparent shadow-2xl shadow-primary/10 ring-1 ring-primary/20 lg:scale-105'
|
|
66
|
+
: 'border border-border/50 shadow-sm hover:shadow-md',
|
|
114
67
|
)}
|
|
115
68
|
>
|
|
116
69
|
{tier.highlighted && (
|
|
117
|
-
<div className="absolute -top-4 left-1/2 -translate-x-1/2
|
|
118
|
-
|
|
70
|
+
<div className="absolute -top-4 left-1/2 -translate-x-1/2">
|
|
71
|
+
<span className="rounded-full bg-primary px-4 py-1 text-xs font-semibold uppercase tracking-wider text-primary-foreground shadow-md">
|
|
72
|
+
Most Popular
|
|
73
|
+
</span>
|
|
119
74
|
</div>
|
|
120
75
|
)}
|
|
121
76
|
|
|
122
77
|
<div className="space-y-8">
|
|
123
78
|
<div>
|
|
124
|
-
<h3 className="text-lg font-semibold text-foreground">
|
|
125
|
-
|
|
126
|
-
</h3>
|
|
127
|
-
<p className="mt-1 text-sm text-muted-foreground">
|
|
128
|
-
{tier.description}
|
|
129
|
-
</p>
|
|
79
|
+
<h3 className="text-lg font-semibold text-foreground">{tier.name}</h3>
|
|
80
|
+
<p className="mt-2 text-sm text-muted-foreground">{tier.description}</p>
|
|
130
81
|
</div>
|
|
131
82
|
|
|
132
83
|
<div className="flex items-baseline gap-1">
|
|
133
84
|
<span className="text-5xl font-bold tracking-tight text-foreground">
|
|
134
|
-
{
|
|
85
|
+
{tier.price}
|
|
135
86
|
</span>
|
|
136
|
-
{tier.
|
|
137
|
-
<span className="text-sm text-muted-foreground"
|
|
87
|
+
{tier.period && (
|
|
88
|
+
<span className="text-sm font-medium text-muted-foreground">
|
|
89
|
+
{tier.period}
|
|
90
|
+
</span>
|
|
138
91
|
)}
|
|
139
92
|
</div>
|
|
140
93
|
|
|
141
94
|
<ul className="space-y-4">
|
|
142
95
|
{tier.features.map((feature) => (
|
|
143
|
-
<li key={feature} className="flex items-start gap-
|
|
96
|
+
<li key={feature} className="flex items-start gap-3">
|
|
144
97
|
<span className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10">
|
|
145
98
|
<Check className="h-3 w-3 text-primary" />
|
|
146
99
|
</span>
|
|
147
|
-
<span className="text-
|
|
100
|
+
<span className="text-sm text-foreground">{feature}</span>
|
|
148
101
|
</li>
|
|
149
102
|
))}
|
|
150
103
|
</ul>
|
|
@@ -154,15 +107,13 @@ export function PricingSection() {
|
|
|
154
107
|
variant={tier.highlighted ? 'default' : 'outline'}
|
|
155
108
|
className={cn(
|
|
156
109
|
'h-12 w-full rounded-lg font-medium transition-transform hover:scale-[1.02] active:scale-[0.98] focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2',
|
|
157
|
-
tier.highlighted
|
|
110
|
+
tier.highlighted ? 'shadow-lg shadow-primary/25' : 'border-2',
|
|
158
111
|
)}
|
|
159
112
|
>
|
|
160
113
|
{tier.cta}
|
|
161
114
|
</Button>
|
|
162
|
-
{tier.
|
|
163
|
-
<p className="mt-3 text-center text-xs text-muted-foreground">
|
|
164
|
-
No credit card required
|
|
165
|
-
</p>
|
|
115
|
+
{tier.note && (
|
|
116
|
+
<p className="mt-3 text-center text-xs text-muted-foreground">{tier.note}</p>
|
|
166
117
|
)}
|
|
167
118
|
</div>
|
|
168
119
|
</div>
|