pleshevski.ru/views/pages/works.ts

19 lines
629 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 { ChronologicalWorksTable } from "../../modules/work/ChronologicalWorksTable/mod.ts";
import { H3 } from "../../uikit/typo.ts";
2023-07-04 00:22:44 +03:00
export function WorksPage(ctx: Context, content: AnyNode): AnyNode {
2023-02-03 03:09:57 +03:00
ctx.title = "Works | Pleshevski";
2023-02-03 03:17:55 +03:00
return PageLayout(ctx, [
E("div", classNames("content-width gap-v-1x5 responsive-typography"), [
2023-07-04 00:22:44 +03:00
content,
2022-06-22 00:35:55 +03:00
H3(ctx.tr.Chronological),
2023-06-20 16:30:27 +03:00
ChronologicalWorksTable(ctx.tr),
]),
]);
}