32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import type { Block } from 'payload'
|
|
|
|
export const Affiliation: Block = {
|
|
slug: 'affiliation',
|
|
fields: [
|
|
{ name: 'eyebrow', type: 'text', localized: true },
|
|
{ name: 'title', type: 'text', required: true, localized: true },
|
|
{ name: 'description', type: 'textarea', required: true, localized: true },
|
|
{ name: 'logo', type: 'upload', relationTo: 'media' },
|
|
{
|
|
name: 'trustPoints',
|
|
type: 'array',
|
|
localized: true,
|
|
minRows: 1,
|
|
maxRows: 3,
|
|
fields: [
|
|
{
|
|
name: 'icon',
|
|
type: 'select',
|
|
required: true,
|
|
options: ['shield', 'scale', 'landmark'],
|
|
defaultValue: 'shield',
|
|
},
|
|
{ name: 'title', type: 'text', required: true, defaultValue: 'Punkt zaufania' },
|
|
{ name: 'description', type: 'textarea', required: true, defaultValue: 'Certyfikacja i uprawnienia potwierdzone urzędowo.' },
|
|
],
|
|
},
|
|
{ name: 'linkText', type: 'text', localized: true },
|
|
{ name: 'linkUrl', type: 'text', localized: true },
|
|
],
|
|
}
|