File tree Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change 11import { env } from "mini-van-plate/shared" ;
22
3+ import { Footer } from "~/components/footer.js" ;
4+ import { LandingHeader } from "~/components/header.js" ;
35import 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+
510export 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} ;
You can’t perform that action at this time.
0 commit comments