Merged in feat/SW-1381-new-startpage-page (pull request #1197)

feat(SW-1381): add initial start page

* feat(SW-1381): add initial start page

* fix: remove unused startpage template

remove translation key for middleware error page

* fix(SW-1381): add tracking SDK and feature flag to hide start page


Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Christian Andolf
2025-01-23 10:18:21 +00:00
parent cf8a8a2810
commit 127bb6a0a7
20 changed files with 356 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
import { Suspense } from "react"
import { getStartPage } from "@/lib/trpc/memoizedRequests"
import TrackingSDK from "@/components/TrackingSDK"
export default async function StartPage() {
const content = await getStartPage()
if (!content) {
return null
}
return (
<p>
<code>{JSON.stringify(content, null, 2)}</code>
<Suspense fallback={null}>
<TrackingSDK pageData={content.tracking} />
</Suspense>
</p>
)
}

View File

@@ -15,6 +15,7 @@ export const breadcrumbsVariants = cva(styles.breadcrumbs, {
[PageContentTypeEnum.destinationCityPage]: styles.contentWidth,
[PageContentTypeEnum.hotelPage]: styles.hotelHeaderWidth,
[PageContentTypeEnum.loyaltyPage]: styles.fullWidth,
[PageContentTypeEnum.startPage]: styles.contentWidth,
default: styles.fullWidth,
},
},