Files
corazoncp-landing/404.html
Andrés Tróchez 758706e65e perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions (#17)
* test(wpo): add Red contract tests for self-hosted woff2, 404.html, twitter:card, img dims, and view transitions

- Assert self-hosted .woff2 fonts in public/fonts/, @font-face in built CSS, and zero Google Fonts links
- Assert dist/404.html with shared partials, zero inline scripts, and return CTA to /
- Assert twitter:card on all 4 routes, numeric width/height on all <img> tags, @view-transition, and brand hover

* perf(wpo): self-host woff2 fonts, add 404.html, explicit img dims, twitter:card, and view transitions

- Self-host 5 latin .woff2 font files (176 KB total) in public/fonts/ with @font-face in src/style.css and remove Google Fonts links
- Add static 404.html with shared partials and register in vite.config.ts
- Add twitter:card metadata across all 4 routes and explicit width/height on logo.png and all 8 index.html images
- Add @view-transition (prefers-reduced-motion: no-preference), brand hover state, arrow motion on solid CTAs, and reconcile services-catalog.test.js
2026-11-30 14:04:04 -05:00

46 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="es" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Página no encontrada — El Corazón como Portal</title>
<meta
name="description"
content="La página que buscas no está disponible. Regresa al inicio de El Corazón como Portal."
/>
<meta name="robots" content="noindex" />
<link rel="icon" type="image/png" href="/img/logo.png" />
<link rel="stylesheet" href="/src/style.css" />
</head>
<body class="bg-ivory text-forest selection:bg-emerald/20 selection:text-forest">
<!-- @include src/partials/header.html -->
<!-- @include src/partials/whatsapp-fab.html -->
<main id="main" class="py-20 md:py-32">
<section class="mx-auto max-w-2xl px-6 text-center">
<span class="inline-block text-xs font-bold uppercase tracking-widest text-gold mb-3">
Error 404
</span>
<h1 class="font-display text-4xl leading-tight sm:text-5xl text-forest font-semibold mb-6">
Página no encontrada
</h1>
<p class="text-base sm:text-lg text-forest/85 leading-relaxed mb-10">
El camino que buscas no está disponible o cambió de lugar. Respira profundo y vuelve al inicio para seguir explorando nuestros espacios de acompañamiento.
</p>
<a
href="/"
class="group inline-flex items-center justify-center gap-3 rounded-full bg-emerald px-8 py-4 text-base font-semibold text-ivory shadow-lg shadow-emerald/25 transition hover:bg-forest hover:shadow-xl focus:outline-none focus:ring-4 focus:ring-emerald/40"
>
<span>Volver al inicio</span>
<span class="inline-block transition-transform group-hover:translate-x-1" aria-hidden="true">→</span>
</a>
</section>
</main>
<!-- @include src/partials/footer.html -->
<script type="module" src="/src/scripts/nav-menu.js"></script>
</body>
</html>