import { ContentRenderer } from '@/components/content/ContentRenderer'; import { Section } from '@/components/content/Section'; import { Container } from '@/components/ui/Container'; // Test content with various WordPress shortcodes and images const testContent = `
This page demonstrates the enhanced ContentRenderer handling various WordPress shortcodes and image formats.
Content in the right column with proper spacing and styling.
This section has a background image from WordPress media library.
Multiple images with different alignments:
Images should display correctly with proper Next.js Image optimization and alignment.
Various button styles should work correctly:
Regular paragraph text with bold text, italic text, and external links.
This is a blockquote with proper styling.
One-third width column.
One-third width column.
One-third width column.
Images referenced by ID should be converted to Next.js Image components:
This content uses raw WordPress shortcodes that should be processed by html-compat.ts
[/vc_column_text] [/vc_column] [/vc_row] [vc_row] [vc_column width="6"] [vc_column_text]Content with [vc_btn color="primary" title="Click Here" link="#"] embedded.
[/vc_column_text] [/vc_column] [vc_column width="6"] [vc_column_text]Another column with [vc_single_image src="6521" align="right"] embedded.
[/vc_column_text] [/vc_column] [/vc_row] [vc_row bg_image="45528" top_padding="15%" bottom_padding="15%" color_overlay="#000000" overlay_strength="0.7"] [vc_column] [vc_column_text text_color="light" text_align="center"]This should show an image with dark overlay and white text.
[/vc_column_text] [/vc_column] [/vc_row] [vc_row enable_gradient="true" gradient_direction="left_to_right"] [vc_column] [vc_column_text text_align="center"]This row should have a gradient background.
[/vc_column_text] [/vc_column] [/vc_row] `; export default function ComponentsDemoPage() { return (Testing WordPress shortcode conversion and image handling