dev #113
@@ -792,6 +792,12 @@
|
||||
"socialProofLabel": "500+ Businesses Trust Us",
|
||||
"title": "Find the Right Part Instantly",
|
||||
"subtitle": "Cross-referenced OEM codes from multiple catalogs, always up to date. Enter a VIN and ship the right part the first time.",
|
||||
"lossPillA": "Wrong-part returns cost you thousands every month",
|
||||
"titleA": "End Wrong-Part Returns for Good",
|
||||
"subtitleA": "Enter the customer vehicle's VIN and find the correct OEM part the first time with cross-catalog verification. No returns, no losses — trusted by 500+ businesses. Try it free.",
|
||||
"lossPillB": "Start looking up VINs free — no card required",
|
||||
"titleB": "Find the Customer's Correct Part in Seconds",
|
||||
"subtitleB": "Enter the 17-digit VIN and reach the right OEM codes, part diagrams and prices in seconds. 27 brands, unlimited lookups. Start free — no credit card.",
|
||||
"vinPlaceholder": "Example: WVWZZZ1JZ3W597935",
|
||||
"searchCta": "Search",
|
||||
"decoding": "Decoding...",
|
||||
|
||||
@@ -792,6 +792,12 @@
|
||||
"socialProofLabel": "500+ İşletme Güveniyor",
|
||||
"title": "Doğru Parçayı Anında Bulun",
|
||||
"subtitle": "Birden fazla katalogda çapraz sorgulama ile her zaman en güncel OEM kodları. Şase numarasını girin, doğru parçayı ilk seferde gönderin.",
|
||||
"lossPillA": "Yanlış parça iadeleri ayda binlerce TL kaybettiriyor",
|
||||
"titleA": "Yanlış Parça İadelerine Son Verin",
|
||||
"subtitleA": "Müşteri aracının şasesini girin; çapraz katalog doğrulamasıyla doğru OEM parçasını ilk seferde bulun. İade yok, kayıp yok — 500+ işletme güveniyor. Ücretsiz deneyin.",
|
||||
"lossPillB": "Şase sorgulamaya ücretsiz başlayın — kart gerekmez",
|
||||
"titleB": "Müşteri Aracının Doğru Parçasını Saniyede Bulun",
|
||||
"subtitleB": "17 haneli şaseyi girin; doğru OEM kodlarına, parça şemalarına ve fiyatlara saniyeler içinde ulaşın. 27 marka, sınırsız sorgu. Ücretsiz başlayın, kredi kartı istemiyoruz.",
|
||||
"vinPlaceholder": "Örnek: WVWZZZ1JZ3W597935",
|
||||
"searchCta": "Ara",
|
||||
"decoding": "Çözülüyor...",
|
||||
|
||||
@@ -12,6 +12,7 @@ import { vi } from "vitest";
|
||||
// Mock the PostHog capture function
|
||||
vi.mock("@/lib/posthog", () => ({
|
||||
capture: vi.fn(),
|
||||
subscribeFeatureFlag: vi.fn(() => () => {}),
|
||||
}));
|
||||
|
||||
// Mock the API client used for VIN decode
|
||||
|
||||
@@ -158,6 +158,7 @@ const RemotionEcommercePlayer = lazy(() =>
|
||||
),
|
||||
);
|
||||
import { useAuth } from "@/hooks/use-auth";
|
||||
import { useFeatureFlag } from "@/hooks/use-feature-flag";
|
||||
import { usePageMeta } from "@/hooks/use-page-meta";
|
||||
import { ApiError, api } from "@/lib/api-client";
|
||||
import { useTranslation } from "@/lib/i18n";
|
||||
@@ -253,6 +254,10 @@ export const Route = createFileRoute("/")({
|
||||
|
||||
export function HomePage() {
|
||||
const { t } = useTranslation();
|
||||
// Landing-copy A/B/n (exp-landing-copy): SAME design, CRO copy variants for the
|
||||
// hero pill/title/subtitle. undefined → control. Primary metric: user_signed_up.
|
||||
const landingCopy = useFeatureFlag("exp-landing-copy");
|
||||
const copyV = landingCopy === "variant_a" ? "A" : landingCopy === "variant_b" ? "B" : "";
|
||||
|
||||
usePageMeta({
|
||||
title: t("landing.meta.title"),
|
||||
@@ -887,7 +892,7 @@ export function HomePage() {
|
||||
<span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-destructive/60 opacity-75" />
|
||||
<span className="relative inline-flex size-2 rounded-full bg-destructive" />
|
||||
</span>
|
||||
{t("landing.hero.lossPill")}
|
||||
{t(`landing.hero.lossPill${copyV}`)}
|
||||
</div>
|
||||
|
||||
{/* Social proof badge */}
|
||||
@@ -922,11 +927,11 @@ export function HomePage() {
|
||||
</div>
|
||||
|
||||
<h1 className="mt-6 font-[family-name:var(--font-display)] text-4xl font-bold leading-[1.1] tracking-tight sm:text-5xl lg:text-7xl">
|
||||
{t("landing.hero.title")}
|
||||
{t(`landing.hero.title${copyV}`)}
|
||||
</h1>
|
||||
|
||||
<p className="mx-auto mt-6 max-w-2xl text-base text-muted-foreground sm:text-lg">
|
||||
{t("landing.hero.subtitle")}
|
||||
{t(`landing.hero.subtitle${copyV}`)}
|
||||
</p>
|
||||
|
||||
{/* VIN Input */}
|
||||
|
||||
Reference in New Issue
Block a user