Página·Grátis
Página 404 (HTML + CSS)
Uma página de "não encontrada" em um único arquivo HTML. Salve como 404.html no seu site estático. Ela leva à página inicial e a uma página para avisar do link quebrado, e mostra um botão de voltar se houver página anterior. Claro ou escuro conforme o sistema.
Instalação grátis.
Se o PocketCode estiver instalado no seu Android, isto abre a página no app.
Prévia
404.html · 110 linhas
<!doctype html>
<!--
"Page not found" page in one HTML file, no external files.
Save it as 404.html at the root of your site (most static hosts serve it on a missing page).
Change the two links at the bottom; colours live in the CSS variables, dark mode follows the system.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title>Page not found</title>
<style>
:root {
color-scheme: light dark;
--bg: #f7f7fa;
--fg: #1b1b1f;
--muted: #55555f;
--accent: #1f5fd1;
--accent-fg: #ffffff;
--line: #7c7c88;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #121216;
--fg: #ececf1;
--muted: #a8a8b3;
--accent: #8ab4ff;
--accent-fg: #0b1a33;
--line: #7c7c88;
}
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
display: grid;
place-items: center;
padding: 24px 16px;
background: var(--bg);
color: var(--fg);
font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { width: 100%; max-width: 480px; text-align: center; }
.nf-code {
margin: 0;
font-size: clamp(4rem, 22vw, 7rem);
font-weight: 800;
line-height: 1;
letter-spacing: -0.04em;
color: var(--muted);
}
h1 { margin: 16px 0 8px; font-size: 1.75rem; line-height: 1.25; }
p { margin: 0 0 32px; color: var(--muted); }
.nf-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin: 0;
padding: 0;
list-style: none;
}
.nf-actions a, .nf-actions button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 12px 20px;
border-radius: 8px;
font: inherit;
font-weight: 600;
text-decoration: none;
cursor: pointer;
}
.nf-primary { border: 0; background: var(--accent); color: var(--accent-fg); }
.nf-secondary { border: 1px solid var(--line); background: transparent; color: var(--fg); }
.nf-actions a:focus-visible, .nf-actions button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;Esta prévia está encurtada. O conteúdo completo vem com a instalação.
Mudanças na 1.0.0
Primeira versão.