@@ -2,14 +2,13 @@ import { Button } from "@/components/ui/button";
22import { Play , Star } from "lucide-react" ;
33import { Translations } from "@/i18n/translations" ;
44import logo from "@/assets/logo.png" ;
5-
65interface CTASectionProps {
76 t : Translations ;
87}
9-
10- const CTASection = ( { t } : CTASectionProps ) => {
11- return (
12- < section className = "py-24 relative overflow-hidden" >
8+ const CTASection = ( {
9+ t
10+ } : CTASectionProps ) => {
11+ return < section className = "py-24 relative overflow-hidden" >
1312 { /* Background */ }
1413 < div className = "absolute inset-0 bg-gradient-to-b from-background via-primary/5 to-background" />
1514 < div className = "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-primary/10 rounded-full blur-3xl" />
@@ -18,11 +17,7 @@ const CTASection = ({ t }: CTASectionProps) => {
1817 < div className = "max-w-3xl mx-auto text-center" >
1918 { /* Logo */ }
2019 < div className = "mb-8" >
21- < img
22- src = { logo }
23- alt = "WorkoutLogs"
24- className = "w-20 h-20 mx-auto animate-float"
25- />
20+ < img src = { logo } alt = "WorkoutLogs" className = "h-20 mx-auto animate-float aspect-ratio-[2/1]" />
2621 </ div >
2722
2823 < h2 className = "text-3xl md:text-5xl font-bold mb-6" >
@@ -37,23 +32,13 @@ const CTASection = ({ t }: CTASectionProps) => {
3732
3833 { /* Rating */ }
3934 < div className = "flex items-center justify-center gap-1 mb-8" >
40- { [ 1 , 2 , 3 , 4 , 5 ] . map ( ( star ) => (
41- < Star
42- key = { star }
43- className = { `w-5 h-5 ${ star <= 4 ? 'text-yellow-400 fill-yellow-400' : 'text-yellow-400 fill-yellow-400/50' } ` }
44- />
45- ) ) }
35+ { [ 1 , 2 , 3 , 4 , 5 ] . map ( star => < Star key = { star } className = { `w-5 h-5 ${ star <= 4 ? 'text-yellow-400 fill-yellow-400' : 'text-yellow-400 fill-yellow-400/50' } ` } /> ) }
4636 < span className = "text-muted-foreground ml-2" > 4.8 { t . cta . ratingText } </ span >
4737 </ div >
4838
4939 { /* CTA Button */ }
5040 < Button variant = "hero" size = "xl" asChild >
51- < a
52- href = "https://play.google.com/store/apps/details?id=com.workoutlogs"
53- target = "_blank"
54- rel = "noopener noreferrer"
55- className = "flex items-center gap-3"
56- >
41+ < a href = "https://play.google.com/store/apps/details?id=com.workoutlogs" target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-3" >
5742 < Play className = "w-5 h-5" />
5843 { t . cta . downloadButton }
5944 </ a >
@@ -64,8 +49,6 @@ const CTASection = ({ t }: CTASectionProps) => {
6449 </ p >
6550 </ div >
6651 </ div >
67- </ section >
68- ) ;
52+ </ section > ;
6953} ;
70-
71- export default CTASection ;
54+ export default CTASection ;
0 commit comments