feat: Pricing - functional CTAs (Free→demo, Pro→docs, Enterprise→email), Footer - live health polling
#24
by MouleeswaranM - opened
landing/src/components/Pricing.tsx
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import './Pricing.css'
|
| 2 |
|
|
|
|
|
|
|
| 3 |
const plans = [
|
| 4 |
{
|
| 5 |
name: 'Free',
|
|
@@ -14,7 +16,8 @@ const plans = [
|
|
| 14 |
'Wellness & carbon scoring',
|
| 15 |
'Community support',
|
| 16 |
],
|
| 17 |
-
cta: '
|
|
|
|
| 18 |
ctaStyle: 'outline',
|
| 19 |
popular: false,
|
| 20 |
},
|
|
@@ -29,12 +32,14 @@ const plans = [
|
|
| 29 |
'Unlimited API keys',
|
| 30 |
'Full explainability (SHAP-level)',
|
| 31 |
'Night safety routing',
|
| 32 |
-
'
|
| 33 |
'Priority support (24h SLA)',
|
| 34 |
],
|
| 35 |
-
cta: '
|
|
|
|
| 36 |
ctaStyle: 'primary',
|
| 37 |
popular: true,
|
|
|
|
| 38 |
},
|
| 39 |
{
|
| 40 |
name: 'Enterprise',
|
|
@@ -50,9 +55,11 @@ const plans = [
|
|
| 50 |
'White-label option',
|
| 51 |
'Dedicated engineer',
|
| 52 |
],
|
| 53 |
-
cta: '
|
|
|
|
| 54 |
ctaStyle: 'outline',
|
| 55 |
popular: false,
|
|
|
|
| 56 |
},
|
| 57 |
]
|
| 58 |
|
|
@@ -88,7 +95,8 @@ export default function Pricing() {
|
|
| 88 |
</li>
|
| 89 |
))}
|
| 90 |
</ul>
|
| 91 |
-
<a href=
|
|
|
|
| 92 |
{p.cta}
|
| 93 |
</a>
|
| 94 |
</div>
|
|
|
|
| 1 |
import './Pricing.css'
|
| 2 |
|
| 3 |
+
const API_URL = import.meta.env.VITE_API_URL || 'https://fairrelay-backend.onrender.com'
|
| 4 |
+
|
| 5 |
const plans = [
|
| 6 |
{
|
| 7 |
name: 'Free',
|
|
|
|
| 16 |
'Wellness & carbon scoring',
|
| 17 |
'Community support',
|
| 18 |
],
|
| 19 |
+
cta: 'Try Live Demo ↓',
|
| 20 |
+
ctaHref: '#demo',
|
| 21 |
ctaStyle: 'outline',
|
| 22 |
popular: false,
|
| 23 |
},
|
|
|
|
| 32 |
'Unlimited API keys',
|
| 33 |
'Full explainability (SHAP-level)',
|
| 34 |
'Night safety routing',
|
| 35 |
+
'EV-first allocation',
|
| 36 |
'Priority support (24h SLA)',
|
| 37 |
],
|
| 38 |
+
cta: 'View API Docs →',
|
| 39 |
+
ctaHref: `${API_URL}/docs`,
|
| 40 |
ctaStyle: 'primary',
|
| 41 |
popular: true,
|
| 42 |
+
external: true,
|
| 43 |
},
|
| 44 |
{
|
| 45 |
name: 'Enterprise',
|
|
|
|
| 55 |
'White-label option',
|
| 56 |
'Dedicated engineer',
|
| 57 |
],
|
| 58 |
+
cta: 'Contact Sales →',
|
| 59 |
+
ctaHref: 'mailto:muthukumaran@logisticsnow.in?subject=FairRelay Enterprise Inquiry&body=Hi, I\'m interested in FairRelay Enterprise for our fleet operations. Our scale: [number of drivers/routes per day].',
|
| 60 |
ctaStyle: 'outline',
|
| 61 |
popular: false,
|
| 62 |
+
external: true,
|
| 63 |
},
|
| 64 |
]
|
| 65 |
|
|
|
|
| 95 |
</li>
|
| 96 |
))}
|
| 97 |
</ul>
|
| 98 |
+
<a href={p.ctaHref} className={`btn btn--lg btn--${p.ctaStyle}`}
|
| 99 |
+
{...(p.external ? { target: '_blank', rel: 'noopener noreferrer' } : {})}>
|
| 100 |
{p.cta}
|
| 101 |
</a>
|
| 102 |
</div>
|