update cms previews to new layouts. close #234
This commit is contained in:
@ -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")))),
|
||||
];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user