11import { Dumbbell , FileText , Calculator , TrendingUp , BarChart3 , Cloud , Plus } from "lucide-react" ;
2- import { Translations } from "@/i18n/translations" ;
3- interface FeaturesSectionProps {
4- t : Translations ;
5- }
6- const FeaturesSection = ( {
7- t
8- } : FeaturesSectionProps ) => {
9- const features = [ {
10- icon : Dumbbell ,
11- title : t . features . workoutLog . title ,
12- description : t . features . workoutLog . description
13- } , {
14- icon : FileText ,
15- title : t . features . workoutSheets . title ,
16- description : t . features . workoutSheets . description
17- } , {
18- icon : Calculator ,
19- title : t . features . calculators . title ,
20- description : t . features . calculators . description
21- } , {
22- icon : TrendingUp ,
23- title : t . features . bodyTracking . title ,
24- description : t . features . bodyTracking . description
25- } , {
26- icon : BarChart3 ,
27- title : t . features . progressAnalysis . title ,
28- description : t . features . progressAnalysis . description
29- } , {
30- icon : Cloud ,
31- title : t . features . cloudSync . title ,
32- description : t . features . cloudSync . description
33- } ] ;
34- return < section id = "funcionalidades" className = "py-24 bg-secondary/30" >
2+ import { useLanguage } from "@/i18n/LanguageContext" ;
3+
4+ const FeaturesSection = ( ) => {
5+ const { t } = useLanguage ( ) ;
6+
7+ const features = [
8+ {
9+ icon : Dumbbell ,
10+ title : t . features . workoutLog . title ,
11+ description : t . features . workoutLog . description ,
12+ } ,
13+ {
14+ icon : FileText ,
15+ title : t . features . workoutSheets . title ,
16+ description : t . features . workoutSheets . description ,
17+ } ,
18+ {
19+ icon : Calculator ,
20+ title : t . features . calculators . title ,
21+ description : t . features . calculators . description ,
22+ } ,
23+ {
24+ icon : TrendingUp ,
25+ title : t . features . bodyTracking . title ,
26+ description : t . features . bodyTracking . description ,
27+ } ,
28+ {
29+ icon : BarChart3 ,
30+ title : t . features . progressAnalysis . title ,
31+ description : t . features . progressAnalysis . description ,
32+ } ,
33+ {
34+ icon : Cloud ,
35+ title : t . features . cloudSync . title ,
36+ description : t . features . cloudSync . description ,
37+ } ,
38+ ] ;
39+
40+ return (
41+ < section id = "funcionalidades" className = "py-24 bg-secondary/30" >
3542 < div className = "container" >
3643 { /* Section Header */ }
3744 < div className = "text-center max-w-2xl mx-auto mb-16" >
@@ -42,16 +49,17 @@ const FeaturesSection = ({
4249 { t . features . title1 }
4350 < span className = "text-gradient" > { t . features . title2 } </ span >
4451 </ h2 >
45- < p className = "text-muted-foreground text-lg" >
46- { t . features . subtitle }
47- </ p >
52+ < p className = "text-muted-foreground text-lg" > { t . features . subtitle } </ p >
4853 </ div >
4954
5055 { /* Features Grid */ }
5156 < div className = "grid md:grid-cols-2 lg:grid-cols-3 gap-6" >
52- { features . map ( ( feature , index ) => < div key = { feature . title } className = "group p-8 rounded-2xl bg-gradient-card border border-border hover:border-primary/50 transition-all duration-300 hover:-translate-y-1 shadow-card" style = { {
53- animationDelay : `${ index * 100 } ms`
54- } } >
57+ { features . map ( ( feature , index ) => (
58+ < div
59+ key = { feature . title }
60+ className = "group p-8 rounded-2xl bg-gradient-card border border-border hover:border-primary/50 transition-all duration-300 hover:-translate-y-1 shadow-card"
61+ style = { { animationDelay : `${ index * 100 } ms` } }
62+ >
5563 < div className = "w-14 h-14 rounded-xl bg-primary/10 flex items-center justify-center mb-6 group-hover:bg-primary/20 transition-colors" >
5664 < feature . icon className = "w-7 h-7 text-primary" />
5765 </ div >
@@ -61,7 +69,8 @@ const FeaturesSection = ({
6169 < p className = "text-muted-foreground leading-relaxed" >
6270 { feature . description }
6371 </ p >
64- </ div > ) }
72+ </ div >
73+ ) ) }
6574 </ div >
6675
6776 { /* Extra Feature */ }
@@ -70,13 +79,17 @@ const FeaturesSection = ({
7079 < Plus className = "w-6 h-6 text-primary" />
7180 </ div >
7281 < div >
73- < h3 className = "font-bold text-foreground" > { t . features . customExercises . title } </ h3 >
82+ < h3 className = "font-bold text-foreground" >
83+ { t . features . customExercises . title }
84+ </ h3 >
7485 < p className = "text-muted-foreground text-sm" >
7586 { t . features . customExercises . description }
7687 </ p >
7788 </ div >
7889 </ div >
7990 </ div >
80- </ section > ;
91+ </ section >
92+ ) ;
8193} ;
82- export default FeaturesSection ;
94+
95+ export default FeaturesSection ;
0 commit comments