Static CMS v2.0 (#226)
- [x] Update auf Static CMS v2.0 - [x] aktualisierte Shortcodes (schließt #225) - [x] aktualisierte Previews (schließt #181) - 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:
@ -0,0 +1,51 @@
|
||||
const PageHeader = (entry) => {
|
||||
return h(
|
||||
"section",
|
||||
{
|
||||
key: "page-header",
|
||||
className: "page-title-section overlay",
|
||||
style: {
|
||||
backgroundImage:
|
||||
'url("/media/backgrounds/page-title.webp"),url("/media/backgrounds/page-title.webp")',
|
||||
},
|
||||
},
|
||||
h(
|
||||
"div",
|
||||
{ className: "container" },
|
||||
h(
|
||||
"div",
|
||||
{ className: "row" },
|
||||
h(
|
||||
"div",
|
||||
{ className: "col-md-8 position-relative" },
|
||||
h(
|
||||
"ul",
|
||||
{ className: "list-inline" },
|
||||
h(
|
||||
"li",
|
||||
{ className: "list-inline-item h2" },
|
||||
h(
|
||||
"font",
|
||||
{ className: "text-primary font-secondary", href: "" },
|
||||
"Startseite"
|
||||
)
|
||||
),
|
||||
h(
|
||||
"li",
|
||||
{ className: "list-inline-item h2" },
|
||||
h("i", { className: "mdi mdi-chevron-double-right text-white" })
|
||||
),
|
||||
h(
|
||||
"li",
|
||||
{ className: "list-inline-item text-white h2 font-secondary" },
|
||||
entry.data.title
|
||||
)
|
||||
),
|
||||
h("p", { className: "text-lighten" }, entry.data.description)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
export default PageHeader;
|
Reference in New Issue
Block a user