recipes/web/comp/layout.ts

19 lines
483 B
TypeScript
Raw Normal View History

2022-05-24 11:26:13 +03:00
import { AnyNode, E } from "ren/node.ts";
2022-05-22 15:13:30 +03:00
2022-05-24 11:26:13 +03:00
export function Layout(page: AnyNode): AnyNode {
2022-05-22 15:13:30 +03:00
return E("html", { lang: "ru" }, [
E("head", [], [
E("meta", { charset: "utf-8" }),
E("meta", {
name: "viewport",
content: "width=device-width, initial-scale=1",
}),
2022-05-24 23:23:08 +03:00
E("link", { rel: "stylesheet", href: "/static/styles.css" }),
2022-05-22 15:13:30 +03:00
E("title", [], "Recipes"),
]),
E("body", [], [
E("div", { id: "root" }, [page]),
]),
]);
}