feat(home): add patternGreen/patternOrange CMS upload fields to birthdayIntro

Allow editors to upload custom background pattern images for the birthday
section cards (green cards and featured orange card) from the CMS admin.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-06-08 14:13:31 +01:00
parent dfc7cc49b0
commit af4bd74d67
2 changed files with 19 additions and 1 deletions

View file

@ -185,7 +185,23 @@ export const HomePage: GlobalConfig = {
{
name: 'birthdayIntro',
type: 'group',
fields: [{ name: 'text', type: 'textarea' }],
fields: [
{ name: 'text', type: 'textarea' },
{
name: 'patternGreen',
type: 'upload',
relationTo: 'media',
label: 'Паттерн зелених карток',
admin: { description: 'Фоновий паттерн для не-featured карток (зелений фон).' },
},
{
name: 'patternOrange',
type: 'upload',
relationTo: 'media',
label: 'Паттерн оранжевої картки',
admin: { description: 'Фоновий паттерн для featured картки (оранжевий фон).' },
},
],
},
{
name: 'news',

View file

@ -116,6 +116,8 @@ export interface HomePageVideo {
export interface HomePageBirthdayIntro {
text?: string | null
patternGreen?: Media | string | null
patternOrange?: Media | string | null
}
export interface HomePageNews {