feat: implement homepage blocks, animations and sticky whatsapp CTA

This commit is contained in:
MichalC
2026-08-31 23:04:48 +02:00
parent d728108b3e
commit 0a1e74dbe4
26 changed files with 1056 additions and 43 deletions
@@ -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>
)
}