पेज·मुफ़्त
404 पेज (HTML + CSS)
एक ही HTML फ़ाइल में "पेज नहीं मिला" पेज। इसे अपनी स्टैटिक साइट पर 404.html नाम से सेव करें। इसमें होम पेज और टूटे लिंक की रिपोर्ट वाले पेज के लिंक हैं, और पिछला पेज होने पर वापस जाने का बटन दिखता है। लाइट या डार्क मोड सिस्टम के अनुसार।
मुफ़्त में इंस्टॉल करें।
अगर आपके Android डिवाइस पर PocketCode इंस्टॉल है, तो यह पेज ऐप में खुलेगा।
प्रीव्यू
404.html · 110 लाइनें
<!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;यह प्रीव्यू छोटा किया गया है। पूरा कंटेंट इंस्टॉल करने पर मिलेगा।
1.0.0 में बदलाव
पहला संस्करण।