fix: header on startpage is now full width
This commit is contained in:
@@ -23,7 +23,7 @@ export default async function StartPage() {
|
||||
const { header, blocks } = content.startPage
|
||||
|
||||
return (
|
||||
<PageContainer>
|
||||
<>
|
||||
<header className={styles.header}>
|
||||
<div className={styles.headerContent}>
|
||||
<Title color="white" textAlign="center">
|
||||
@@ -41,34 +41,36 @@ export default async function StartPage() {
|
||||
}
|
||||
src={header.hero_image.url}
|
||||
focalPoint={header.hero_image.focalPoint}
|
||||
width={1512}
|
||||
height={560}
|
||||
sizes="100vw"
|
||||
fill
|
||||
/>
|
||||
) : null}
|
||||
</header>
|
||||
<main className={styles.main}>
|
||||
{blocks
|
||||
? blocks.map((block) => {
|
||||
if (block.typename === BlocksEnums.block.FullWidthCampaign) {
|
||||
return (
|
||||
<FullWidthCampaign
|
||||
key={block.typename}
|
||||
content={block.full_width_campaign}
|
||||
/>
|
||||
)
|
||||
}
|
||||
<PageContainer>
|
||||
<main className={styles.main}>
|
||||
{blocks
|
||||
? blocks.map((block) => {
|
||||
if (block.typename === BlocksEnums.block.FullWidthCampaign) {
|
||||
return (
|
||||
<FullWidthCampaign
|
||||
key={block.typename}
|
||||
content={block.full_width_campaign}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<div key={block.typename} className={styles.section}>
|
||||
<Blocks blocks={[block]} />
|
||||
</div>
|
||||
)
|
||||
})
|
||||
: null}
|
||||
</main>
|
||||
<Suspense fallback={null}>
|
||||
<TrackingSDK pageData={content.tracking} />
|
||||
</Suspense>
|
||||
</PageContainer>
|
||||
return (
|
||||
<div key={block.typename} className={styles.section}>
|
||||
<Blocks blocks={[block]} />
|
||||
</div>
|
||||
)
|
||||
})
|
||||
: null}
|
||||
</main>
|
||||
<Suspense fallback={null}>
|
||||
<TrackingSDK pageData={content.tracking} />
|
||||
</Suspense>
|
||||
</PageContainer>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user