2023-07-31 20:54:52 +02:00
|
|
|
import { Container, PageHeader, Row } from "./components/index.js";
|
2023-04-19 22:44:06 +02:00
|
|
|
|
|
|
|
const KontaktPreview = ({ widgetsFor, entry }) => {
|
2023-05-29 16:22:34 +02:00
|
|
|
return [
|
|
|
|
PageHeader(entry),
|
|
|
|
h(
|
|
|
|
"section",
|
2023-07-31 20:54:52 +02:00
|
|
|
{ className: "section pb-0" },
|
|
|
|
Container(
|
|
|
|
Row([
|
2023-05-29 16:22:34 +02:00
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "col-lg-6 mb-4 mb-lg-0" },
|
|
|
|
h(
|
|
|
|
"form",
|
|
|
|
{},
|
|
|
|
h("input", {
|
|
|
|
className: "form-control form-control-lg mb-3",
|
|
|
|
type: "text",
|
|
|
|
placeholder: "Ihr Name",
|
|
|
|
}),
|
|
|
|
h("input", {
|
|
|
|
className: "form-control form-control-lg mb-3",
|
|
|
|
type: "text",
|
|
|
|
placeholder: "Ihre E-Mail Adresse",
|
|
|
|
}),
|
|
|
|
h("input", {
|
|
|
|
className: "form-control form-control-lg mb-3",
|
|
|
|
type: "text",
|
|
|
|
placeholder: "Betreff",
|
|
|
|
}),
|
|
|
|
h("textarea", {
|
|
|
|
className: "form-control form-control-lg mb-3",
|
|
|
|
placeholder: "Nachricht",
|
|
|
|
}),
|
|
|
|
h("button", { className: "btn btn-primary" }, "Senden")
|
|
|
|
)
|
|
|
|
),
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "col-lg-6" },
|
|
|
|
h(
|
|
|
|
"div",
|
|
|
|
{ className: "card" },
|
|
|
|
h("div", { className: "card-header fw-bold" }, "Kontaktdaten"),
|
|
|
|
h(
|
|
|
|
"ul",
|
|
|
|
{ className: "list-group list-group-flush" },
|
|
|
|
widgetsFor("kontaktdaten").map((person) =>
|
|
|
|
h(
|
|
|
|
"li",
|
|
|
|
{ className: "list-group-item" },
|
|
|
|
h("p", { className: "card-title mb-0" }, person.data.name),
|
2024-09-25 17:48:40 +02:00
|
|
|
h("p", { className: "text-muted mb-0" }, person.data.position),
|
2023-05-29 16:22:34 +02:00
|
|
|
h(
|
|
|
|
"p",
|
|
|
|
{ className: "card-text" },
|
|
|
|
h("i", {
|
|
|
|
className: "mdi mdi-email-multiple-outline me-2",
|
|
|
|
}),
|
|
|
|
person.data.email.replace("@", "(at)")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
h(
|
|
|
|
"li",
|
|
|
|
{ className: "list-group-item" },
|
|
|
|
h(
|
|
|
|
"p",
|
|
|
|
{ className: "card-text" },
|
|
|
|
h("i", { className: "mdi mdi-phone-outline me-2" }),
|
|
|
|
"Telefon: +49-0345/6903156"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-07-31 20:54:52 +02:00
|
|
|
),
|
|
|
|
])
|
2023-05-29 16:22:34 +02:00
|
|
|
)
|
|
|
|
),
|
|
|
|
];
|
2023-04-19 22:44:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default KontaktPreview;
|