complete style conversion, cleanups

This commit is contained in:
2023-06-11 21:13:11 +02:00
parent 074e7a8760
commit acafe3fdc4
63 changed files with 1098 additions and 1109 deletions

View File

@ -16,7 +16,7 @@ const AboutPreview = ({ widgetFor, widgetsFor, entry, fields, collection }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm" },
{ className: "section" },
h(
"div",
{ className: "container" },
@ -35,7 +35,7 @@ const AboutPreview = ({ widgetFor, widgetsFor, entry, fields, collection }) => {
entry.data.stats.enable
? h(
"section",
{ className: "section-sm bg-primary" },
{ className: "section bg-primary" },
h(
"div",
{ className: "container" },

View File

@ -5,7 +5,7 @@ const AnmeldeformularPreview = ({ widgetFor, entry }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm bg-body-tertiary" },
{ className: "section bg-body-tertiary" },
h(
"div",
{ className: "container" },

View File

@ -5,7 +5,7 @@ const AnmeldungPreview = ({ widgetsFor, widgetFor, entry }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm" },
{ className: "section" },
h(
"div",
{ className: "container" },

View File

@ -16,7 +16,7 @@ const AuthorPreview = ({ widgetFor, entry, fields, collection }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm bg-light" },
{ className: "section bg-light" },
h(
"div",
{ className: "container" },

View File

@ -76,7 +76,7 @@ const BlogPreview = ({ widgetFor, entry, fields, collection }) => {
"div",
{
key: "body-content",
className: "col-12 mb-5 content content-justify",
className: "col-12 mb-5 content text-justify",
},
widgetFor("body")
),

View File

@ -22,7 +22,7 @@ const ChronikIndexPreview = ({
PageHeader(entry),
h(
"section",
{ className: "section-sm" },
{ className: "section" },
h("div", { className: "container" }, widgetFor("body")),
widgetsFor("infocard").data.enable
? h(
@ -71,7 +71,7 @@ const ChronikIndexPreview = ({
h(
"div",
{ className: "container" },
h("h2", { className: "section-title" }, "Informationsseiten"),
h("h2", { className: "mb-4" }, "Informationsseiten"),
h(
"div",
{ className: "row" },

View File

@ -2,7 +2,7 @@ import { PageHeader } from "./components/index.js";
const ChronikPreview = ({ widgetFor, widgetsFor, entry, document, window }) => {
/*return [PageHeader,
h('section', {className: "section-sm"},
h('section', {className: "section"},
h('div', {className: "container"},
h('div', {className: "row"},
h('div', {className: "col-12 mb-4 content"},

View File

@ -1,5 +1,5 @@
const Section = (children) =>
h("section", { className: "section-sm" }, children);
h("section", { className: "section" }, children);
const Container = (children) => h("div", { className: "container" }, children);
const Row = (children) => h("div", { className: "row" }, children);
const Content = (children) => h("div", { className: "content" }, children);

View File

@ -16,7 +16,7 @@ const EventPreview = ({ widgetsFor, entry }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm" },
{ className: "section" },
h(
"div",
{ className: "container" },
@ -111,7 +111,7 @@ const EventPreview = ({ widgetsFor, entry }) => {
"div",
{
className:
"d-md-table-cell px-4 vertical-align-middle mb-4 mb-md-0 p-2",
"d-md-table-cell px-4 align-middle mb-4 mb-md-0 p-2",
},
h("p", { className: "h4 mb-0 d-block" }, event.data.title)
),
@ -120,7 +120,7 @@ const EventPreview = ({ widgetsFor, entry }) => {
"div",
{
className:
"d-md-table-cell text-end pe-md-4 p-2 vertical-align-middle",
"d-md-table-cell text-end pe-md-4 p-2 align-middle",
},
h(
"p",

View File

@ -5,7 +5,7 @@ const FormsPreview = ({ widgetsFor, widgetFor, entry }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm" },
{ className: "section" },
h(
"div",
{ className: "container" },
@ -15,7 +15,7 @@ const FormsPreview = ({ widgetsFor, widgetFor, entry }) => {
h(
"div",
{ className: "col-12" },
h("h2", { className: "section-title" }, entry.data.title)
h("h2", { className: "mb-4" }, entry.data.title)
)
),
h(

View File

@ -5,7 +5,7 @@ const KontaktPreview = ({ widgetsFor, entry }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm bg-body-tertiary" },
{ className: "section bg-body-tertiary" },
h(
"div",
{ className: "container" },

View File

@ -5,7 +5,7 @@ const PagePreview = ({ widgetFor, entry }) => {
PageHeader(entry),
h(
"section",
{ className: "section-sm" },
{ className: "section" },
h(
"div",
{ className: "container" },

View File

@ -3,7 +3,7 @@ const PreviewStyles = [
"https://assets.cantorgymnasium.de/fonts/fira/fira.css",
"https://assets.cantorgymnasium.de/fonts/ubuntu/ubuntu.css",
"https://assets.cantorgymnasium.de/fonts/mdi/v7/css/materialdesignicons.min.css",
"https://cantorgymnasium.de/scss/style.css",
"https://cantorgymnasium.de/css/style.min.css",
];
export default PreviewStyles;