import { Link } from "react-router"; import { CheckCircle, Phone, ArrowRight, Star } from "lucide-react"; import { ImageWithFallback } from "../components/figma/ImageWithFallback"; import { useTranslation } from "react-i18next"; export function Home() { const { t } = useTranslation(); const services = [ { title: t("home.services.items.plumbing.title"), description: t("home.services.items.plumbing.description"), image: "https://images.unsplash.com/photo-1760571327612-8ab776dcd462?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxob21lJTIwcmVwYWlyJTIwcGx1bWJpbmd8ZW58MXx8fHwxNzcxNTE2ODQ2fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral", }, { title: t("home.services.items.electrical.title"), description: t("home.services.items.electrical.description"), image: "https://images.unsplash.com/photo-1767514536570-83d70c024247?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxlbGVjdHJpY2FsJTIwd29yayUyMGluc3RhbGxhdGlvbnxlbnwxfHx8fDE3NzE1OTg3OTh8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral", }, { title: t("home.services.items.painting.title"), description: t("home.services.items.painting.description"), image: "https://images.unsplash.com/photo-1574359411659-15573a27fd0c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxob3VzZSUyMHBhaW50aW5nJTIwY29udHJhY3RvcnxlbnwxfHx8fDE3NzE1OTg3OTh8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral", }, ]; const features = [ t("home.features.licensed"), t("home.features.sameDay"), t("home.features.quality"), t("home.features.affordable"), t("home.features.satisfaction"), t("home.features.emergency"), ]; const testimonials = [ { name: t("home.testimonials.items.sarah.name"), text: t("home.testimonials.items.sarah.text"), rating: 5, }, { name: t("home.testimonials.items.mike.name"), text: t("home.testimonials.items.mike.text"), rating: 5, }, { name: t("home.testimonials.items.emily.name"), text: t("home.testimonials.items.emily.text"), rating: 5, }, ]; return (
{/* Hero */}

{t("home.hero.title")} {t("home.hero.titleHighlight")}

{t("home.hero.subtitle")}

{t("home.hero.ctaPrimary")} {t("home.hero.ctaSecondary")}
{features.map((feature, index) => (
{feature}
))}
{/* Services Section */}

{t("home.services.title")}

{t("home.services.subtitle")}

{services.map((service, index) => (

{service.title}

{service.description}

{t("home.services.learnMore")}
))}
{t("home.services.viewAll")}
{/* About Preview Section */}

{t("home.about.title")}

{t("home.about.subtitle")}

  • {t("home.about.points.experienced.title")}

    {t("home.about.points.experienced.text")}

  • {t("home.about.points.pricing.title")}

    {t("home.about.points.pricing.text")}

  • {t("home.about.points.guarantee.title")}

    {t("home.about.points.guarantee.text")}

{t("home.about.learnMore")}
{/* Testimonials Section */}

{t("home.testimonials.title")}

{t("home.testimonials.subtitle")}

{testimonials.map((testimonial, index) => (
{[...Array(testimonial.rating)].map((_, i) => ( ))}

"{testimonial.text}"

- {testimonial.name}

))}
{/* CTA Section */}

{t("home.cta.title")}

{t("home.cta.subtitle")}

{t("home.cta.primary")} {t("home.cta.secondary")}
); }