Files
anouma/globals/Home.ts
T
maro 45261a0461 Initial commit: ANOUMA website with Payload CMS, WebRTC meetings, and booking system
- 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
2026-08-25 16:40:51 +02:00

71 lines
2.2 KiB
TypeScript

import type { GlobalConfig } from "payload";
import { isAdmin } from "@/access";
export const Home: GlobalConfig = {
slug: "home",
label: "Startseite",
admin: {
description: "Bearbeitbare Texte der Startseite (Hero, Über-mich-Teaser, Philosophie, CTA).",
group: "Seiteninhalte",
},
access: {
read: () => true,
update: isAdmin,
},
fields: [
{
type: "tabs",
tabs: [
{
label: "Hero",
fields: [
{
name: "heroEyebrow",
type: "text",
label: "Kicker (kleiner Text über der Überschrift)",
},
{ name: "heroTitle", type: "text", label: "Überschrift", required: true },
{ name: "heroHighlight", type: "textarea", label: "Hervorgehobener Satz" },
{ name: "heroSupporting", type: "textarea", label: "Ergänzender Text" },
{ name: "heroImage", type: "upload", relationTo: "media", label: "Bild" },
],
},
{
label: "Über mich (Teaser)",
fields: [
{ name: "aboutEyebrow", type: "text", label: "Kicker" },
{ name: "aboutTitle", type: "text", label: "Überschrift" },
{ name: "aboutText", type: "richText", label: "Text" },
{ name: "aboutImage", type: "upload", relationTo: "media", label: "Bild" },
],
},
{
label: "Philosophie",
fields: [
{ name: "valuesEyebrow", type: "text", label: "Kicker" },
{ name: "valuesTitle", type: "text", label: "Überschrift" },
{
name: "values",
type: "array",
label: "Werte",
minRows: 1,
maxRows: 6,
fields: [
{ name: "title", type: "text", label: "Titel", required: true },
{ name: "quote", type: "textarea", label: "Zitat", required: true },
],
},
],
},
{
label: "Aufruf am Ende (CTA)",
fields: [
{ name: "ctaTitle", type: "text", label: "Überschrift" },
{ name: "ctaLead", type: "textarea", label: "Text" },
],
},
],
},
],
};