fix: bap is now true full width
This commit is contained in:
@@ -24,9 +24,8 @@ export default function FullWidthCampaign({ content }: FullWidthCampaignProps) {
|
|||||||
alt={background_image.meta.alt || background_image.meta.caption || ""}
|
alt={background_image.meta.alt || background_image.meta.caption || ""}
|
||||||
src={background_image.url}
|
src={background_image.url}
|
||||||
focalPoint={background_image.focalPoint}
|
focalPoint={background_image.focalPoint}
|
||||||
width={1512}
|
sizes="100vw"
|
||||||
height={880}
|
fill
|
||||||
sizes="(min-width: 1512px) 1512px, 100vw"
|
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { assertNullableType } from "graphql"
|
|
||||||
import { Suspense } from "react"
|
import { Suspense } from "react"
|
||||||
|
|
||||||
import { getStartPage } from "@/lib/trpc/memoizedRequests"
|
import { getStartPage } from "@/lib/trpc/memoizedRequests"
|
||||||
@@ -6,7 +5,6 @@ import { getStartPage } from "@/lib/trpc/memoizedRequests"
|
|||||||
import Blocks from "@/components/Blocks"
|
import Blocks from "@/components/Blocks"
|
||||||
import FullWidthCampaign from "@/components/Blocks/FullWidthCampaign"
|
import FullWidthCampaign from "@/components/Blocks/FullWidthCampaign"
|
||||||
import Image from "@/components/Image"
|
import Image from "@/components/Image"
|
||||||
import PageContainer from "@/components/PageContainer"
|
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
import TrackingSDK from "@/components/TrackingSDK"
|
import TrackingSDK from "@/components/TrackingSDK"
|
||||||
|
|
||||||
@@ -46,31 +44,27 @@ export default async function StartPage() {
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
</header>
|
</header>
|
||||||
<PageContainer>
|
<main className={styles.main}>
|
||||||
<main className={styles.main}>
|
{(blocks || []).map((block) => {
|
||||||
{blocks
|
if (block.typename === BlocksEnums.block.FullWidthCampaign) {
|
||||||
? blocks.map((block) => {
|
return (
|
||||||
if (block.typename === BlocksEnums.block.FullWidthCampaign) {
|
<FullWidthCampaign
|
||||||
return (
|
key={block.typename}
|
||||||
<FullWidthCampaign
|
content={block.full_width_campaign}
|
||||||
key={block.typename}
|
/>
|
||||||
content={block.full_width_campaign}
|
)
|
||||||
/>
|
}
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={block.typename} className={styles.section}>
|
<div key={block.typename} className={styles.section}>
|
||||||
<Blocks blocks={[block]} />
|
<Blocks blocks={[block]} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})
|
})}
|
||||||
: null}
|
</main>
|
||||||
</main>
|
<Suspense fallback={null}>
|
||||||
<Suspense fallback={null}>
|
<TrackingSDK pageData={content.tracking} />
|
||||||
<TrackingSDK pageData={content.tracking} />
|
</Suspense>
|
||||||
</Suspense>
|
|
||||||
</PageContainer>
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
import styles from "./pageContainer.module.css"
|
|
||||||
|
|
||||||
import type { PropsWithChildren } from "react"
|
|
||||||
|
|
||||||
export default function PageContainer({ children }: PropsWithChildren) {
|
|
||||||
return <div className={styles.container}>{children}</div>
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
.container {
|
|
||||||
width: 100%;
|
|
||||||
max-width: var(--max-width);
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user