features-section.tsx 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. "use client"
  2. import { Card, CardContent } from "@/components/ui/card"
  3. import { WandIcon, PaletteIcon, ImageIcon, DownloadIcon } from "lucide-react"
  4. import { useTranslations } from "next-intl"
  5. interface FeaturesSectionProps {
  6. locale: string
  7. }
  8. export default function FeaturesSection({ locale }: FeaturesSectionProps) {
  9. const t = useTranslations("features")
  10. const features = [
  11. {
  12. icon: WandIcon,
  13. title: t("smartKeywords.title"),
  14. description: t("smartKeywords.description"),
  15. gradient: "from-purple-500 to-pink-500",
  16. },
  17. {
  18. icon: PaletteIcon,
  19. title: t("stylizedFilters.title"),
  20. description: t("stylizedFilters.description"),
  21. gradient: "from-blue-500 to-cyan-500",
  22. },
  23. {
  24. icon: ImageIcon,
  25. title: t("objectManipulation.title"),
  26. description: t("objectManipulation.description"),
  27. gradient: "from-green-500 to-emerald-500",
  28. },
  29. {
  30. icon: DownloadIcon,
  31. title: t("highResolution.title"),
  32. description: t("highResolution.description"),
  33. gradient: "from-orange-500 to-red-500",
  34. },
  35. ]
  36. return (
  37. <section id="features" className="py-20 bg-muted/30">
  38. <div className="container mx-auto px-4 sm:px-6 lg:px-8">
  39. <div className="text-center mb-16">
  40. <h2 className="text-3xl md:text-4xl font-bold mb-4">{t("title")}</h2>
  41. <p className="text-xl text-muted-foreground max-w-3xl mx-auto">{t("subtitle")}</p>
  42. </div>
  43. <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
  44. {features.map((feature, index) => (
  45. <Card
  46. key={index}
  47. className="group hover:shadow-lg transition-all duration-300 border-0 bg-background/60 backdrop-blur-sm"
  48. >
  49. <CardContent className="p-6 text-center">
  50. <div
  51. className={`inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-r ${feature.gradient} mb-6 group-hover:scale-110 transition-transform duration-300`}
  52. >
  53. <feature.icon className="w-8 h-8 text-white" />
  54. </div>
  55. <h3 className="text-xl font-semibold mb-3">{feature.title}</h3>
  56. <p className="text-muted-foreground leading-relaxed">{feature.description}</p>
  57. </CardContent>
  58. </Card>
  59. ))}
  60. </div>
  61. </div>
  62. </section>
  63. )
  64. }