feat: add markup for additional viewport sizes

This commit is contained in:
Arvid Norlin
2024-05-27 10:09:05 +02:00
parent 52b927b684
commit 7b206947bc
4 changed files with 173 additions and 53 deletions

View File

@@ -8,10 +8,12 @@ import styles from "./loyaltyPage.module.css"
export default async function LoyaltyPage() {
const loyaltyPage = await serverClient().contentstack.loyaltyPage.get()
const hasSidebar = !!loyaltyPage.sidebar.length
return (
<section className={styles.content}>
{loyaltyPage.sidebar ? <Sidebar blocks={loyaltyPage.sidebar} /> : null}
<section
className={`${styles.content} ${hasSidebar && styles.hasLeftSignbar}`}
>
{hasSidebar && <Sidebar blocks={loyaltyPage.sidebar} />}
<MaxWidth className={styles.blocks} tag="main">
{loyaltyPage.blocks ? <Blocks blocks={loyaltyPage.blocks} /> : null}