Files
j_kedzierski/src/blocks/Hero/config.ts
T

20 lines
569 B
TypeScript

import type { Block } from 'payload'
export const Hero: Block = {
slug: 'hero',
fields: [
{ name: 'title', type: 'text', required: true, localized: true },
{ name: 'subtitle', type: 'text', required: true, localized: true },
{ name: 'primaryCta', type: 'text', required: true, localized: true },
{
name: 'secondaryCta',
type: 'group',
fields: [
{ name: 'text', type: 'text', localized: true },
{ name: 'url', type: 'text' },
],
},
{ name: 'yearsOfExperience', type: 'text', localized: true },
],
}