Skip to content

Commit 60ba754

Browse files
committed
Rework 404 page: match site layout structure and update copy
1 parent b033dc7 commit 60ba754

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

src/pages/404.astro

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@ import LandingFooter from "@/components/astro/LandingFooter.astro";
55
---
66

77
<BaseLayout title="Page not found" description="The requested page could not be found." noIndex={true}>
8-
<SiteHeader />
9-
<main class="container mx-auto flex min-h-[60vh] items-center px-4 py-16 sm:px-6">
10-
<section class="mx-auto max-w-2xl text-center">
11-
<p class="font-mono text-xs uppercase tracking-[0.32em] text-primary">404</p>
12-
<h1 class="mt-4 text-4xl font-bold sm:text-5xl lg:text-6xl">This route did not survive the migration.</h1>
13-
<p class="mt-4 text-base leading-7 text-muted-foreground sm:text-lg lg:text-xl">Try the homepage, the source page, or the blog archive.</p>
14-
<div class="mt-8 flex justify-center gap-3">
15-
<a href="/" class="cta-pill">Home</a>
16-
<a href="/blog" class="rounded border border-border bg-card px-5 py-2.5 font-mono text-sm font-medium text-foreground transition-colors hover:bg-secondary">Blog</a>
8+
<div class="min-h-screen bg-background flex flex-col">
9+
<SiteHeader />
10+
<main class="flex-1 pt-16">
11+
<div class="page-container">
12+
<section class="page-section flex items-center justify-center" style="min-height: calc(100vh - 4rem - 10rem);">
13+
<div class="mx-auto max-w-2xl text-center">
14+
<p class="font-mono text-6xl font-bold tracking-[0.32em] text-primary sm:text-7xl lg:text-8xl">404</p>
15+
<h1 class="mt-4 section-heading">Page not found.</h1>
16+
<p class="section-subtitle">The page you're looking for doesn't exist or has been moved.</p>
17+
<div class="mt-8 flex justify-center gap-3">
18+
<a href="/" class="cta-pill">Home</a>
19+
<a href="/blog" class="rounded border border-border bg-card px-5 py-2.5 font-mono text-sm font-medium text-foreground transition-colors hover:bg-secondary">Blog</a>
20+
</div>
21+
</div>
22+
</section>
23+
<LandingFooter />
1724
</div>
18-
</section>
19-
</main>
20-
<LandingFooter />
25+
</main>
26+
</div>
2127
</BaseLayout>

0 commit comments

Comments
 (0)