diff --git a/frontend/src/pages/preview/page/[pageId].astro b/frontend/src/pages/preview/page/[pageId].astro
index 5d5cce5..31a20cf 100644
--- a/frontend/src/pages/preview/page/[pageId].astro
+++ b/frontend/src/pages/preview/page/[pageId].astro
@@ -103,6 +103,7 @@ if (!page) {
+
{error ? (
@@ -111,21 +112,44 @@ if (!page) {
{error}
) : (
- <>
-
+ {/* Render Blocks */}
+ {page.blocks && Array.isArray(page.blocks) ? page.blocks.map((block: any) => {
+ if (block.block_type === 'hero') {
+ return (
+
+
{block.block_config?.title}
+
{block.block_config?.subtitle}
+
+ );
+ }
+ if (block.block_type === 'content') {
+ return (
+
+
+
+ );
+ }
+ if (block.block_type === 'features') {
+ return (
+
+ {block.block_config?.items?.map((item: any) => (
+
+
{item.title}
+
{item.desc}
+
+ ))}
+
+ );
+ }
+ return null;
+ }) : (
+ // Fallback for legacy content field
-
+ No content.'} />
)}
-
- {!page.content && (
-
No content yet
- )}
- >
+
)}