This commit is contained in:
Mackie 2026-06-07 22:22:30 +08:00
parent 87cabc1980
commit 02430083cc
2 changed files with 0 additions and 13 deletions

View file

@ -13,9 +13,7 @@ import { generateMeta } from '@/utilities/generateMeta'
import PageClient from './page.client'
import { LivePreviewListener } from '@/components/LivePreviewListener'
import ScrollToTop from '@/components/ScrollToTop'
import HeroBackground from '@/components/HeroBackground'
import HeroPage from '@/components/HeroPage'
export const dynamic = 'force-dynamic'
@ -29,8 +27,6 @@ type Args = {
}>
}
const LANDING_PAGE_SLUGS = ['home']
export default async function Page({ params: paramsPromise }: Args) {
const { isEnabled: draft } = await draftMode()
const { slug = 'home' } = await paramsPromise
@ -51,15 +47,6 @@ export default async function Page({ params: paramsPromise }: Args) {
const { hero, layout } = page
if (LANDING_PAGE_SLUGS.includes(decodedSlug)) {
return (
<HeroPage richText={hero.richText} links={hero.links}>
<RenderBlocks blocks={layout} />
<ScrollToTop />
</HeroPage>
)
}
return (
<div style={{ position: 'relative', minHeight: '100vh' }}>
<div style={{ position: 'fixed', inset: 0, zIndex: 0 }}>