pleshevski.ru/views/pages/e500.ts

18 lines
527 B
TypeScript
Raw Normal View History

import { PageLayout } from "../comp/page_layout.ts";
import { AnyNode, E } from "ren/node.ts";
import { classNames } from "ren/attrs.ts";
import { Context } from "../../context.ts";
2023-06-20 16:30:27 +03:00
import { H3 } from "../../uikit/typo.ts";
export function E500Page(ctx: Context): AnyNode {
2023-02-03 03:09:57 +03:00
ctx.title = "Internal Server Error - 500 | Pleshevski";
return PageLayout(ctx, [E500(ctx)]);
}
export function E500(ctx: Context): AnyNode {
return E("div", classNames("content-width gap-v-1x5"), [
H3(ctx.tr.Internal_server_error),
]);
}