|
| 1 | +import { Card, CardContent } from "@/components/ui/card"; |
| 2 | +import { useTranslation } from "react-i18next"; |
| 3 | +import { getHomepageLocale, homepageContent } from "@/lib/homepageContent"; |
| 4 | + |
| 5 | +const IndustrySolutions = () => { |
| 6 | + const { i18n } = useTranslation(); |
| 7 | + const content = homepageContent[getHomepageLocale(i18n.language)]; |
| 8 | + |
| 9 | + return ( |
| 10 | + <section id="solutions" className="bg-secondary/25 py-24"> |
| 11 | + <div className="container mx-auto px-6"> |
| 12 | + <div className="mx-auto mb-14 max-w-3xl text-center"> |
| 13 | + <p className="mb-3 text-sm font-semibold uppercase tracking-normal text-primary"> |
| 14 | + {content.solutions.eyebrow} |
| 15 | + </p> |
| 16 | + <h2 className="text-4xl font-bold leading-tight md:text-5xl"> |
| 17 | + {content.solutions.title} |
| 18 | + </h2> |
| 19 | + <p className="mt-5 text-lg leading-8 text-muted-foreground"> |
| 20 | + {content.solutions.subtitle} |
| 21 | + </p> |
| 22 | + </div> |
| 23 | + |
| 24 | + <div className="grid grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-4"> |
| 25 | + {content.solutions.items.map((solution) => { |
| 26 | + const SolutionIcon = solution.icon; |
| 27 | + |
| 28 | + return ( |
| 29 | + <Card key={solution.title} className="border-border/70 bg-card/80 shadow-card"> |
| 30 | + <CardContent className="p-6"> |
| 31 | + <SolutionIcon className="h-8 w-8 text-primary" /> |
| 32 | + <h3 className="mt-6 text-xl font-semibold">{solution.title}</h3> |
| 33 | + <p className="mt-4 text-sm leading-7 text-muted-foreground"> |
| 34 | + {solution.description} |
| 35 | + </p> |
| 36 | + </CardContent> |
| 37 | + </Card> |
| 38 | + ); |
| 39 | + })} |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + </section> |
| 43 | + ); |
| 44 | +}; |
| 45 | + |
| 46 | +export default IndustrySolutions; |
0 commit comments