fix(demo): drop VIN input from footer CTA — text + button only

Footer carried a VIN input intended to let demo visitors signup with their
own vehicle pre-filled, but it duplicated the hero's VIN search and added
friction at a moment the visitor is already deciding "should I sign up?"
— not "let me re-type a VIN". Reverted to a clean B2B trust strip + single
"Hesap Aç" primary CTA.

* New DemoFooterCta replaces the prior DemoVinCta. Visitors who want to
  query their own VIN use the hero or the /register page itself.
* Component renamed (file + symbol) so the name reflects what it does;
  the old file is removed. Both /demo and /demo/categories/$id swapped.
* Copy & B2B framing unchanged from the spec ("Sınırsız şase sorgulamak
  için ücretsiz hesap aç" / trust strip).
This commit is contained in:
2026-06-02 01:24:25 +03:00
parent 6643a8edad
commit c7527e4845
4 changed files with 43 additions and 88 deletions

View File

@@ -1,5 +1,5 @@
import { DemoBanner } from "@/components/demo/demo-banner";
import { DemoVinCta } from "@/components/demo/demo-vin-cta";
import { DemoFooterCta } from "@/components/demo/demo-footer-cta";
import { usePageMeta } from "@/hooks/use-page-meta";
import { ApiError, api } from "@/lib/api-client";
import { KEYS_8 } from "@/lib/keys";
@@ -134,11 +134,7 @@ function DemoVehiclePage() {
</CardContent>
</Card>
{/* Footer conversion card — VIN input lets the visitor jump straight
from the demo into a signup pre-filled with THEIR vehicle, instead
of having to bounce back to the hero. Empty submit = same as
plain "Hesap Aç". */}
<DemoVinCta source="footer" />
<DemoFooterCta source="footer" />
</main>
</div>
);

View File

@@ -1,5 +1,5 @@
import { DemoBanner } from "@/components/demo/demo-banner";
import { DemoVinCta } from "@/components/demo/demo-vin-cta";
import { DemoFooterCta } from "@/components/demo/demo-footer-cta";
import { SchemaViewer } from "@/components/schema/schema-viewer";
import { usePageMeta } from "@/hooks/use-page-meta";
import type { CategorySchema } from "@/hooks/use-parts";
@@ -190,10 +190,7 @@ function DemoCategoryPage() {
</Suspense>
))}
{/* Footer conversion card — VIN input at the "aha moment" lets the
visitor pivot straight from browsing the demo to signing up with
their own vehicle pre-filled. */}
{data && !data.loadError && <DemoVinCta source="category_footer" />}
{data && !data.loadError && <DemoFooterCta source="category_footer" />}
</main>
</div>
);