feat(home): prova no topo, contato sem atrito e conversão medida
Home mais curta (hero, vitrine de clientes, sobre, serviços, IA resumida, depoimentos e contato), faixa de clientes e telas reais no hero, sem números do GitHub. Barra de cookies fina, WhatsApp fixo no celular, formulário com e-mail opcional e alternativa por e-mail, página /ia, eventos de e-mail, redes e currículo e conversão do Ads opcional por variável. Rodapé em 3 colunas. Remove componentes órfãos (LighthouseMetrics, Skills, Experience, contagem do GitHub).
This commit is contained in:
1 parent
6e1022b58c
commit
8d07b8c6bb
60 files changed
+4392
-2124
No files matched your search
@@ -0,0 +1,36 @@
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import type { ReactNode } from "react";
|
||||
import EngineeringWithAI from "./EngineeringWithAI";
|
||||
|
||||
jest.mock("./Section", () => ({
|
||||
Section: ({
|
||||
children,
|
||||
title,
|
||||
description,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
title: string;
|
||||
description?: string;
|
||||
}) => (
|
||||
<section>
|
||||
<h2>{title}</h2>
|
||||
<p>{description}</p>
|
||||
{children}
|
||||
</section>
|
||||
),
|
||||
}));
|
||||
|
||||
it("is the short home version and points to /ia for the full content", () => {
|
||||
render(<EngineeringWithAI />);
|
||||
|
||||
expect(
|
||||
screen.getByRole("heading", {
|
||||
name: "Já começou com IA? Dá para partir daí.",
|
||||
}),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByRole("link", { name: "Entender como funciona" }),
|
||||
).toHaveAttribute("href", "/ia");
|
||||
// os incidentes e a LGPD ficam só em /ia
|
||||
expect(screen.queryByText(/Lovable|Replit|Base44|LGPD/)).toBeNull();
|
||||
});
|
||||
Reference in new issue
Block a user