fix: better code organisation for ContentType components

This commit is contained in:
Chuma McPhoy
2024-06-27 13:17:26 +02:00
parent 00c04de09a
commit 879b7abd82
6 changed files with 15 additions and 36 deletions

View File

@@ -0,0 +1,19 @@
import { serverClient } from "@/lib/trpc/server"
import Title from "@/components/TempDesignSystem/Text/Title"
import styles from "./hotelPage.module.css"
import type { LangParams } from "@/types/params"
export default async function HotelPage({ lang }: LangParams) {
const hotelPage = await serverClient().contentstack.hotelPage.get()
if (!hotelPage) {
return null
}
return (
<section className={styles.content}>
<Title>{hotelPage.title}</Title>
</section>
)
}

View File

@@ -0,0 +1,11 @@
.content {
display: grid;
gap: var(--Spacing-x4);
padding: var(--Spacing-x3) var(--Spacing-x3) var(--Spacing-x4);
}
@media screen and (min-width: 1367px) {
.content {
gap: var(--Spacing-x3);
}
}