cms.c2sgmbh/src/blocks/ContactFormBlock.ts
Martin Porwoll 95c9d2a4bc feat: add content blocks and global settings
Blocks for page builder:
- HeroBlock: hero sections with CTA
- TextBlock: rich text content
- ImageTextBlock: image with text layout
- CardGridBlock: grid of cards
- CTABlock: call-to-action sections
- QuoteBlock: testimonial quotes
- VideoBlock: embedded videos
- DividerBlock: visual separators
- ContactFormBlock: contact forms
- NewsletterBlock: newsletter signup
- ProcessStepsBlock: step-by-step processes
- TimelineBlock: timeline displays
- TestimonialsBlock: testimonial carousels
- PostsListBlock: blog post listings

Globals:
- Navigation: site navigation structure
- SiteSettings: general site configuration
- SEOSettings: default SEO settings per tenant

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 08:19:15 +00:00

48 lines
975 B
TypeScript

import type { Block } from 'payload'
export const ContactFormBlock: Block = {
slug: 'contact-form-block',
labels: {
singular: 'Kontaktformular',
plural: 'Kontaktformulare',
},
fields: [
{
name: 'headline',
type: 'text',
defaultValue: 'Kontakt',
label: 'Überschrift',
localized: true,
},
{
name: 'description',
type: 'textarea',
label: 'Beschreibung',
localized: true,
},
{
name: 'recipientEmail',
type: 'email',
defaultValue: 'info@porwoll.de',
label: 'Empfänger E-Mail',
},
{
name: 'showPhone',
type: 'checkbox',
defaultValue: true,
label: 'Telefon anzeigen',
},
{
name: 'showAddress',
type: 'checkbox',
defaultValue: true,
label: 'Adresse anzeigen',
},
{
name: 'showSocials',
type: 'checkbox',
defaultValue: true,
label: 'Social Media anzeigen',
},
],
}