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
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
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" },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user