|
| 1 | +import { Button } from "@/components/ui/button"; |
| 2 | +import { Card, CardContent } from "@/components/ui/card"; |
| 3 | +import Footer from "@/components/Footer"; |
| 4 | +import Header from "@/components/Header"; |
| 5 | +import PageHero from "@/components/PageHero"; |
| 6 | +import { getHomepageLocale, homepageContent } from "@/lib/homepageContent"; |
| 7 | +import { Mail, MapPin, Phone } from "lucide-react"; |
| 8 | +import { useTranslation } from "react-i18next"; |
| 9 | + |
| 10 | +const Contact = () => { |
| 11 | + const { i18n } = useTranslation(); |
| 12 | + const locale = getHomepageLocale(i18n.language); |
| 13 | + const content = homepageContent[locale]; |
| 14 | + const cards = [ |
| 15 | + { |
| 16 | + icon: Phone, |
| 17 | + title: locale === "zh" ? "电话沟通" : "Phone", |
| 18 | + value: "13218040662", |
| 19 | + href: "tel:13218040662", |
| 20 | + }, |
| 21 | + { |
| 22 | + icon: Mail, |
| 23 | + title: locale === "zh" ? "邮件联系" : "Email", |
| 24 | + value: "xurong.lu@fluxmq.com", |
| 25 | + href: "mailto:xurong.lu@fluxmq.com", |
| 26 | + }, |
| 27 | + { |
| 28 | + icon: MapPin, |
| 29 | + title: locale === "zh" ? "适合讨论" : "Best for", |
| 30 | + value: locale === "zh" ? "协议接入、MQTT 集群、FCP 运维管控" : "Protocols, MQTT clusters, and FCP operations", |
| 31 | + href: "/products", |
| 32 | + }, |
| 33 | + ]; |
| 34 | + |
| 35 | + return ( |
| 36 | + <div className="min-h-screen"> |
| 37 | + <Header /> |
| 38 | + <PageHero |
| 39 | + eyebrow={content.nav.contact} |
| 40 | + title={content.footer.contactTitle} |
| 41 | + subtitle={content.footer.contactText} |
| 42 | + image="/site-assets/suite-hero.webp" |
| 43 | + primaryLabel={content.footer.contactButton} |
| 44 | + primaryHref="mailto:xurong.lu@fluxmq.com" |
| 45 | + secondaryLabel={content.nav.products} |
| 46 | + secondaryHref="/products" |
| 47 | + /> |
| 48 | + <section className="bg-background py-24"> |
| 49 | + <div className="container mx-auto px-6"> |
| 50 | + <div className="grid grid-cols-1 gap-5 md:grid-cols-3"> |
| 51 | + {cards.map((card) => { |
| 52 | + const Icon = card.icon; |
| 53 | + |
| 54 | + return ( |
| 55 | + <Card key={card.title} className="border-border/70 bg-card/80 shadow-card"> |
| 56 | + <CardContent className="p-7"> |
| 57 | + <Icon className="h-8 w-8 text-primary" /> |
| 58 | + <h2 className="mt-6 text-xl font-semibold">{card.title}</h2> |
| 59 | + <a |
| 60 | + href={card.href} |
| 61 | + className="mt-4 block break-words text-sm leading-7 text-muted-foreground transition-colors hover:text-primary" |
| 62 | + > |
| 63 | + {card.value} |
| 64 | + </a> |
| 65 | + </CardContent> |
| 66 | + </Card> |
| 67 | + ); |
| 68 | + })} |
| 69 | + </div> |
| 70 | + |
| 71 | + <div className="mt-8 border border-border/70 bg-secondary/35 p-8"> |
| 72 | + <div className="flex flex-col gap-5 md:flex-row md:items-center md:justify-between"> |
| 73 | + <div> |
| 74 | + <h2 className="text-2xl font-bold"> |
| 75 | + {locale === "zh" ? "带着场景来聊,会更快落地" : "Bring your scenario, leave with a rollout path"} |
| 76 | + </h2> |
| 77 | + <p className="mt-3 max-w-3xl text-sm leading-7 text-muted-foreground"> |
| 78 | + {locale === "zh" |
| 79 | + ? "我们可以围绕协议类型、连接规模、部署环境、告警与审计要求,给出 Halia、FluxMQ、FCP 的组合建议。" |
| 80 | + : "We can map protocol mix, connection scale, deployment model, alerting, and audit requirements to the right Halia, FluxMQ, and FCP rollout."} |
| 81 | + </p> |
| 82 | + </div> |
| 83 | + <Button variant="hero" onClick={() => window.location.assign("mailto:xurong.lu@fluxmq.com")}> |
| 84 | + {content.footer.contactButton} |
| 85 | + </Button> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + </section> |
| 90 | + <Footer /> |
| 91 | + </div> |
| 92 | + ); |
| 93 | +}; |
| 94 | + |
| 95 | +export default Contact; |
0 commit comments