feat(cms): add hero overlays, pageHero bg, news subtitle, map group to HomePage global
This commit is contained in:
parent
8c3e28e507
commit
8b018ffa47
1 changed files with 55 additions and 0 deletions
|
|
@ -17,6 +17,41 @@ export const HomePage: GlobalConfig = {
|
|||
{ name: 'ctaHref', type: 'text' },
|
||||
{ name: 'backgroundVideo', type: 'text' },
|
||||
{ name: 'backgroundImage', type: 'upload', relationTo: 'media' },
|
||||
{
|
||||
name: 'foregroundOverlay',
|
||||
type: 'upload',
|
||||
relationTo: 'media',
|
||||
required: false,
|
||||
admin: {
|
||||
description:
|
||||
'Передній план Hero (динозавр PNG з прозорим фоном). Лежить поверх тексту, тільки desktop.',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'silhouetteOverlay',
|
||||
type: 'upload',
|
||||
relationTo: 'media',
|
||||
required: false,
|
||||
admin: {
|
||||
description: 'Сімейне фото / силует на передньому плані Hero. Десктоп тільки.',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'pageHero',
|
||||
type: 'group',
|
||||
label: 'Шапка внутрішніх сторінок',
|
||||
fields: [
|
||||
{
|
||||
name: 'backgroundImage',
|
||||
type: 'upload',
|
||||
relationTo: 'media',
|
||||
admin: {
|
||||
description:
|
||||
'Фото-фон під ліквід-гласс хедером на /lokatsii, /blog, /kvytky, /dni-narodzhennia, /grupovi-vidviduvannia.',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
@ -57,6 +92,10 @@ export const HomePage: GlobalConfig = {
|
|||
{
|
||||
name: 'images',
|
||||
type: 'array',
|
||||
admin: {
|
||||
description:
|
||||
'Завантажте 9 фото для слайдера Фотогалерея — порядок і alt керуйте тут.',
|
||||
},
|
||||
fields: [
|
||||
{ name: 'image', type: 'upload', relationTo: 'media' },
|
||||
{ name: 'alt', type: 'text' },
|
||||
|
|
@ -82,8 +121,24 @@ export const HomePage: GlobalConfig = {
|
|||
type: 'group',
|
||||
fields: [
|
||||
{ name: 'title', type: 'text' },
|
||||
{
|
||||
name: 'subtitle',
|
||||
type: 'textarea',
|
||||
admin: { description: 'Підзаголовок секції новин на головній.' },
|
||||
},
|
||||
{ name: 'limit', type: 'number', defaultValue: 3, min: 1, max: 12 },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'map',
|
||||
type: 'group',
|
||||
label: 'Карта',
|
||||
fields: [
|
||||
{ name: 'embedUrl', type: 'text', admin: { description: 'Google Maps iframe src.' } },
|
||||
{ name: 'address', type: 'text' },
|
||||
{ name: 'lat', type: 'number' },
|
||||
{ name: 'lng', type: 'number' },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue