feat: add 404 not found page

Add a new 404.astro page, to provide a user-friendly error page when routes are not found.
This commit is contained in:
2026-02-09 15:22:15 -06:00
parent 972ec0ea1f
commit e74ebfd802

21
src/pages/404.astro Normal file
View File

@@ -0,0 +1,21 @@
---
import { css } from '@styled-system/css'
import Basic from '@/components/layout/Basic.astro'
const headingClass = css({
fontSize: '50px',
textAlign: 'center'
})
const notFoundDescription = css({
fontSize: 'lg',
textAlign: 'center'
})
---
<Basic title="Not Found">
<h1 class={headingClass}>404 Not Found</h1>
<p class={notFoundDescription}>
The page you are looking for does not exist or has been moved. Try going
back to the <a href="/">home page</a>.
</p>
</Basic>