- 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
31 lines
967 B
TypeScript
31 lines
967 B
TypeScript
import type { GlobalConfig } from "payload";
|
|
import { isAdmin } from "@/access";
|
|
|
|
export const About: GlobalConfig = {
|
|
slug: "about",
|
|
label: "Über mich",
|
|
admin: {
|
|
description: "Inhalt der Seite „Über mich“.",
|
|
group: "Seiteninhalte",
|
|
},
|
|
access: {
|
|
read: () => true,
|
|
update: isAdmin,
|
|
},
|
|
fields: [
|
|
{ name: "eyebrow", type: "text", label: "Kicker" },
|
|
{ name: "title", type: "text", label: "Überschrift", required: true },
|
|
{ name: "portrait", type: "upload", relationTo: "media", label: "Portraitbild" },
|
|
{ name: "body", type: "richText", label: "Haupttext", required: true },
|
|
{
|
|
type: "collapsible",
|
|
label: "Abschließendes Zitat",
|
|
fields: [
|
|
{ name: "closingLead", type: "text", label: "Einleitung" },
|
|
{ name: "closingHighlight", type: "text", label: "Hervorgehobenes Zitat" },
|
|
{ name: "closingParagraph", type: "textarea", label: "Abschlusstext" },
|
|
],
|
|
},
|
|
],
|
|
};
|