feat: implement homepage blocks, animations and sticky whatsapp CTA
This commit is contained in:
@@ -6,6 +6,7 @@ import { resolveRoute } from '@intecion/ipal-kit'
|
||||
import { getLocalizedSlugs } from '@intecion/ipal-kit'
|
||||
import { i18n } from '../../../../i18n.config'
|
||||
import { SetLanguageSlugs } from '../../../../components/LanguageSlugsProvider'
|
||||
import { RenderBlocks } from '../../../../blocks/RenderBlocks'
|
||||
|
||||
export default async function Page(props: {
|
||||
params: Promise<{ locale: string; slug?: string[] }>
|
||||
@@ -57,16 +58,9 @@ export default async function Page(props: {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{layout.map((block: any, index: number) => {
|
||||
if (block.blockType === 'TextSection') {
|
||||
return (
|
||||
<div key={index} className="container-premium py-12">
|
||||
<p className="text-lg">{block.text}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return <div key={index}>Nieznany blok: {block.blockType}</div>
|
||||
})}
|
||||
<main>
|
||||
<RenderBlocks blocks={layout} />
|
||||
</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user