Skip to content

Commit b965bf5

Browse files
committed
fix(pages/not-found): add landing ui and ux
1 parent 9588a1c commit b965bf5

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

src/pages/404.ts

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
11
import { env } from "mini-van-plate/shared";
22

3+
import { Footer } from "~/components/footer.js";
4+
import { LandingHeader } from "~/components/header.js";
35
import type { MyPage } from "../index.js";
46

7+
import headerJs from "~scripts/header.js" with { type: "text" };
8+
import iconCss from "~styles/icon.css" with { type: "text" };
9+
510
export const notFoundPage: MyPage = {
611
title: "Page Not Found",
712
status: 404,
13+
author: "Binh Tran",
14+
styles: [
15+
":root{--primary-rgb:var(--danger-rgb);--primary:rgb(var(--primary-rgb));}",
16+
iconCss.trim(),
17+
],
18+
scripts: [(headerJs as string).trim()],
19+
useBodyBackground: true,
820
getChild: () => {
9-
const { h1, p, div } = env.van.tags;
10-
return div(
11-
h1("Page not found"),
12-
p("This is not the web page you are looking for."),
13-
);
21+
const { main, h1, p, section } = env.van.tags;
22+
return [
23+
LandingHeader(),
24+
main(
25+
section(
26+
{ class: "page-content container" },
27+
h1("Page not found"),
28+
p("This is not the web page you are looking for."),
29+
),
30+
),
31+
Footer(),
32+
];
1433
},
1534
};

0 commit comments

Comments
 (0)