update cms previews to new layouts. close #234

This commit is contained in:
2023-07-31 20:54:52 +02:00
parent 1af5f54900
commit b1d3a2156f
23 changed files with 380 additions and 548 deletions

View File

@ -1,25 +1,14 @@
import { PageHeader } from "./components/index.js";
import {
Container,
ContentJustify,
PageHeader,
Section,
} from "./components/index.js";
const PagePreview = ({ widgetFor, entry }) => {
return [
PageHeader(entry),
h(
"section",
{ className: "section" },
h(
"div",
{ className: "container" },
h(
"div",
{ className: "row" },
h(
"div",
{ className: "col-12" },
h("div", { className: "content" }, widgetFor("body"))
)
)
)
),
Section(Container(ContentJustify(widgetFor("body")))),
];
};