diff --git a/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx b/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx index 378d52bbf..5d94a02b9 100644 --- a/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx +++ b/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx @@ -19,7 +19,7 @@ export default async function ContentTypePage({ switch (params.contentType) { case "content-page": - return + return case "loyalty-page": return case "hotel-page": diff --git a/components/ContentType/ContentPage/ContentPage.tsx b/components/ContentType/ContentPage/ContentPage.tsx index 546bcec0d..e8a552058 100644 --- a/components/ContentType/ContentPage/ContentPage.tsx +++ b/components/ContentType/ContentPage/ContentPage.tsx @@ -9,9 +9,7 @@ import Intro from "./Intro" import styles from "./contentPage.module.css" -import type { LangParams } from "@/types/params" - -export default async function ContentPage({ lang }: LangParams) { +export default async function ContentPage() { const contentPageRes = await serverClient().contentstack.contentPage.get() if (!contentPageRes) { @@ -23,7 +21,7 @@ export default async function ContentPage({ lang }: LangParams) { return ( <> -
+
{contentPage.header.heading} diff --git a/components/ContentType/ContentPage/Intro/index.tsx b/components/ContentType/ContentPage/Intro/index.tsx index a5401164d..5ad4db448 100644 --- a/components/ContentType/ContentPage/Intro/index.tsx +++ b/components/ContentType/ContentPage/Intro/index.tsx @@ -6,17 +6,15 @@ import styles from "./intro.module.css" export default async function Intro({ children }: PropsWithChildren) { return ( -
- - - {children} - + + + {children} -
+ ) } diff --git a/components/ContentType/ContentPage/Intro/intro.module.css b/components/ContentType/ContentPage/Intro/intro.module.css index 8ae34a4ad..f64d9daaa 100644 --- a/components/ContentType/ContentPage/Intro/intro.module.css +++ b/components/ContentType/ContentPage/Intro/intro.module.css @@ -1,8 +1,10 @@ -.intro { - padding: var(--Spacing-x4) var(--Spacing-x2); -} - .content { display: grid; - gap: var(--Spacing-x3); + gap: var(--Spacing-x2); +} + +@media (min-width: 768px) { + .content { + gap: var(--Spacing-x3); + } } diff --git a/components/ContentType/ContentPage/contentPage.module.css b/components/ContentType/ContentPage/contentPage.module.css index df5938084..2d4bcba85 100644 --- a/components/ContentType/ContentPage/contentPage.module.css +++ b/components/ContentType/ContentPage/contentPage.module.css @@ -1,13 +1,12 @@ .content { + position: relative; display: grid; padding-bottom: var(--Spacing-x9); - position: relative; - justify-content: center; - align-items: flex-start; } .header { background-color: var(--Base-Surface-Subtle-Normal); + padding: var(--Spacing-x4) var(--Spacing-x2); } .hero { diff --git a/components/ContentType/LoyaltyPage/Intro/index.tsx b/components/ContentType/LoyaltyPage/Intro/index.tsx new file mode 100644 index 000000000..5ad4db448 --- /dev/null +++ b/components/ContentType/LoyaltyPage/Intro/index.tsx @@ -0,0 +1,20 @@ +import { PropsWithChildren } from "react" + +import MaxWidth from "@/components/MaxWidth" + +import styles from "./intro.module.css" + +export default async function Intro({ children }: PropsWithChildren) { + return ( + + + {children} + + + ) +} diff --git a/components/ContentType/LoyaltyPage/Intro/intro.module.css b/components/ContentType/LoyaltyPage/Intro/intro.module.css new file mode 100644 index 000000000..f64d9daaa --- /dev/null +++ b/components/ContentType/LoyaltyPage/Intro/intro.module.css @@ -0,0 +1,10 @@ +.content { + display: grid; + gap: var(--Spacing-x2); +} + +@media (min-width: 768px) { + .content { + gap: var(--Spacing-x3); + } +} diff --git a/components/ContentType/LoyaltyPage/LoyaltyPage.tsx b/components/ContentType/LoyaltyPage/LoyaltyPage.tsx index b6b90bf47..95e18d107 100644 --- a/components/ContentType/LoyaltyPage/LoyaltyPage.tsx +++ b/components/ContentType/LoyaltyPage/LoyaltyPage.tsx @@ -4,14 +4,15 @@ import { Blocks } from "@/components/Loyalty/Blocks" import Sidebar from "@/components/Loyalty/Sidebar" import MaxWidth from "@/components/MaxWidth" import Hero from "@/components/TempDesignSystem/Hero" +import Preamble from "@/components/TempDesignSystem/Text/Preamble" import Title from "@/components/TempDesignSystem/Text/Title" import TrackingSDK from "@/components/TrackingSDK" +import Intro from "./Intro" + import styles from "./loyaltyPage.module.css" -import type { LangParams } from "@/types/params" - -export default async function LoyaltyPage({ lang }: LangParams) { +export default async function LoyaltyPage() { const loyaltyPageRes = await serverClient().contentstack.loyaltyPage.get() if (!loyaltyPageRes) { @@ -27,9 +28,15 @@ export default async function LoyaltyPage({ lang }: LangParams) { ) : null} - +
- {loyaltyPage.heading} + + {loyaltyPage.heading} + {loyaltyPage.preamble ? ( + {loyaltyPage.preamble} + ) : null} + + {heroImage ? (