Created
October 27, 2024 07:40
-
-
Save azer/0af38c8efe56027ee70473f791a6ab0c to your computer and use it in GitHub Desktop.
404.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>404 - Page Not Found</title> | |
<style> | |
:root { | |
--primary-color: #3b82f6; | |
--text-primary: #1f2937; | |
--text-secondary: #4b5563; | |
--bg-color: #f3f4f6; | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; | |
line-height: 1.6; | |
background-color: var(--bg-color); | |
color: var(--text-primary); | |
min-height: 100vh; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
padding: 1rem; | |
} | |
.container { | |
max-width: 600px; | |
width: 100%; | |
background: white; | |
padding: 2.5rem; | |
border-radius: 12px; | |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); | |
text-align: center; | |
} | |
.error-code { | |
font-size: 5rem; | |
font-weight: 700; | |
color: var(--primary-color); | |
line-height: 1; | |
margin-bottom: 1rem; | |
} | |
h1 { | |
font-size: 1.875rem; | |
color: var(--text-primary); | |
margin-bottom: 1rem; | |
} | |
p { | |
color: var(--text-secondary); | |
margin-bottom: 1.5rem; | |
} | |
.btn { | |
display: inline-block; | |
background-color: var(--primary-color); | |
color: white; | |
padding: 0.75rem 1.5rem; | |
border-radius: 6px; | |
text-decoration: none; | |
font-weight: 500; | |
transition: background-color 0.2s; | |
} | |
.btn:hover { | |
background-color: #2563eb; | |
} | |
.btn:active { | |
background-color: #1d4ed8; | |
} | |
@media (max-width: 640px) { | |
.container { | |
padding: 2rem; | |
} | |
.error-code { | |
font-size: 4rem; | |
} | |
h1 { | |
font-size: 1.5rem; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="error-code">404</div> | |
<h1>Page Not Found</h1> | |
<p>The page you're looking for doesn't exist or has been moved.</p> | |
<a href="/" class="btn">Return Home</a> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment