Files
canine/public/404.html
2026-01-21 10:29:01 -08:00

180 lines
3.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Page Not Found (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
:root {
--primary: #167bff;
--base-100: #191e23;
--base-200: #252b32;
--base-content: #dcebfa;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body.error-page {
background-color: var(--base-100);
color: var(--base-content);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding-left: 1rem;
padding-right: 1rem;
}
.content-wrapper {
max-width: 56rem;
width: 100%;
}
.grid {
display: grid;
gap: 3rem;
align-items: center;
}
.content-section > * + * {
margin-top: 1.5rem;
}
.error-code {
font-size: 6rem;
line-height: 1;
font-weight: 700;
color: #167bff;
}
.error-title {
font-size: 2.25rem;
line-height: 1.25;
font-weight: 700;
color: var(--base-content);
}
.button-group {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.btn-primary {
display: inline-block;
color: white;
font-weight: 600;
padding: 0.75rem 2rem;
border-radius: 0.5rem;
transition: opacity 200ms;
background-color: #167bff;
text-decoration: none;
}
.btn-primary:hover {
opacity: 0.9;
}
.btn-secondary {
display: inline-block;
font-weight: 600;
padding: 0.75rem 2rem;
border-radius: 0.5rem;
transition: background-color 200ms;
background-color: var(--base-200);
color: var(--base-content);
border: none;
cursor: pointer;
font-size: 1rem;
}
.btn-secondary:hover {
background-color: #2d343d;
}
.illustration-section {
display: flex;
justify-content: center;
}
.illustration {
width: 100%;
max-width: 28rem;
}
@media (min-width: 640px) {
.container {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.error-title {
font-size: 3rem;
line-height: 1;
}
}
@media (min-width: 768px) {
.grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.illustration-section {
justify-content: flex-end;
}
}
@media (min-width: 1024px) {
.container {
padding-left: 2rem;
padding-right: 2rem;
}
.error-title {
font-size: 3.75rem;
}
}
</style>
</head>
<body class="error-page">
<div class="container">
<div class="content-wrapper">
<div class="grid">
<!-- Left side - Content -->
<div class="content-section">
<div class="error-code">404</div>
<h1 class="error-title">
Sorry,<br>
we can't find<br>
that page.
</h1>
<div class="button-group">
<a href="/" class="btn-primary">
Take me home
</a>
<button onclick="history.back()" class="btn-secondary">
Go back
</button>
</div>
</div>
<!-- Right side - Illustration -->
<div class="illustration-section">
<img src="/images/illustrations/floating.webp" alt="Error illustration" class="illustration">
</div>
</div>
</div>
</div>
</body>
</html>