File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed
Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 11---
2- import Layout from " ./Generic.astro" ;
2+ import Layout from ' ./Generic.astro' ;
33
44interface Props {
55 title: string ;
@@ -12,3 +12,9 @@ const { title, description } = Astro.props;
1212<Layout {title } {description }>
1313 <slot />
1414</Layout >
15+
16+ <style >
17+ html {
18+ background-color: var(--secondary);
19+ }
20+ </style >
Original file line number Diff line number Diff line change 11---
2- import ErrorPage from " @components/errors/404.astro" ;
3- import RecentBlogPosts from " @components/generic/RecentBlogPosts.astro" ;
4- import Layout from " @layouts/Default.astro" ;
2+ import Section from ' @ui/Section.astro' ;
3+ import Title from ' @ui/Title.astro' ;
4+ import SubTitle from ' @ui/Subtitle.astro' ;
5+ import Button from ' @ui/Button.astro' ;
6+ import Layout from ' @layouts/new/Error.astro' ;
7+
8+ export const prerender = true ;
59---
610
7- <Layout
8- title =" Page Not Found"
9- description =" Page not found"
10- classList =" h-full"
11- pageTitle =" Page Not Found!"
12- >
13- <main class =" bg-red px-6 py-24" >
14- <ErrorPage />
15- <RecentBlogPosts />
16- </main >
11+ <Layout title =' Oops' description =' Page Not Found!' >
12+ <Section class =' inset-0 absolute bg-secondary text-white' >
13+ <div class =' flex h-full flex-col justify-center gap-4 mx-auto max-w-2xl' >
14+ <Title >404</Title >
15+ <SubTitle >Oops, it looks like this page can't be found</SubTitle >
16+ <Button class =' z-10' href =' /' >Back home</Button >
17+ </div >
18+ </Section >
1719</Layout >
You can’t perform that action at this time.
0 commit comments