feat(groups): add heroImage field to GroupVisitsPage global + connect to page
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

This commit is contained in:
Vadym Samoilenko 2026-06-03 14:52:44 +01:00
parent 69675851f8
commit d327c841d7
2 changed files with 7 additions and 1 deletions

View file

@ -156,7 +156,7 @@ export default async function GroupVisitsPage() {
<section
className="relative flex min-h-[420px] items-center justify-center overflow-hidden md:min-h-[620px] lg:min-h-[720px]"
style={{
backgroundImage: `url('${FIGMA.hero}')`,
backgroundImage: `url('${mediaUrl(d?.heroImage as Media | undefined) ?? FIGMA.hero}')`,
backgroundSize: 'cover',
backgroundPosition: 'center',
}}

View file

@ -11,6 +11,12 @@ export const GroupVisitsPage: GlobalConfig = {
versions: { max: 20, drafts: { autosave: { interval: 2000 } } },
fields: [
// Hero
{
name: 'heroImage',
type: 'upload',
relationTo: 'media',
label: 'Фото герою (фон)',
},
{
name: 'heroTitle',
type: 'text',