feat(cases): mídia no topo, títulos de busca curtos e CreativeWork
Case com mídia ao lado do título e play acessível; problema de cada cliente reescrito com base nos dados; serviços relacionados em 2 cards; FAQ antes do próximo passo e bloco 'Onde já apliquei isso'; Apolo citada em IoT e arquitetura. metaTitle até 43 caracteres e descrições até 155 com teste; JSON-LD CreativeWork; imagens de compartilhamento abaixo de 100 KB; 404 e robots corrigidos; server-only nos módulos com node:.
This commit is contained in:
1 parent
c9a0b80656
commit
e80f73d075
52 files changed
+2593
-439
No files matched your search
@@ -1,13 +1,39 @@
|
||||
import { fireEvent, render, screen, within } from "@testing-library/react";
|
||||
import { trackCvDownload } from "@/lib/analytics";
|
||||
import CurriculoPage from "./page";
|
||||
import CurriculoPage, { metadata } from "./page";
|
||||
|
||||
jest.mock("@/lib/analytics", () => ({ trackCvDownload: jest.fn() }));
|
||||
|
||||
it("uses the same shell as the home, with no narrow max-width, and a template-friendly title", () => {
|
||||
const { container } = render(CurriculoPage());
|
||||
|
||||
const shells = container.querySelectorAll(".ds-section-shell");
|
||||
expect(shells.length).toBeGreaterThan(0);
|
||||
for (const shell of shells) {
|
||||
expect(shell.className).not.toMatch(/max-w-/);
|
||||
}
|
||||
// o sufixo " | Evandro.dev.br" vem do layout: o título não o repete
|
||||
expect(metadata.title).toBe("Currículo de Evandro Fonseca Junior");
|
||||
expect(metadata.alternates?.canonical).toBe(
|
||||
"https://evandro.dev.br/curriculo",
|
||||
);
|
||||
});
|
||||
|
||||
it("shows the Innovo company name with the right accents", () => {
|
||||
render(CurriculoPage());
|
||||
|
||||
expect(
|
||||
screen.getByText(/Innovo Tecnologia da Informação Ltda\./),
|
||||
).toBeVisible();
|
||||
expect(document.body.textContent).not.toMatch(/Informacao/);
|
||||
});
|
||||
|
||||
it("shows a matching breadcrumb and keeps consulting secondary to hiring", () => {
|
||||
render(CurriculoPage());
|
||||
|
||||
const breadcrumb = screen.getByRole("navigation", { name: "Breadcrumb" });
|
||||
const breadcrumb = screen.getByRole("navigation", {
|
||||
name: "Trilha de navegação",
|
||||
});
|
||||
const breadcrumbLinks = within(breadcrumb).getAllByRole("link");
|
||||
expect(breadcrumbLinks.map((link) => link.textContent)).toEqual([
|
||||
"Início",
|
||||
|
||||
@@ -9,20 +9,21 @@ import {
|
||||
buildPageSocialMetadata,
|
||||
buildProfilePageJsonLd,
|
||||
} from "@/lib/seo";
|
||||
import { siteName, siteUrl } from "@/lib/site-content";
|
||||
import { siteUrl } from "@/lib/site-content";
|
||||
import CvDownloadLink from "./CvDownloadLink";
|
||||
|
||||
const pageUrl = `${siteUrl}/curriculo`;
|
||||
const pageTitle = "Currículo de Evandro Fonseca Junior";
|
||||
const pageDescription =
|
||||
"Currículo profissional de Evandro Fonseca Junior, engenheiro da computação e desenvolvedor de software: experiência, formação e competências técnicas.";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: { absolute: `Currículo de Evandro Fonseca Junior | ${siteName}` },
|
||||
description:
|
||||
"Currículo profissional de Evandro Fonseca Junior, engenheiro da computação e desenvolvedor de software, com experiência, formação e competências técnicas.",
|
||||
title: pageTitle,
|
||||
description: pageDescription,
|
||||
...buildPageSocialMetadata({
|
||||
url: pageUrl,
|
||||
title: `Currículo de Evandro Fonseca Junior | ${siteName}`,
|
||||
description:
|
||||
"Experiência profissional, formação e competências técnicas de Evandro Fonseca Junior para avaliação de contratação.",
|
||||
title: pageTitle,
|
||||
description: pageDescription,
|
||||
type: "profile",
|
||||
}),
|
||||
};
|
||||
@@ -43,7 +44,7 @@ export default function CurriculoPage() {
|
||||
<main>
|
||||
<script type="application/ld+json">{safeJsonLd(jsonLd)}</script>
|
||||
<section className={`ds-section ds-section-dark ${pageTop}`}>
|
||||
<div className="ds-section-shell max-w-[960px]">
|
||||
<div className="ds-section-shell">
|
||||
<Breadcrumb
|
||||
items={[
|
||||
{ label: "Início", href: "/" },
|
||||
|
||||
Reference in new issue
Block a user