| import React from 'react'; | |
| import { ShieldCheck, HeartHandshake, Crown, Camera, Sparkles } from 'lucide-react'; | |
| import { Language } from '../types'; | |
| import { TRANSLATIONS } from '../constants/translations'; | |
| interface FeaturesProps { | |
| language: Language; | |
| } | |
| export const Features: React.FC<FeaturesProps> = ({ language }) => { | |
| const t = TRANSLATIONS[language]; | |
| const features = [ | |
| { | |
| icon: <ShieldCheck className="w-8 h-8 text-rose-500" />, | |
| title: t.feat1Title, | |
| desc: t.feat1Desc, | |
| }, | |
| { | |
| icon: <HeartHandshake className="w-8 h-8 text-rose-500" />, | |
| title: t.feat2Title, | |
| desc: t.feat2Desc, | |
| }, | |
| { | |
| icon: <Crown className="w-8 h-8 text-rose-500" />, | |
| title: t.feat3Title, | |
| desc: t.feat3Desc, | |
| }, | |
| { | |
| icon: <Camera className="w-8 h-8 text-rose-500" />, | |
| title: t.feat4Title, | |
| desc: t.feat4Desc, | |
| }, | |
| ]; | |
| return ( | |
| <section className="py-12 bg-white"> | |
| <div className="max-w-7xl mx-auto px-4 sm:px-6"> | |
| <div className="text-center mb-10"> | |
| <h2 className="text-2xl sm:text-3xl font-serif font-bold text-gray-900 mb-2"> | |
| {t.whyUsTitle} | |
| </h2> | |
| <p className="text-gray-500">{t.whyUsDesc}</p> | |
| </div> | |
| <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6"> | |
| {features.map((feat, idx) => ( | |
| <div key={idx} className="bg-rose-50/50 rounded-xl p-6 text-center hover:shadow-lg transition-shadow border border-rose-100"> | |
| <div className="w-16 h-16 bg-white rounded-full flex items-center justify-center shadow-sm mx-auto mb-4 text-rose-500"> | |
| {feat.icon} | |
| </div> | |
| <h3 className="font-bold text-gray-800 mb-2">{feat.title}</h3> | |
| <p className="text-sm text-gray-600 leading-relaxed">{feat.desc}</p> | |
| </div> | |
| ))} | |
| </div> | |
| </div> | |
| </section> | |
| ); | |
| }; |