feat(groups): add heroImage field to GroupVisitsPage global + connect to page
This commit is contained in:
parent
69675851f8
commit
d327c841d7
2 changed files with 7 additions and 1 deletions
|
|
@ -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',
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue