Static CMS v2.0 ()

- [x] Update auf Static CMS v2.0
- [x] aktualisierte Shortcodes (schließt )
- [x] aktualisierte Previews (schließt )
- Ordnerunterstützung
- [x] vervollständigte Seiten
- [x] Aufräumarbeiten

Reviewed-on: https://git.cantorgymnasium.de/gcg/gcg-website/pulls/226
This commit is contained in:
2023-04-19 22:44:06 +02:00
parent 58c4c5abc7
commit 13dde42eb0
316 changed files with 2832 additions and 1978 deletions
content/german
abiturienten
about
anmeldeformular
anmeldung
author
begabte
blog
cantorfora
cantorpreis
chronikseiten
forms
ganztagsangebote
kontakt
pages
projektwoche
schulchronik
superhaufen
termine
wettbewerbe
data/de
layouts
_default
abiturienten
anmeldeformular
author
cantorfora
ganztagsangebote
partials
projektwoche
schulchronik
shortcodes
superhaufen
static/admin

@ -0,0 +1,49 @@
import {
PageHeader,
Section,
Container,
Row,
Content,
} from "./components/index.js";
const CantorpreisPreview = ({ widgetFor, entry, fields, collection }) => {
const imageField = useMemo(
() => fields.find((field) => field.name === "image"),
[fields]
);
const imageUrl = useMediaAsset(
entry.data.image,
collection,
imageField,
entry
);
return [
PageHeader(entry),
Section(
Container(
Row([
h(
"div",
{ className: "col-md-5 mb-5" },
h("img", {
className: "img-fluid w-75",
src: imageUrl,
alt: entry.data.name,
})
),
h(
"div",
{ className: "col-md-7 mb-5" },
h("h3", {}, entry.data.name),
h("h6", { className: "text-color" }, entry.data.title),
Content(widgetFor("body"))
),
])
)
),
];
};
export default CantorpreisPreview;