52 lines
1.9 KiB
TypeScript
52 lines
1.9 KiB
TypeScript
import React from 'react';
|
|
import { ShieldCheck, Info } from 'lucide-react';
|
|
import { resolveLocalised } from '@/types';
|
|
|
|
interface PricingExplainerSectionProps {
|
|
title?: any;
|
|
notes?: string[];
|
|
locale?: string;
|
|
}
|
|
|
|
export function PricingExplainerSection({
|
|
title,
|
|
notes = [],
|
|
locale = 'en',
|
|
}: PricingExplainerSectionProps) {
|
|
return (
|
|
<section className="py-12 bg-white dark:bg-slate-900">
|
|
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div className="bg-gradient-to-br from-blue-50/60 to-slate-50 dark:from-blue-950/30 dark:to-slate-950 rounded-3xl p-6 sm:p-8 border border-blue-100 dark:border-blue-900/60 space-y-6">
|
|
<div className="flex items-center space-x-3">
|
|
<div className="w-10 h-10 rounded-xl bg-blue-600 text-white flex items-center justify-center">
|
|
<ShieldCheck className="w-5 h-5" />
|
|
</div>
|
|
<div>
|
|
<h3 className="text-xl font-bold text-slate-900 dark:text-white">
|
|
{resolveLocalised(title, locale, 'How App Pricing & Credits Work')}
|
|
</h3>
|
|
<p className="text-xs text-slate-500 dark:text-slate-400">
|
|
Transparent and simple: no surprise auto-renewing web subscriptions.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
|
{notes.map((note, idx) => (
|
|
<div
|
|
key={idx}
|
|
className="flex items-start space-x-3 p-4 rounded-2xl bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800"
|
|
>
|
|
<Info className="w-4 h-4 text-blue-600 shrink-0 mt-0.5" />
|
|
<span className="text-xs text-slate-700 dark:text-slate-300 leading-relaxed">
|
|
{note}
|
|
</span>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|