Adds dynamic case study and curriculo routes, project health monitoring for live demo status, and strengthens local SEO (structured data, service-area targeting for Garuva/Joinville/Curitiba, a dedicated "criação de sites" service page) so search results better match the professional title (Engenheiro da Computação) and experience (5 anos). Co-Authored-By: Claude Sonnet 5 <[email protected]>
38 lines
867 B
TypeScript
38 lines
867 B
TypeScript
import { shouldLoadHeroScene } from "./should-load-hero-scene";
|
|
|
|
describe("shouldLoadHeroScene", () => {
|
|
it("keeps WebGL off for reduced motion, coarse pointers, and narrow screens", () => {
|
|
expect(
|
|
shouldLoadHeroScene({
|
|
reducedMotion: true,
|
|
coarsePointer: false,
|
|
width: 1440,
|
|
}),
|
|
).toBe(false);
|
|
expect(
|
|
shouldLoadHeroScene({
|
|
reducedMotion: false,
|
|
coarsePointer: true,
|
|
width: 1440,
|
|
}),
|
|
).toBe(false);
|
|
expect(
|
|
shouldLoadHeroScene({
|
|
reducedMotion: false,
|
|
coarsePointer: false,
|
|
width: 767,
|
|
}),
|
|
).toBe(false);
|
|
});
|
|
|
|
it("allows WebGL only on capable desktop screens", () => {
|
|
expect(
|
|
shouldLoadHeroScene({
|
|
reducedMotion: false,
|
|
coarsePointer: false,
|
|
width: 1024,
|
|
}),
|
|
).toBe(true);
|
|
});
|
|
});
|