Files
maroandClaude Sonnet 5 1cd15aff25 Add email verification, personal calendar feed, and full SEO implementation
- Customer accounts now require email verification (hashed, single-use,
  time-limited tokens) before they can request/confirm bookings, with
  resend flows on login/account/booking widget and rate limiting.
- Admins get a private, rotatable iCalendar (ICS) subscription feed of
  their confirmed bookings and public events, timezone-correct for
  Europe/Berlin including DST, never exposing meeting passwords.
- Adds a full SEO layer: per-page canonical/OG/Twitter metadata with
  CMS-editable overrides and content-derived fallbacks, a dynamic
  sitemap.xml and robots.txt driven by real published content, JSON-LD
  (Organization/LocalBusiness, WebSite, WebPage, BreadcrumbList, Service,
  Event, BlogPosting) that never fabricates data, and a CMS-managed
  redirect table for changed slugs.
- Global ANOUMA-naming audit: the brand name is never used to label
  personal account/calendar areas anywhere in the app, CMS, or emails.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 22:57:31 +02:00

73 lines
2.3 KiB
TypeScript

import type { GlobalConfig } from "payload";
import { isAdmin } from "@/access";
import { seoFields } from "@/fields/seo";
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" },
],
},
],
},
seoFields(),
],
};