- Next.js 16 App Router site with the ANOUMA design system - Payload CMS (PostgreSQL) for offers, events, posts and page content - WebRTC video-call system with custom signaling server - SMTP email reminders and booking-request notifications - Customer accounts, calendar-based availability, and booking workflow
29 lines
876 B
TypeScript
29 lines
876 B
TypeScript
import type { GlobalConfig } from "payload";
|
|
import { isAdmin } from "@/access";
|
|
|
|
export const Contact: GlobalConfig = {
|
|
slug: "contact",
|
|
label: "Kontakt",
|
|
admin: {
|
|
description: "Inhalt und Kontaktdaten der Kontakt-Seite.",
|
|
group: "Seiteninhalte",
|
|
},
|
|
access: {
|
|
read: () => true,
|
|
update: isAdmin,
|
|
},
|
|
fields: [
|
|
{ name: "eyebrow", type: "text", label: "Kicker" },
|
|
{ name: "title", type: "text", label: "Überschrift", required: true },
|
|
{ name: "lead", type: "textarea", label: "Einleitungstext" },
|
|
{
|
|
type: "row",
|
|
fields: [
|
|
{ name: "email", type: "email", label: "E-Mail", required: true, admin: { width: "34%" } },
|
|
{ name: "phone", type: "text", label: "Telefon", admin: { width: "33%" } },
|
|
{ name: "region", type: "text", label: "Region / Ort", admin: { width: "33%" } },
|
|
],
|
|
},
|
|
],
|
|
};
|