2022-06-08 23:24:19 +03:00
|
|
|
import { AnyNode, E } from "ren/node.ts";
|
|
|
|
import { Context } from "../../context.ts";
|
|
|
|
|
|
|
|
export function Layout(ctx: Context, page: AnyNode): AnyNode {
|
|
|
|
return E("html", { lang: ctx.lang }, [
|
|
|
|
E("head", [], [
|
|
|
|
E("meta", { charset: "utf-8" }),
|
|
|
|
E("meta", {
|
|
|
|
name: "viewport",
|
|
|
|
content: "width=device-width, initial-scale=1",
|
|
|
|
}),
|
|
|
|
E("link", { rel: "stylesheet", href: "/styles/main.css" }),
|
2022-06-09 22:21:01 +03:00
|
|
|
E("title", [], "Pleshevski"),
|
2022-06-08 23:24:19 +03:00
|
|
|
]),
|
|
|
|
E("body", [], [
|
|
|
|
E("div", { id: "root" }, [page]),
|
|
|
|
]),
|
|
|
|
]);
|
|
|
|
}
|