try
This commit is contained in:
parent
87cabc1980
commit
02430083cc
2 changed files with 0 additions and 13 deletions
|
|
@ -13,9 +13,7 @@ import { generateMeta } from '@/utilities/generateMeta'
|
||||||
import PageClient from './page.client'
|
import PageClient from './page.client'
|
||||||
import { LivePreviewListener } from '@/components/LivePreviewListener'
|
import { LivePreviewListener } from '@/components/LivePreviewListener'
|
||||||
import ScrollToTop from '@/components/ScrollToTop'
|
import ScrollToTop from '@/components/ScrollToTop'
|
||||||
|
|
||||||
import HeroBackground from '@/components/HeroBackground'
|
import HeroBackground from '@/components/HeroBackground'
|
||||||
import HeroPage from '@/components/HeroPage'
|
|
||||||
|
|
||||||
export const dynamic = 'force-dynamic'
|
export const dynamic = 'force-dynamic'
|
||||||
|
|
||||||
|
|
@ -29,8 +27,6 @@ type Args = {
|
||||||
}>
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
const LANDING_PAGE_SLUGS = ['home']
|
|
||||||
|
|
||||||
export default async function Page({ params: paramsPromise }: Args) {
|
export default async function Page({ params: paramsPromise }: Args) {
|
||||||
const { isEnabled: draft } = await draftMode()
|
const { isEnabled: draft } = await draftMode()
|
||||||
const { slug = 'home' } = await paramsPromise
|
const { slug = 'home' } = await paramsPromise
|
||||||
|
|
@ -51,15 +47,6 @@ export default async function Page({ params: paramsPromise }: Args) {
|
||||||
|
|
||||||
const { hero, layout } = page
|
const { hero, layout } = page
|
||||||
|
|
||||||
if (LANDING_PAGE_SLUGS.includes(decodedSlug)) {
|
|
||||||
return (
|
|
||||||
<HeroPage richText={hero.richText} links={hero.links}>
|
|
||||||
<RenderBlocks blocks={layout} />
|
|
||||||
<ScrollToTop />
|
|
||||||
</HeroPage>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ position: 'relative', minHeight: '100vh' }}>
|
<div style={{ position: 'relative', minHeight: '100vh' }}>
|
||||||
<div style={{ position: 'fixed', inset: 0, zIndex: 0 }}>
|
<div style={{ position: 'fixed', inset: 0, zIndex: 0 }}>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue